Skip to content

Commit 6a84b8b

Browse files
fix search result styling
1 parent 475407d commit 6a84b8b

File tree

1 file changed

+47
-15
lines changed

1 file changed

+47
-15
lines changed

docs/docs/stylesheets/extra.css

+47-15
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
}
148148

149149
.md-typeset {
150-
font-size: .7rem;
150+
font-size: 0.7rem;
151151
}
152152

153153
.md-typeset a {
@@ -296,20 +296,6 @@
296296
background-color: var(--stormy-dark);
297297
}
298298

299-
.md-search__input {
300-
background-color: rgba(255, 255, 255, 0.08);
301-
border-radius: 8px;
302-
color: #f3f0f7;
303-
}
304-
305-
.md-search__input::placeholder {
306-
color: #cdc0e2;
307-
}
308-
309-
.md-search__input:hover {
310-
background-color: rgba(255, 255, 255, 0.12);
311-
}
312-
313299
a[href^="https://github.com/mathesar-foundation/mathesar/pull/"]
314300
{
315301
font-size: 0.7rem;
@@ -364,3 +350,49 @@ p:has(a[href^="https://github.com/mathesar-foundation/mathesar/pull/"])
364350
[data-md-color-scheme="slate"] .md-footer a:hover {
365351
color: var(--white);
366352
}
353+
354+
.md-search-result {
355+
color: var(--stormy-darker);
356+
}
357+
358+
.md-search-result__meta {
359+
background-color: var(--stormy-lighter);
360+
color: var(--stormy-dark);
361+
}
362+
363+
.md-search-result__item {
364+
border-bottom: 1px solid var(--stormy-lighter);
365+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
366+
}
367+
368+
.md-search-result__link:hover,
369+
.md-search-result__link[data-md-state="active"] {
370+
background-color: var(--stormy-lighter);
371+
}
372+
373+
[data-md-color-scheme="slate"] .md-search-result {
374+
background-color: var(--stormy-darker);
375+
color: var(--stormy-lighter);
376+
}
377+
378+
[data-md-color-scheme="slate"] .md-search-result__meta {
379+
background-color: var(--stormy-darkest);
380+
color: var(--stormy-lighter);
381+
}
382+
383+
[data-md-color-scheme="slate"] .md-search-result__item {
384+
border-bottom: 1px solid var(--stormy-dark);
385+
}
386+
387+
[data-md-color-scheme="slate"] .md-search-result__link:hover,
388+
[data-md-color-scheme="slate"] .md-search-result__link[data-md-state="active"] {
389+
background-color: var(--stormy-darkest);
390+
}
391+
392+
.md-search-result__more summary ~ * > * {
393+
opacity: 0.8;
394+
}
395+
396+
[data-md-color-scheme="slate"] .md-search-result__more summary ~ * > * {
397+
opacity: 0.9;
398+
}

0 commit comments

Comments
 (0)