dotfiles/de/home/.config/eww/eww.scss
2025-07-24 16:00:02 -07:00

495 lines
12 KiB
SCSS

* {
all: unset; // Unsets everything so you can style everything from scratch
/* font-family: FontAwesome, Overpass; */
font-family: PogmomIcons, Overpass Nerd Font Propo;
}
@import "./style/colors.scss";
$bar-module-width: 25px;
$bar-bg-color: rgba($color5,0.0);
$bar-module-bg-color: rgba($color5,0.8);
$bar-module-fg-color: rgba($color0,0.8);
$bar-module-inactive-fg-color: rgba($color0,0.4);
$bar-module-active-fg-color: rgba($color13,0.9);
// $bar-active-bg-color: rgba($color1,0.5);
// $bar-active-fg-color: $color1;
// $bar-module-active-shadow: 1px 1px 4px rgba($color5,0.5),-1px 1px 4px rgba($color5,0.5),1px -1px 4px rgba($color5,0.5),-1px -1px 4px rgba($color5,0.5);
$bar-module-active-shadow: 1px 1px 4px rgba($color8,0.6),-1px 1px 4px rgba($color8,0.6),1px -1px 4px rgba($color8,0.6),-1px -1px 4px rgba($color8,0.6);
$bar-module-hover-shadow: 1px 1px 4px rgba($color8,0.45),-1px 1px 4px rgba($color8,0.45),1px -1px 4px rgba($color8,0.45),-1px -1px 4px rgba($color8,0.45);
$bar-hover-bg-color: rgba($color1,0.5);
$bar-hover-fg-color: rgba($color13,0.6);
$bar-module-border-radius: 8px;
@import "./style/bar.scss";
// Global Styles
.bar {
// font-size: 1.05em;
// padding: 10px 0px 0px;
// margin: 0px 15px;
// bar groups
/*.leftgroup,
.centergroup,
.rightgroup {
background-color: $bar-bg-color;
border-radius: $bar-module-border-radius;
}*/
//group modules
/*.leftgroup>box:not(.workspaces):not(.revealer-on-hover),
.leftgroup>button,
.centergroup>*,
.rightgroup>*:not(.revealer-on-hover) {
margin: 5px;
min-width: $bar-module-width;
border: 1px solid $bar-module-fg-color;
background-color: $bar-module-bg-color;
padding: 0px 10px;
}*/
/*.revealer-on-hover {
margin: 5px;
min-width: $bar-module-width;
background-color: $bar-module-bg-color;
border: 1px solid $bar-module-fg-color;
>widget>box>box label {
padding: 0px 10px;
}
.reveal_children label {
padding: 0px 5px;
}
}*/
/*.workspaces>revealer>box>box>button,
.workspaces>box>box>button {
margin: 5px 0px;
background-color: $bar-module-bg-color;
border: 1px solid $bar-module-fg-color;
min-width: $bar-module-width;
label {
padding: 0px 5px;
margin-right: -10px;
}
}*/
/*.workspace-number {
margin: 0px;
margin-left: -5px;
margin-top: -17px;
padding: 0px;
font-size: 0.6em;
}*/
//value bars
/*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;
}
scale trough highlight:hover {
box-shadow: 0px 0px 0px 2px $color2;
}
//value graphs
circular-progress {
color: $color9;
background-color: $color2;
}
.revealer-on-hover {
color: $bar-module-fg-color;
border-radius: $bar-module-border-radius;
}*/
/*.revealer-on-hover>widget>box>box>*,
.revealer-on-hover>widget>box>box>button,
.revealer-on-hover>widget>box>revealer>box>box>*,
.reveal_children>*,
.reveal_children>widget>image {
// background-color: $bar-module-bg-color;
padding: 3px 4px;
min-width: $bar-module-width;
transition: all 0.3s;
&:hover {
text-shadow: $bar-module-hover-shadow;
// background-color: rgba($color1,0.5);
// border: 1px solid $bar-module-fg-color;
}
}*/
/*.reveal_children>button {
image {
opacity: 0.4;
transition: all 0.5s;
border-radius: 4px;
}
&:hover image {
opacity: 1;
}
}*/
/*.reveal_children>box,
.reveal_children>widget,
.reveal_children>button {
border-left: 1px solid $bar-module-fg-color;
}*/
/*.rightgroup>label,
.rightgroup>button {
//.rightgroup .reveal_children>button,
//.rightgroup>.revealer-on-hover>widget>box>box>button {
color: $bar-module-fg-color;
padding: 3px 4px;
border-radius: $bar-module-border-radius;
.inactive {
color: $bar-module-inactive-fg-color
}
}*/
/*.leftgroup>.revealer-on-hover>widget>box>box>button {
padding: 3px 4px;
border-radius: $bar-module-border-radius;
}*/
//.music {
// color: $bar-module-fg-color;
// background-color: $bar-module-bg-color;
// border-radius: $bar-module-border-radius;
//}
//.rightgroup>label,
/*.active_window{
color: $bar-module-fg-color;
padding: 3px 4px;
border-radius: $bar-module-border-radius;
}*/
/*label {
margin-top: 2px;
}*/
//.workspaces,
/*.profile {
border-radius: $bar-module-border-radius;
}*/
//.workspaces button,
/*.leftgroup button {
// background-color: $bar-module-bg-color;
// border-left: 1px solid $bar-module-fg-color;
// color:blue;
color: $bar-module-fg-color;
padding: 3px 4px;
min-width: $bar-module-width;
transition: color 0.3s, text-shadow 0.3s;
}*/
//.workspaces button:hover,
/*.rightgroup button:hover,
.leftgroup button:hover {
// text-shadow: 1px 1px 1px rgba($color2,1);
text-shadow: $bar-module-hover-shadow;
color: $bar-hover-fg-color;
// transition: all 0.2s;
}*/
/*.rightgroup {
button {
transition: all 0.3s;
&.active:not(:hover) {
text-shadow: $bar-module-active-shadow;
color: $bar-module-fg-color;
}
&.inactive:not(:hover) {
color: $bar-module-inactive-fg-color;
}
}
}*/
/*.workspaces .focused {
color: $bar-module-active-fg-color;
text-shadow: $bar-module-active-shadow;
}*/
//.workspaces button:first-child {
//.workspaces:first-child {
//.reveal_children>box:first-child,
//.reveal_children>scale:first-child,
//.reveal_children>progressbar:first-child,
//.reveal_children>button:first-child,
//.reveal_children>widget:first-child {
// margin-left: 3px;
// border-radius:$bar-module-border-radius 0px 0px $bar-module-border-radius;
// border-left: 0px solid $bar-bg-color;
//}
//.revealer-on-hover>widget>box>revealer>box>box>button {
/*.rightgroup>.revealer-on-hover>widget>box>box>button,
.leftgroup>.revealer-on-hover>widget>box>box>button {
border-radius: 8px;
&:hover {
border-radius:$bar-module-border-radius 0px 0px $bar-module-border-radius;
// text-shadow: $bar-module-hover-shadow;
}
}*/
//.workspaces button:last-child,
//.workspaces:last-child,
/*.reveal_children>box:last-child,
.reveal_children>scale:last-child,
.reveal_children>progressbar:last-child,
.reveal_children>button:last-child,
.reveal_children>widget:last-child {
border-radius:0px $bar-module-border-radius $bar-module-border-radius 0px;
}*/
//.workspaces button:only-child,
//.workspaces:only-child,
//.reveal_children>box:only-child,
//.reveal_children>scale:only-child,
//.reveal_children>progressbar:only-child,
//.reveal_children>button:only-child,
/*.reveal_children>widget:only-child {
border-radius:$bar-module-border-radius;
}*/
/*.datetime {
font-weight: bold;
}*/
menu {
color: $color9;
background-color: rgba($color0,0.75);
border: 2px solid rgba($color0,0.5);
border-radius: $bar-module-border-radius;
menuitem {
padding:10px;
margin:5px 10px;
transition: all .2s ease;
&:backdrop {
background-color:green;
}
&:not(:disabled) {
background-color: rgba($color8,0.6);
border: 2px solid rgba($color0,0.5);
border-radius:6px;
}
&:hover {
background-color:rgba($color12,0.5);
color: $color1;
}
}
}
}
tooltip{
color: $color9;
background-color: rgba($color0,0.75);
border: 2px solid rgba($color0,0.5);
border-radius: 8px;
}
$home-widget-bg-color: rgba($color0,0.7);
$home-widget-border-radius: 8px;
$home-widget-title-radius: $home-widget-border-radius $home-widget-border-radius 0px 0px;
$home-button-border-radius: 6px;
$home-button-circle-border-radius: 30px;
$home-button-bg-color: rgba($color5, 0.15);
$home-button-fg-opacity: 1;
$home-button-fg-color: rgba($color5,$home-button-fg-opacity);
$home-widget-subtitle-color: rgba($color7,0.6);
$home-button-hover-bg-color: rgba($color1, 0.5);
$home-widget-border-color: rgba($color5,1);
$home-widget-border-hover-color: rgba($color5,0.3);
.home {
font-size: 0.95em;
&>box {
// padding: 10px;
margin: 3px 10px;
// background-color: black;
// color: blue;
&:first-child {
padding-top: 10px;
}
&:last-child {
padding-bottom: 10px;
}
}
/* > box {
border-radius: $home-widget-border-radius;
box-shadow: inset 0 0 0px 3px $home-widget-border-color;
}*/
.nowplayingbar {
padding: 0px;
border: 3px solid $home-widget-border-color;
border-radius: $home-widget-border-radius;
background-color: $home-widget-bg-color;
// .nowplayingart,
.mediadetails {
margin: 10px 15px;
// margin: 10px 25px 10px 15px;
label {
margin: 0px;
}
&.fullwidth {
margin: 5px 35px;
}
// margin-left: 10px;
}
.art-button-overlay {
&.small {
font-size: 2em;
margin: 20px 0px 20px 20px;
}
&.big {
font-size: 3em;
margin: 20px;
}
background-color: rgba($color0,0.5);
color: $color5;
border-radius: $home-widget-border-radius;
}
/* .art-button-overlay{
&.small {
margin: 5px 0px 5px 5px;
}
}*/
.nowplayingart {
&.small {
margin: 20px 0px 20px 20px;
}
&.big {
margin: 25px;
// border-radius: 0;
min-height: 250px;
}
// margin-right: 0px;
border: 1px solid $home-widget-border-color;
border-radius: $home-widget-border-radius;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.mediabutton {
background-color: $home-button-bg-color;
border-radius: $home-button-circle-border-radius;
// margin: 10px;
color: $home-button-fg-color;
transition: all 0.3s;
&:hover{
background-color: $home-button-hover-bg-color;
}
}
}
// .nowplayingart,
.rat {
background-position: center;
background-size: cover;
background-repeat: no-repeat;
// margin: 0px 3px;
border-radius: $home-widget-border-radius;
box-shadow: inset 0 0 0px 3px $home-widget-border-color, 0px 0px 3px 3px $color0;
}
.weather {
// background-color: $home-widget-bg-color;
color: $home-button-fg-color;
// margin: 0px;
padding: 8px;
.weather-subtitle{
font-size: 0.8em;
color: $home-widget-subtitle-color;
}
}
.revealer-on-press {
border: 3px solid $home-widget-border-color;
border-radius: $home-widget-border-radius;
background-color: $home-widget-bg-color;
box-shadow: 0px 0px 3px 3px $color0;
/* &.revealer-closed {
}*/
}
.revealer-title {
// border: 3px solid $home-widget-border-color;
// box-shadow: inset 0 0 0px 3px $home-widget-border-color;
background-color: $home-widget-border-color;
// background-color: $home-widget-bg-color;
color: $home-widget-bg-color;
padding-bottom: 2px;
font-weight: bold;
transition: all 0.3s;
&:hover {
// background-color: $color2;
background-color: $home-widget-border-hover-color;
// border-color: transparent;
}
}
.weather,
.notes,
.shortcuts,
.reminders {
border-top: 3px solid $home-widget-border-color;
}
// .rat,
// .nowplayingart,
/* .shortcuts {
border: 3px solid $home-widget-border-color;
border-radius: $home-widget-border-radius;
}*/
.notes,
.reminders {
// background-color: $home-widget-bg-color;
color: $home-button-fg-color;
padding: 10px;
button {
background-color: $home-button-bg-color;
border-radius: $home-button-border-radius;
padding: 4px 8px;
margin: 4px;
transition: all 0.3s;
box {
.timestamp {
font-size: 0.8em;
margin-top: 2px;
color: $home-widget-subtitle-color;
}
.details {
font-size: 0.8em;
color: $home-widget-subtitle-color;
margin: 1px 10px;
}
.status {
margin: 0px 10px;
}
}
image {
opacity: $home-button-fg-opacity;
}
}
button:hover {
background-color: $home-button-hover-bg-color;
}
}
.shortcuts {
// background-color: $home-widget-bg-color;
color: $home-button-fg-color;
padding: 15px;
button {
background-color: $home-button-bg-color;
border-radius: $home-button-circle-border-radius;
margin: 5px;
font-size: 1.2em;
transition: all 0.3s;
label {
font-size: 1.2em;
}
}
button:hover {
background-color: $home-button-hover-bg-color;
}
}
}