nix/module/desktop/waybar/style/Button.nix

18 lines
428 B
Nix
Raw Normal View History

2024-05-02 04:47:21 +03:00
{ ... }: {
text = ''
button {
/* Use box-shadow instead of border so the text isn't offset */
box-shadow: inset 0 -3px transparent;
/* Avoid rounded borders under each button name */
border: none;
border-radius: 0;
}
/* 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;
}
'';
}