website/static/src/scss/_search.scss

62 lines
974 B
SCSS

@keyframes search-loading {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
body.page-searchpage {
.search-controls {
margin: 2rem auto;
max-width: 80%;
}
#search-results > p {
font-size: 1.5rem;
text-align: center;
display: flex;
flex-direction: column;
}
input[type="search"] {
@include dark-mode {
background-color: color.adjust($dark, $alpha: -0.2);
color: $white;
&::placeholder {
color: rgba(214 210 205 / 80%);
}
&:focus ~ .icon {
color: $grey-light !important;
}
}
}
.listing-item {
margin-top: 2rem;
}
#search-page-indicator {
text-align: center;
margin-top: 1.5rem;
font-size: $size-3;
&:not(.htmx-request) {
display: none;
}
}
// The search icon is hidden during requests
#search-icon {
opacity: 1 !important;
&.htmx-request {
opacity: 0 !important;
}
}
}