dotfiles/de/home/.config/eww/style/bar.scss
2025-07-25 20:00:07 -07:00

176 lines
4.2 KiB
SCSS

$bar-reveal-children-bg-color: rgba($color0, 0.2);
.bar {
font-size: 1.05em;
padding: 10px 0px 10px;
margin: 0px 15px;
.leftgroup,
.centergroup,
.rightgroup {
background-color: $bar-bg-color;
border-radius: $bar-module-border-radius;
border: 3px solid $bar-module-fg-color;
box-shadow: 0px 0px 9px 0px $bar-module-fg-color;
.revealer-on-hover>widget>box>box>*,
.reveal_children:not(.tray)>*,
.reveal_children>widget>image,
&>button,
&>label {
color: $bar-module-fg-color;
border-radius: $bar-module-inner-radius;
margin: 0px 5px;
// padding: 0px 5px;
min-width: $bar-module-width;
padding-right: 5px;
// &:first-child {
// margin-left: 0px;
// }
// &:last-child {
// margin-right: 0px;
// }
}
.revealer-on-hover>widget>box>box>* {
border-radius: $bar-module-inner-radius;
}
.revealer-on-hover>widget>box>box>*,
.reveal_children:not(.tray)>*,
&>button,
&>label {
box-shadow: 3px 0 3px -2px $bar-module-fg-color;
}
.revealer-on-hover.true {
background-color: $bar-reveal-children-bg-color;
border-radius: $bar-module-inner-radius;
}
.reveal_children {
border-radius: 0px $bar-module-inner-radius $bar-module-inner-radius 0px;
}
.reveal_children>* {
margin-left: -6px;
}
}
.workspaces {
color: $bar-module-fg-color;
margin: 0px 5px;
revealer {
&.ws-left {
padding-left: 5px;
button {
background-color: $bar-reveal-children-bg-color;
}
}
&.ws-right {
padding-right: 5px;
button {
background-color: $bar-reveal-children-bg-color;
}
}
}
button {
min-width: 35px;
transition: all 0.3s;
&.left {
// margin-right: -2px;
border-radius: $bar-module-inner-radius 0px 0px $bar-module-inner-radius;
box-shadow: -3px 0 2px -1px $bar-module-fg-color;
}
&.center {
color: $bar-module-fg-color;
border-radius: $bar-module-inner-radius;
box-shadow: 0 0 2px 1px $bar-module-fg-color;
}
&.right {
// margin-left: -2px;
// border-radius: $bar-module-border-radius - 1;
border-radius: 0px $bar-module-inner-radius $bar-module-inner-radius 0px;
box-shadow: 3px 0 2px -1px $bar-module-fg-color;
}
label {
padding: 4px 6px;
margin-right: -10px;
}
.workspace-number {
margin: 0px;
margin-left: 2px;
margin-top: -15px;
padding: 0px;
font-size: 0.6em;
}
&:hover {
text-shadow: $bar-module-hover-shadow;
color: $bar-hover-fg-color;
}
}
}
scale trough,
progressbar>trough {
background-color: $color9;
min-width: 50px;
min-height: 10px;
border-radius: 4px;
}
scale trough highlight,
progressbar>trough>progress {
background-color: $color2;
border-radius: 4px;
min-height: 10px;
transition: box-shadow 0.3s;
&:hover{
box-shadow: 0px 0px 0px 2px $color2;
}
}
circular-progress {
color: $color9;
background-color: $color2;
}
&>box>button,
&>box>label,
.bar-module>button,
.bar-module>label,
.revealer-on-hover>widget>box>box>*,
.reveal_children:not(.tray)>* {
padding: 0px 5px;
min-width: $bar-module-width;
transition: all 0.3s;
&:hover {
color: $bar-hover-fg-color;
text-shadow: $bar-module-hover-shadow;
}
}
.tray>widget>image,
.scratchpad>button>image {
padding: 3px 4px;
min-width: $bar-module-width;
}
.tray>widget,
.scratchpad>button {
image{
opacity: 0.3;
transition: all 0.3s;
border-radius: $bar-module-inner-radius;
}
&:hover,&:hover image {
opacity: 1;
}
}
.datetime {
font-weight: bold;
}
.chevron box {
border: 2px solid transparent;
box-shadow: 8px -8px 10px -8px black;
}
// HOTFIXES
.scratchpad>widget>box>box,
.scratchpad .reveal_children>*:last-child,
.tray>widget>box>box,
.scratchpad .reveal_children>*:last-child {
margin-right: -5px;
box-shadow: 0px 0px 0px 0px transparent;
}
}