Refactor CSS class names for consistency and clarity

- Update selectors from IDs to classes in header, search, and zmedia styles.
- Ensure consistent usage of class names across relevant files.
This commit is contained in:
Aditya Telange
2026-04-11 14:31:33 +05:30
parent 1b45b3f6a1
commit a05b477340
5 changed files with 23 additions and 23 deletions
+8 -8
View File
@@ -13,7 +13,7 @@
}
.logo,
#menu {
.menu {
display: flex;
margin: auto var(--gap);
}
@@ -36,35 +36,35 @@
margin-inline-end: 8px;
}
button#theme-toggle {
.theme-toggle {
font-size: 26px;
margin: auto 4px;
}
[data-theme="dark"] #moon {
[data-theme="dark"] .moon {
display: none;
}
[data-theme="light"] #sun {
[data-theme="light"] .sun {
display: none;
}
#menu {
.menu {
list-style: none;
word-break: keep-all;
overflow-x: auto;
white-space: nowrap;
}
#menu li + li {
.menu li + li {
margin-inline-start: var(--gap);
}
#menu a {
.menu a {
font-size: 16px;
}
#menu .active {
.menu .active {
font-weight: 500;
border-bottom: 2px solid currentColor;
}