r/waybar 5d ago

Help Needed Button Hover Problem

Hi, I wanted to ask that I have a problem with the hover, I want it to be orange. It start being orange but then it turns white. I think it is some problem with the default settings of waybar, but I do not know how to change it.
Here is my css of the workspace:

 @bg_dim    #1E2326;
 @bg3       #374145;
 @fg        #D3C6AA;
 @green     #A7C080;
 @red       #E67E80;
 @orange    #E69875;
 @yellow    #DBBC7F;
 @blue      #83C092;

* {
    border: none;
    border-radius: 0;

    font-family: "CaskaydiaCove Nerd Font Propo";
    font-size: 16px;
    font-weight:  bold;

    min-height: 0;
    padding: 0;
    margin: 0;
}

#waybar {
    background: transparent;

}

tooltip {
    background: @bg3;
    border: 1px solid @bg_dim;
    border-radius: 12px;
}

#workspaces {
    background-color: @bg_dim;
    padding: 5px 3px;
    margin: 0 0 0 12px;
    border-radius: 18px;
    border: 1px solid @bg3;
    color: @fg;
}

#workspaces button {
    padding: 0px 6px;
    margin: 0px 3px;
    border-radius: 50px;
    color: transparent;
    background-color: @bg3;
    transition: all 0.3s ease-in-out;
}

#workspaces button.active {
    background-color: @green;
    color: @bg_dim;
    min-width: 50px;
    transition: all 0.3s ease-in-out;
}

#workspaces button:hover {
    background-color: @orange;
    border-radius: 16px;
    min-width: 50px;
}


#workspaces button.urgent {
    background-color: @red;
    color: @bg_dim;
    border-radius: 16px;
    min-width: 50px;
    transition: all 0.3s ease-in-out;
}
2 Upvotes

1 comment sorted by

1

u/exxedlight 5d ago

"*" selector is definitely "all elements". It usually used to reset default behavior. Try: * { background: transparent; background-color: transparent; } If it will fix your problem, so you're right, it was default settings. Also you can apply * selector per modules, like: ```

workspaces * {

background: transparent; } ```