zola/docs/sass/_search.scss

48 lines
688 B
SCSS
Raw Permalink Normal View History

2018-03-20 20:27:33 +00:00
.search-container {
display: inline-block;
position: relative;
width: 300px;
input {
width: 100%;
2018-03-21 14:25:25 +00:00
padding: 0.5rem;
2018-03-20 20:27:33 +00:00
}
}
2018-03-15 17:58:32 +00:00
.search-results {
display: none;
2018-03-20 20:27:33 +00:00
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;
2018-03-21 14:25:25 +00:00
width: 150%;
right: 0;
2018-03-20 20:27:33 +00:00
&__items {
list-style: none;
}
2018-03-21 14:25:25 +00:00
li {
margin-top: 1rem;
border-bottom: 1px solid #ccc;
font-size: 0.9rem;
&:first-of-type {
margin-top: 0;
}
}
2018-03-20 20:27:33 +00:00
&__item {
margin-bottom: 1rem;
2018-03-21 14:25:25 +00:00
a {
font-size: 1.2rem;
display: inline-block;
margin-bottom: 0.5rem;
}
2018-03-20 20:27:33 +00:00
}
2018-03-15 17:58:32 +00:00
}