dotfiles/.config/eww/eww.scss
2024-11-05 14:24:57 +01:00

123 lines
1.8 KiB
SCSS

@import "colors.scss";
* {
font-family: 'JetBrainsMono NF';
font-size: 13px;
}
.bar, tooltip {
background-image: linear-gradient(160deg, $background1, $background2), linear-gradient(160deg, $accent1, $accent2);
background-clip: padding-box, border-box;
background-origin: border-box;
}
.bar {
border-bottom: 2px solid transparent;
border-radius: 0;
}
.bar > *:last-child {
margin-right: 6px;
}
.bar > * > *:nth-child(odd) {
color: $accent1;
scale trough {
background-color: $disabled;
}
scale trough highlight {
background-color: $accent1;
}
.disabled {
color: $disabled;
}
}
.bar > * > *:nth-child(even) {
color: $accent2;
scale trough {
background-color: $disabled2;
}
scale trough highlight {
background-color: $accent2;
}
.disabled {
color: $disabled2;
}
}
.workspace label {
padding: 0 7px;
}
.workspace:nth-child(odd) {
color: $accent1;
}
.workspace:nth-child(even) {
color: $accent2;
}
.workspace.empty {
opacity: 0.3;
}
.workspace:hover {
opacity: 0.7;
}
.workspace.active {
opacity: 1;
}
scale {
padding-left: 8px;
slider {
all: unset;
}
trough {
min-height: 6px;
min-width: 60px;
}
progressbar trough {
border: 2px solid $accent2;
border-radius: 16px;
}
}
progress {
background-color: $accent1;
border-radius: 16px;
}
circular-progress > * {
margin: 1px;
font-size: 11px;
}
tooltip {
border: 1px solid transparent;
border-radius: 4px;
}
calendar:selected {
background-color: $accent1;
}
.alert {
background-color: rgba($bad, 0.33);
}
.crit {
background-color: rgba($bad, 0.66);
animation-name: blink;
animation-duration: 1.5s;
animation-timing-function: steps(2, start);
animation-iteration-count: infinite;
}
@keyframes blink {
to {
background-color: transparent;
}
}