Skip to content

Commit

Permalink
Searhc: small updates on look & feel
Browse files Browse the repository at this point in the history
Based on my feedback from #496
  • Loading branch information
humitos committed Jan 15, 2025
1 parent 7bf95fb commit ea8deb0
Showing 1 changed file with 22 additions and 29 deletions.
51 changes: 22 additions & 29 deletions src/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
width: 100%;
height: 100%;
z-index: 3000;
line-height: 1.875;
line-height: 1;
}

:host > div a {
Expand Down Expand Up @@ -61,16 +61,15 @@
right: 0;
bottom: 0;
z-index: 100000;
height: 60%;
height: 80%;
width: 60%;
max-height: 1000px;
max-width: 1500px;
max-width: 700px;
overflow-y: hidden;
display: flex;
flex-direction: column;
border: 1px solid var(--readthedocs-search-content-border-color, #e0e0e0);
border-radius: 0.7rem;
line-height: 1.875;
line-height: 1.75;
background-color: var(--readthedocs-search-content-background-color, #fcfcfc);
box-shadow:
rgba(0, 0, 0, 0.05) 5px 5px 5px 5px,
Expand All @@ -80,9 +79,9 @@

:host > div form {
background-color: var(--readthedocs-search-input-background-color, #eaeaea);
margin: 1.2rem;
margin: 0.5rem;
border-radius: 0.25em;
font-size: 1.15em;
font-size: 1.05em;
padding: 5px;
display: flex;
}
Expand All @@ -94,7 +93,7 @@

:host > div form > label {
font-size: 1.15em;
padding-left: 10px;
padding-left: 5px;
color: #333;
}

Expand All @@ -118,24 +117,17 @@

:host > div .results {
margin-top: 10px;
padding: 1.15em;
padding: 0.5em;
overflow-y: scroll;
height: 100%;
hyphens: auto;
}

div.hit-block {
padding: 10px;
border-radius: 0.3rem;
border-style: solid;
border-width: 1px;
border-color: var(--readthedocs-search-result-section-border-color, #a0a0a0);
margin-bottom: 5px;

padding-top: 3px;
border-top: 1px solid rgb(224, 224, 224);
display: flex;
flex-direction: column;

box-shadow: 2px 2px 8px 0 rgba(34, 36, 38, 0.08);
}

div.hit-block a.hit-block-heading {
Expand All @@ -154,8 +146,8 @@ div.hit-block .hit-block-heading-container .close-icon {
font-size: 1.15em;
width: 1em;
padding-right: 10px;
margin-bottom: 15px;
color: #333;
color: #999;
padding-top: 5px;
}

button.close-icon {
Expand Down Expand Up @@ -199,12 +191,10 @@ div.hit-block .hit-block-heading-container svg {
:host > div .results h2 {
display: inline-block;
font-weight: 700;
margin-bottom: 15px;
margin-top: 0;
font-size: 1.15em;
margin-top: 3px;
margin-bottom: 5px;
font-size: 1em;
color: black;
border-bottom: 1px solid
var(--readthedocs-search-result-section-border-color, #a0a0a0);
line-height: inherit;
}

Expand All @@ -218,7 +208,7 @@ div.hit-block .hit-block-heading-container svg {
}

:host > div .results .hit .subheading {
color: var(--readthedocs-search-result-section-subheading-color, #999);
color: var(--readthedocs-search-result-section-subheading-color, #888);
font-weight: 700;
font-size: 15px;
margin-right: 10px;
Expand All @@ -230,7 +220,7 @@ div.hit-block .hit-block-heading-container svg {
:host > div .results .hit .content {
margin: 0;
text-decoration: none;
color: black;
color: #999;
font-size: 15px;
display: block;
margin-bottom: 5px;
Expand Down Expand Up @@ -269,11 +259,13 @@ div.hit-block .hit-block-heading-container svg {
:host > div .credits {
float: right;
margin: 0 15px;
font-size: small;
padding-top: 3px;
}

:host > div .credits a img {
display: inline-block;
width: 125px;
width: 100px;
vertical-align: middle;
}

Expand All @@ -297,7 +289,7 @@ div.hit-block .hit-block-heading-container svg {
:host > div .filters {
position: relative;
padding-top: 0.9rem;
margin: 0 1.15em;
margin: 0 0.5em;
}

:host > div .filters ul {
Expand All @@ -308,6 +300,7 @@ div.hit-block .hit-block-heading-container svg {
border-style: solid;
border-width: 1px;
border-color: var(--readthedocs-search-filters-border-color, #e0e0e0);
border-bottom: 1px solid #e0e0e0;
}

:host > div .filters li {
Expand Down

0 comments on commit ea8deb0

Please sign in to comment.