cosmos-docusaurus-theme 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/css/theme.css +20 -2
package/package.json
CHANGED
package/src/css/theme.css
CHANGED
|
@@ -926,15 +926,33 @@ details > :not(summary) {
|
|
|
926
926
|
--ifm-navbar-search-input-placeholder-color: #a3a3a3;
|
|
927
927
|
}
|
|
928
928
|
|
|
929
|
-
/* Navbar search input — styled
|
|
929
|
+
/* Navbar search input — styled like Rackscope's AppSearch component */
|
|
930
|
+
/* rounded-lg, bg surface, border, focus ring — consistent with the app */
|
|
930
931
|
.navbar__search-input {
|
|
932
|
+
height: 36px;
|
|
933
|
+
min-width: 180px;
|
|
931
934
|
border-radius: 8px;
|
|
932
935
|
border: 1px solid var(--ifm-toc-border-color);
|
|
933
|
-
|
|
936
|
+
background-color: var(--ifm-code-background);
|
|
937
|
+
color: var(--ifm-font-color-base);
|
|
938
|
+
font-size: 0.875rem;
|
|
939
|
+
transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
.navbar__search-input::placeholder {
|
|
943
|
+
color: var(--ifm-font-color-secondary);
|
|
944
|
+
font-size: 0.875rem;
|
|
934
945
|
}
|
|
935
946
|
|
|
936
947
|
.navbar__search-input:focus {
|
|
937
948
|
border-color: var(--ifm-color-primary);
|
|
949
|
+
background-color: var(--ifm-background-surface-color);
|
|
950
|
+
box-shadow: 0 0 0 3px rgb(70, 95, 255, 0.10);
|
|
951
|
+
outline: none;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
[data-theme='dark'] .navbar__search-input:focus {
|
|
955
|
+
box-shadow: 0 0 0 3px rgb(117, 146, 255, 0.12);
|
|
938
956
|
}
|
|
939
957
|
|
|
940
958
|
/* ── Algolia DocSearch ───────────────────────────────────────────────────── */
|