Skip to content

The agent that grows with you

fix(website): keep the compact directory bar legible in light theme

kshitijk4poorbf84ba4a2482
diff --git a/website/src/pages/plugins/styles.module.css b/website/src/pages/plugins/styles.module.css
index c6060550eed..8f206036146 100644
--- a/website/src/pages/plugins/styles.module.css
+++ b/website/src/pages/plugins/styles.module.css
@@ -934,10 +934,19 @@
font: 500 0.78rem "DM Sans", sans-serif;
}
+ [data-theme="light"] .compactSelect select {
+ border-color: var(--ifm-color-emphasis-300);
+ }
+
.compactSort select { max-width: 11.5rem; }
.filterPanel { display: none; }
}
+/* Below ~820px the uppercase labels leave no room for the select's own value. */
+@media (max-width: 820px) {
+ .compactSelect > span { display: none; }
+}
+
@media (max-width: 600px) {
.controlsBar {
position: static;
@@ -958,8 +967,8 @@
width: 100%;
min-width: 0;
padding: 0.55rem 0.75rem;
- background: rgba(7, 7, 13, 0.94);
- border-bottom: 1px solid rgba(255, 215, 0, 0.08);
+ background: var(--ifm-navbar-background-color);
+ border-bottom: 1px solid var(--ifm-hr-border-color);
backdrop-filter: blur(16px);
}
@@ -991,6 +1000,17 @@
.activeFilterCount {
min-width: 1.25rem;
border-radius: 999px;
+ background: var(--ifm-color-emphasis-200);
+ color: var(--ifm-font-color-base);
+ }
+
+ /* Gold accents are tuned for the dark theme; against the light surface the
+ translucent gold borders are invisible. */
+ [data-theme="light"] .controlsTopRow .filterToggle {
+ border-color: var(--ifm-color-emphasis-300);
+ }
+
+ [data-theme="dark"] .activeFilterCount {
background: rgba(255, 215, 0, 0.14);
color: #ffd700;
}
diff --git a/website/src/pages/skills/styles.module.css b/website/src/pages/skills/styles.module.css
index 5f8ccbea071..054b844f01a 100644
--- a/website/src/pages/skills/styles.module.css
+++ b/website/src/pages/skills/styles.module.css
@@ -972,12 +972,21 @@
font: 500 0.78rem "DM Sans", sans-serif;
}
+ [data-theme="light"] .compactSelect select {
+ border-color: var(--ifm-color-emphasis-300);
+ }
+
.sourcePills { display: none; }
.layout { grid-template-columns: 1fr; }
.layout > .sidebar,
.layout > .sidebarToggle { display: none; }
}
+/* Below ~820px the uppercase labels leave no room for the select's own value. */
+@media (max-width: 820px) {
+ .compactSelect > span { display: none; }
+}
+
@media (max-width: 600px) {
.controlsBar {
position: static;
@@ -998,8 +1007,8 @@
width: 100%;
min-width: 0;
padding: 0.55rem 0.75rem;
- background: rgba(7, 7, 13, 0.94);
- border-bottom: 1px solid rgba(255, 215, 0, 0.08);
+ background: var(--ifm-navbar-background-color);
+ border-bottom: 1px solid var(--ifm-hr-border-color);
backdrop-filter: blur(16px);
}
@@ -1033,10 +1042,23 @@
.activeFilterCount {
min-width: 1.25rem;
border-radius: 999px;
+ background: var(--ifm-color-emphasis-200);
+ color: var(--ifm-font-color-base);
+ }
+
+ [data-theme="dark"] .activeFilterCount {
background: rgba(255, 215, 0, 0.14);
color: #ffd700;
}
+ /* Gold accents are tuned for the dark theme; against the light surface the
+ translucent gold borders are invisible. */
+ [data-theme="light"] .controlsTopRow .filterToggle,
+ [data-theme="light"] .sidebarClose,
+ [data-theme="light"] .sidebarSourceSelect select {
+ border-color: var(--ifm-color-emphasis-300);
+ }
+
.layout > .sidebar.sidebarOpen {
display: block;
}