You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking through the default style.css found in /ext/xdg/waybar and saw that we can change the style of the first child of the modules by doing something like
.modules-left > widget:first-child > #workspaces { margin-left: 0; }
so I have tried to do it in my group, however, I am unable to do changes on the first child of a group when all of it's content is shown. I have tried these codes
.modules > widget:first-child > #custom-power {background-color: red;} #session > widget:first-child > #custom-power { background-color: red; } #session > #custom-power {background-color: red;} .modules-right > #session > .modules > widget:first-child > #custom-power{ background-color: red;}
and my group config looks like this
"group/session": { "orientation": "inherit", "tooltip": false, "drawer": { "transition-duration": 500, "children-class": "not-power","transition-left-to-right": false}, "modules": ["custom/power","custom/lock","custom/reboot"] }
What I am trying to achieve is that when I hover on group/session and once all child is revealed, I want the #custom-power to have a different background than the rest.
I am hoping to hear from you folks, and thank you for taking time to answer this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello folks!
I was looking through the default style.css found in /ext/xdg/waybar and saw that we can change the style of the first child of the modules by doing something like
.modules-left > widget:first-child > #workspaces { margin-left: 0; }
so I have tried to do it in my group, however, I am unable to do changes on the first child of a group when all of it's content is shown. I have tried these codes
.modules > widget:first-child > #custom-power {background-color: red;} #session > widget:first-child > #custom-power { background-color: red; } #session > #custom-power {background-color: red;} .modules-right > #session > .modules > widget:first-child > #custom-power{ background-color: red;}
and my group config looks like this
"group/session": { "orientation": "inherit", "tooltip": false, "drawer": { "transition-duration": 500, "children-class": "not-power","transition-left-to-right": false}, "modules": ["custom/power","custom/lock","custom/reboot"] }
What I am trying to achieve is that when I hover on group/session and once all child is revealed, I want the #custom-power to have a different background than the rest.
I am hoping to hear from you folks, and thank you for taking time to answer this.
Beta Was this translation helpful? Give feedback.
All reactions