Skip to content

Commit af9ec90

Browse files
committed
Explicit Docsearch variables
1 parent 3d86cb8 commit af9ec90

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

src/css/vendor/docsearch.css

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,42 @@
3030
font-size: 14px;
3131
}
3232

33-
:root,
34-
html.dark-theme {
33+
/* Variables */
34+
35+
:root {
36+
--docsearch-primary-color: var(--link-font-color: #086dc3);
37+
--docsearch-searchbox-background: var(--body-background-color);
38+
}
39+
40+
/* Darkmode */
41+
42+
html.dark-theme,
43+
html[data-theme='dark'] {
44+
--docsearch-text-color: rgb(245, 246, 247);
45+
--docsearch-container-background: rgba(9, 10, 17, 0.8);
46+
--docsearch-modal-background: rgb(21, 23, 42);
47+
--docsearch-modal-shadow:
48+
inset 1px 1px 0 0 rgb(44, 46, 64),
49+
0 3px 8px 0 rgb(0, 3, 9);
3550
--docsearch-searchbox-background: var(--body-background-color);
51+
--docsearch-searchbox-focus-background: var(--panel-background-color);
52+
--docsearch-hit-color: rgb(190, 195, 201);
53+
--docsearch-hit-shadow: none;
54+
--docsearch-hit-background: rgb(9, 10, 17);
55+
--docsearch-key-gradient:
56+
linear-gradient(
57+
-26.5deg,
58+
rgb(86, 88, 114) 0%,
59+
rgb(49, 53, 91) 100%
60+
);
61+
--docsearch-key-shadow:
62+
inset 0 -2px 0 0 rgb(40, 45, 85),
63+
inset 0 0 1px 1px rgb(81, 87, 125),
64+
0 2px 2px 0 rgba(3, 4, 9, 0.3);
65+
--docsearch-footer-background: rgb(30, 33, 54);
66+
--docsearch-footer-shadow:
67+
inset 0 1px 0 0 rgba(73, 76, 106, 0.5),
68+
0 -4px 8px 0 rgba(0, 0, 0, 0.2);
69+
--docsearch-logo-color: rgb(255, 255, 255);
70+
--docsearch-muted-color: rgb(127, 132, 151);
3671
}

0 commit comments

Comments
 (0)