waybar: fix underline (box-shadow) and border positioning
Thin down borders and underlines to 2px
This commit is contained in:
parent
b4c4556b06
commit
0e75a119b2
1 changed files with 55 additions and 4 deletions
|
|
@ -7,12 +7,21 @@
|
|||
|
||||
window#waybar {
|
||||
background-color: rgba(43, 48, 59, 0.8);
|
||||
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
|
||||
border-color: rgba(100, 114, 125, 0.5);
|
||||
border-style: solid;
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar:not(.bottom):not(.left):not(.right) {
|
||||
border-bottom-width: 2px;
|
||||
}
|
||||
|
||||
window#waybar.bottom {
|
||||
border-top-width: 2px;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
|
@ -30,7 +39,14 @@ button {
|
|||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
button:hover {
|
||||
background: inherit;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
window#waybar:not(.bottom):not(.left):not(.right) button:hover{
|
||||
box-shadow: inset 0 -2px;
|
||||
}
|
||||
|
||||
window#waybar.bottom button:hover {
|
||||
box-shadow: inset 0 2px;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -65,6 +81,27 @@ button:hover {
|
|||
padding-right: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Uncomment to draw module underlines
|
||||
*/
|
||||
/*
|
||||
window#waybar:not(.bottom):not(.left):not(.right) .modules-left > widget > label,
|
||||
window#waybar:not(.bottom):not(.left):not(.right) .modules-center > widget > label,
|
||||
window#waybar:not(.bottom):not(.left):not(.right) .modules-right > widget > label {
|
||||
box-shadow: inset 0 -2px;
|
||||
}
|
||||
|
||||
window#waybar.bottom .modules-left > widget > label,
|
||||
window#waybar.bottom .modules-center > widget > label,
|
||||
window#waybar.bottom .modules-right > widget > label {
|
||||
box-shadow: inset 0 2px;
|
||||
}
|
||||
|
||||
window#waybar #window {
|
||||
box-shadow: none;
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
* Workspace state and focused window rules
|
||||
*/
|
||||
|
|
@ -102,7 +139,14 @@ window#waybar.chromium {
|
|||
|
||||
#workspaces button.focused {
|
||||
background-color: #64727D;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
window#waybar:not(.bottom):not(.left):not(.right) #workspaces button.focused {
|
||||
box-shadow: inset 0 -2px;
|
||||
}
|
||||
|
||||
window#waybar.bottom #workspaces button.focused {
|
||||
box-shadow: inset 0 2px;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
|
|
@ -111,7 +155,14 @@ window#waybar.chromium {
|
|||
|
||||
#mode {
|
||||
background-color: #64727D;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
window#waybar:not(.bottom):not(.left):not(.right) #mode {
|
||||
box-shadow: inset 0 -2px;
|
||||
}
|
||||
|
||||
window#waybar.bottom #mode {
|
||||
box-shadow: inset 0 2px;
|
||||
}
|
||||
|
||||
#image {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue