website/static/src/scss/_search.scss

62 lines
974 B
SCSS
Raw Normal View History

2022-08-01 22:23:06 +01:00
@keyframes search-loading {
0% {
transform: rotate(0deg);
}
2022-08-03 21:22:11 +01:00
2022-08-01 22:23:06 +01:00
100% {
transform: rotate(360deg);
}
}
2022-08-02 21:11:35 +01:00
2022-08-01 22:23:06 +01:00
body.page-searchpage {
.search-controls {
margin: 2rem auto;
max-width: 80%;
}
2022-08-02 21:11:35 +01:00
#search-results > p {
font-size: 1.5rem;
text-align: center;
display: flex;
flex-direction: column;
}
2022-08-27 20:34:23 +01:00
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;
}
}
}
2022-10-04 21:02:43 +01:00
.listing-item {
margin-top: 2rem;
}
#search-page-indicator {
text-align: center;
margin-top: 1.5rem;
2024-01-05 16:49:21 +00:00
font-size: $size-3;
&:not(.htmx-request) {
display: none;
}
}
2024-01-05 16:49:21 +00:00
// The search icon is hidden during requests
#search-icon {
opacity: 1 !important;
&.htmx-request {
opacity: 0 !important;
}
}
2022-08-01 22:23:06 +01:00
}