Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions src/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
background: var(--readthedocs-search-footer-code-background-color, #fff);
padding: 2px 5px;
border: solid 1px var(--readthedocs-search-footer-code-border-color, #e1e4e5);
color: #333;
color: var(--readthedocs-search-color, #333);
white-space: pre-wrap;
word-wrap: break-word;
font-size: 0.875em;
Expand Down Expand Up @@ -95,7 +95,7 @@
:host > div form > label {
font-size: 1.15em;
padding-left: 5px;
color: #333;
color: var(--readthedocs-search-color, #333);
}

:host > div form label svg {
Expand Down Expand Up @@ -127,10 +127,11 @@

div.hit-block {
padding-top: 3px;
border-top: 1px solid rgb(224, 224, 224);
border-top: 1px solid var(--readthedocs-search-result-section-border-color, rgb(224, 224, 224));
display: flex;
flex-direction: column;
margin-bottom: 10px;
background-color: var(--readthedocs-search-input-background-color);
}

div.hit-block a.hit-block-heading {
Expand All @@ -149,7 +150,7 @@ div.hit-block .hit-block-heading-container .close-icon {
font-size: 1.15em;
width: 1em;
padding-right: 10px;
color: rgba(0, 0, 0, 0.54);
color: var(--readthedocs-search-color, rgba(0, 0, 0, 0.54));
padding-top: 5px;
}

Expand Down Expand Up @@ -188,7 +189,7 @@ div.hit-block .hit-block-heading-container svg {

:host > div .results a.hit:hover,
:host > div .results .hit .active {
background-color: rgb(245, 245, 245);
background-color: var(--readthedocs-search-result-section-highlight-color, rgb(245, 245, 245));
}

:host > div .results h2 {
Expand All @@ -197,12 +198,12 @@ div.hit-block .hit-block-heading-container svg {
margin-top: 3px;
margin-bottom: 5px;
font-size: 1em;
color: black;
color: var(--readthedocs-search-color, black);
line-height: inherit;
}

:host > div .results h2:hover {
border-bottom-color: black;
border-bottom-color: var(--readthedocs-search-result-section-highlight-color, black);
}

:host > div .results a.hit > div {
Expand All @@ -226,7 +227,7 @@ div.hit-block .hit-block-heading-container svg {
:host > div .results .hit .content {
margin: 0;
text-decoration: none;
color: rgba(0, 0, 0, 0.54);
color: var(--readthedocs-search-color, rgba(0, 0, 0, 0.54));
font-size: 15px;
display: block;
margin-bottom: 5px;
Expand Down Expand Up @@ -259,7 +260,7 @@ div.hit-block .hit-block-heading-container svg {
--readthedocs-search-footer-background-color,
rgb(234, 234, 234)
);
color: #404040;
color: var(--readthedocs-search-color, #404040);
}

:host > div .credits {
Expand Down Expand Up @@ -359,6 +360,7 @@ div.hit-block .hit-block-heading-container svg {
list-style-position: inside;
list-style-type: "\BB ";
margin: 0;
color: var(--readthedocs-search-color);
}

:host > div .help {
Expand Down