webapp/src/components/SearchModal/SearchModal.module.scss

126 lines
1.8 KiB
SCSS
Raw Normal View History

2024-02-04 14:39:05 +00:00
@mixin search-filter-control {
2024-10-03 09:01:44 +00:00
font-size:1.4rem;
2023-11-02 19:21:51 +00:00
height: 4rem;
padding: 0 2rem;
2024-02-04 14:39:05 +00:00
background: rgb(64 64 64 / 50%);
2024-01-25 15:06:26 +00:00
border-radius: 10rem;
color: #fff;
font-weight: 500;
2023-11-02 19:21:51 +00:00
white-space: nowrap;
&:hover {
background: #404040;
}
&:active {
2024-02-04 14:39:05 +00:00
color: rgb(255 255 255 / 40%);
2023-11-02 19:21:51 +00:00
}
}
2024-01-25 15:06:26 +00:00
.searchContainer {
2023-11-02 19:21:51 +00:00
position: relative;
2024-01-25 15:06:26 +00:00
}
2023-11-02 19:21:51 +00:00
2024-01-25 15:06:26 +00:00
.searchInput {
2024-10-03 09:01:44 +00:00
font-size:4.8rem;
2024-01-25 15:06:26 +00:00
width: 100%;
padding: 0 0 0.5rem;
background: none;
border: none;
border-bottom: 2px solid #fff;
color: #fff;
font-weight: bold;
outline: none;
2023-11-02 19:21:51 +00:00
2024-01-25 15:06:26 +00:00
&::placeholder {
2024-02-04 14:39:05 +00:00
color: rgb(255 255 255 / 32%);
2024-01-25 15:06:26 +00:00
}
&:not(:placeholder-shown) + .searchButton img {
filter: invert(1);
}
&::selection {
color: #2638d9;
2023-11-02 19:21:51 +00:00
}
}
2024-01-25 15:06:26 +00:00
.searchButton {
2023-11-02 19:21:51 +00:00
position: absolute;
right: 0;
top: 2rem;
width: 3.2rem;
2024-01-25 15:06:26 +00:00
height: 3.2rem;
& img {
filter: invert(0.4);
}
2023-11-02 19:21:51 +00:00
}
.searchDescription {
2024-10-03 09:01:44 +00:00
font-size:1.6rem;
2024-07-12 13:19:49 +00:00
margin-bottom: 44px;
2024-02-04 14:39:05 +00:00
color: rgb(255 255 255 / 64%);
2023-11-02 19:21:51 +00:00
}
.topicsList {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
margin-top: 9.6rem !important;
}
.topTopic {
2024-02-04 14:39:05 +00:00
@include search-filter-control;
2023-11-02 19:21:51 +00:00
}
.filterSwitcher {
margin: 0 0 6.4rem !important;
padding: 0 !important;
button {
color: #fff !important;
}
:global(.view-switcher__item--selected) {
button {
border-bottom-color: #fff !important;
&:hover {
background: none !important;
}
}
}
}
.filterResults {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin: 6.4rem 0;
}
.filterResultsControl {
2024-02-04 14:39:05 +00:00
@include search-filter-control;
2024-01-25 15:06:26 +00:00
}
.searchLoader {
width: 28px;
height: 28px;
border: 5px solid #fff;
border-bottom-color: transparent;
border-radius: 50%;
animation: rotation 1s linear infinite;
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
2023-11-02 19:21:51 +00:00
}