refactor(styles): rename selectors and add min-width to container

- rename `#osd` selectors to `#osd-container` for better encapsulation
- add `min-width: 180px` to the container definition
- update muted styling rules to use `#osd-container.muted` instead of element‑specific classes
- replace deprecated `#brighntess-icons.muted` with `#osd-image.muted`
- clean up stray braces and whitespace in the stylesheet
This commit is contained in:
sankalp committed 2026-03-23 23:34:07 +05:45
1 parent ef4065bc1f
commit 231645d8f9
1 file changed
+11 -12
+11 -12
View File
@@ -1,16 +1,17 @@
#osd { #osd-container {
background-color: alpha(#fff, 0.09); background-color: alpha(#fff, 0.09);
padding: 12px 20px; padding: 12px 20px;
margin: 70px; margin: 70px;
min-width: 180px;
min-height: 200px; min-height: 200px;
border-radius: 16px; border-radius: 16px;
} }
#osd scale { #osd-container scale {
min-width: 180px; min-width: 180px;
} }
#osd trough { #osd-container trough {
background: var(--surface); background: var(--surface);
min-height: 15px; min-height: 15px;
margin-right: 4px; margin-right: 4px;
@@ -18,21 +19,19 @@
border-radius: 16px; border-radius: 16px;
} }
#osd trough highlight { #osd-container trough highlight {
border-radius: 100px; border-radius: 100px;
background: var(--primary); background: var(--primary);
transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
} }
#osd.muted trough highlight, #osd-container.muted trough highlight,
#osd.muted slider, #osd-container.muted slider,
#osd scale.muted trough highlight, #osd-container scale.muted trough highlight,
#osd scale.muted slider { #osd-container scale.muted slider {
background-color: var(--surface-bright); background-color: var(--surface-bright);
} }
#brighntess-icons.muted, #osd-image.muted {
#vol-icon.muted,
#mic-icon.muted {
color: var(--outline); color: var(--outline);
} }