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

104 lines
1.5 KiB
SCSS
Raw Normal View History

2024-01-23 16:32:57 +00:00
@mixin search-filter-control {
2023-12-26 10:05:15 +00:00
background: rgb(64 64 64 / 50%);
2023-11-02 19:21:51 +00:00
border-radius: 10rem;
color: #fff;
2023-12-26 10:05:15 +00:00
2023-11-02 19:21:51 +00:00
@include font-size(1.4rem);
2023-12-26 10:05:15 +00:00
2023-11-02 19:21:51 +00:00
font-weight: 500;
height: 4rem;
padding: 0 2rem;
white-space: nowrap;
&:hover {
background: #404040;
}
&:active {
2023-12-26 10:05:15 +00:00
color: rgb(255 255 255 / 40%);
2023-11-02 19:21:51 +00:00
}
}
.searchForm {
position: relative;
.searchField {
background: none;
border: none;
border-bottom: 2px solid #fff;
color: #fff;
2023-12-26 10:05:15 +00:00
2023-11-02 19:21:51 +00:00
@include font-size(4.8rem);
2023-12-26 10:05:15 +00:00
2023-11-02 19:21:51 +00:00
font-weight: bold;
outline: none;
padding: 0 0 0.5rem;
&::placeholder {
2023-12-26 10:05:15 +00:00
color: rgb(255 255 255 / 32%);
2023-11-02 19:21:51 +00:00
}
&:not(:placeholder-shown) + .submitControl {
display: block;
}
}
}
.submitControl {
display: none;
filter: invert(1);
height: 3.2rem;
position: absolute;
right: 0;
top: 2rem;
width: 3.2rem;
}
.searchDescription {
2023-12-26 10:05:15 +00:00
color: rgb(255 255 255 / 64%);
2023-11-02 19:21:51 +00:00
@include font-size(1.6rem);
}
.topicsList {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
margin-top: 9.6rem !important;
}
.topTopic {
2024-01-23 16:32:57 +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-01-23 16:32:57 +00:00
@include search-filter-control;
2023-11-02 19:21:51 +00:00
}