zola/docs/sass/_search.scss
FireIsGood 606c2be425
Improve docs header style (#2516)
* refactor: pattern to separate file

causes a lot of lag and also probably isn't the best to inline since we
have scss preprocessing

* fix: escape quotes properly

* feat: improve header styles
2024-06-12 00:02:22 +02:00

55 lines
822 B
SCSS

.search-container {
display: inline-block;
position: relative;
width: 100%;
max-width: 300px;
margin-left: auto;
input {
width: 100%;
padding: 0.5rem;
}
}
.search-results {
display: none;
position: absolute;
background: white;
color: black;
padding: 1rem;
box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.5);
max-height: 500px;
overflow: auto;
width: 150%;
right: 0;
&__items {
list-style: none;
}
li {
margin-top: 1rem;
border-bottom: 1px solid #ccc;
font-size: 0.9rem;
&:first-of-type {
margin-top: 0;
}
}
&__item {
margin-bottom: 1rem;
a {
font-size: 1.2rem;
display: inline-block;
margin-bottom: 0.5rem;
}
}
}
@media only screen and (max-width: 1000px) {
.search-container {
margin-left: 0;
}
}