website/static/src/scss/_search.scss
Jake Howard 3b02f21f81
Use OOB to set results count and fix jumping when loading pages
This correctly centers the pagination spinner, and ensures there's only 1.
2022-10-23 18:52:39 +01:00

56 lines
874 B
SCSS

@keyframes search-loading {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
body.page-searchpage {
.search-controls {
margin: 2rem auto;
max-width: 80%;
}
.htmx-request i {
animation: search-loading 1.5s linear infinite;
}
#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;
&:not(.htmx-request) {
display: none;
}
}
}