dotfiles/de/home/.config/eww/style/bar.scss
2025-08-28 12:32:15 -07:00

179 lines
4.3 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;
& .profile-work {
background-color: mix($color5, $color12);
}
/* background-color: lighter($bar-bg-color);
background-color: darker(mix(#d68787, #add4fb, 50%));*/
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;
margin-left: 0px;
padding: 6px 10px;
min-width: $bar-module-width;
}
.revealer-on-hover>widget>box>box>* {
border-radius: $bar-module-inner-radius;
}
.revealer-on-hover>widget>box>box>*,
.reveal_children>widget>image,
.reveal_children:not(.tray)>*:not(:last-child),
&>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;
box-shadow: 3px 0 3px -2px $bar-module-fg-color;
&>widget>box>box>* {
background-color: $bar-bg-color;
}
}
.reveal_children {
border-radius: 0px $bar-module-inner-radius $bar-module-inner-radius 0px;
}
}
.workspaces {
color: $bar-module-fg-color;
margin: 2px 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;
padding: 2px 3px;
transition: all 0.3s;
&.left {
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 {
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>widget>image,
.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 10px;
min-width: $bar-module-width;
}
.tray>widget,
.scratchpad>button {
image{
opacity: 0.5;
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;
}
.inactive {
opacity: 0.5;
}
// HOTFIXES
.scratchpad>widget>box>box,
.scratchpad .reveal_children>*:last-child,
.tray_tab>widget>box>box,
.tray_tab .reveal_children>widget:last-child>image {
margin-right: -5px;
box-shadow: 0px 0px 0px 0px transparent;
}
}