base_ui/assets/common/scss/components/_search-page.scss

282 lines
5.9 KiB
SCSS
Raw Normal View History

2025-02-01 09:34:55 +00:00
.search-page {
&__header {
padding-right: 60px;
padding-left: 60px;
padding-top: 30px;
padding-bottom: 30px;
display: flex;
align-items: center;
.login {
margin-right: auto;
}
}
&__container {
min-height: calc(70vh - 98px);
max-width: 600px;
width: 600px;
margin-right: auto;
margin-left: auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
&__logo {
margin-bottom: 40px;
display: flex;
justify-content: center;
align-items: center;
}
&__search-container {
}
&__search {
position: relative;
height: 48px;
input[type="text"] {
width: 100%;
height: 48px;
height: 48px;
border-radius: 24px;
background: #fff;
border: 1px solid #d9d2c8;
padding-left: 120px;
padding-right: 30px;
display: flex;
align-items: center;
// &::placeholder {
// color: rgba($color: #4e4e4e, $alpha: 0.3);
// transition: all 0.2s linear;
// }
&:focus {
outline: unset;
& + .drop-down {
opacity: 0;
visibility: hidden;
}
// &::placeholder {
// opacity: 0;
// }
}
}
button {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 112px;
border-radius: 24px;
// background: #f2f2e6;
border: 1px solid #d9d2c8;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.2s linear;
&:hover {
background-color: #e0e0d4;
}
}
a.drop-down {
position: absolute;
z-index: 5;
left: 125px;
top: 50%;
transform: translateY(calc(-50%));
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
&:hover {
background: #f2f2e6;
}
&.search-open {
opacity: 1 !important;
background: #f2f2e6;
visibility: visible !important;
img {
transform: rotateX(-180deg);
}
}
}
}
&__text {
margin-top: 25px;
color: rgba($color: #4e4e4e, $alpha: 0.73);
a {
color: #0d65e8;
display: inline-block;
margin-right: 8px;
}
}
&__result {
transition: all 0.2s linear;
position: absolute;
left: 0;
top: calc(100% + 10px);
width: 100%;
max-height: 280px;
border-radius: 15px;
background: transparent;
border: 1px solid #d9d2c8;
background-color: #fff;
overflow-x: hidden;
overflow-y: auto;
padding-top: 5px;
padding-bottom: 5px;
opacity: 0;
visibility: hidden;
z-index: 2;
ul {
list-style: none;
}
li {
position: relative;
display: block;
align-items: center;
&:not(:last-child) {
margin-bottom: 6px;
}
&:hover {
// background-color: #faf9f6;
background-color: #d8f8fd;
.close {
opacity: 1;
visibility: visible;
}
}
&.selected {
background-color: #d8f8fd !important;
}
}
a:not(.close) {
padding: 3px 24px;
padding-right: 20px;
display: flex;
align-items: center;
img {
margin-left: 5px;
margin-top: 2px;
display: inline-block;
}
}
a.close {
position: absolute;
left: 24px;
top: 50%;
transform: translateY(calc(-50%));
opacity: 0;
visibility: hidden;
opacity: 1;
transition: none;
}
&.show {
opacity: 1;
visibility: visible;
}
}
&__filters {
transition: all 0.2s linear;
position: absolute;
left: 0;
top: calc(100% + 10px);
width: 100%;
height: 108px;
border-radius: 15px;
background: transparent;
border: 1px solid #d9d2c8;
background-color: #fff;
overflow: hidden;
padding-top: 20px;
padding-bottom: 20px;
opacity: 0;
visibility: hidden;
&.show {
opacity: 1;
visibility: visible;
}
.item {
display: flex;
align-items: center;
padding-right: 20px;
padding-left: 20px;
&:not(:last-child) {
margin-bottom: 20px;
}
}
input[type="checkbox"] {
width: 18px;
height: 18px;
border-radius: 4px;
border: 2px solid #e4dfd8;
border-color: #e4d8d8;
margin-left: 10px;
// -moz-appearance: none;
// -webkit-appearance: none;
// -o-appearance: none;
transition: all 0.2s linear;
position: relative;
cursor: pointer;
&:checked {
background-color: #3dc8f6;
border-color: #3dc8f6;
}
&::before {
content: "\e9ba";
font-family: "niafam" !important;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
color: white;
font-weight: bold;
font-size: 10px;
}
}
label {
margin-bottom: 0;
}
.select {
margin-right: 10px;
position: relative;
}
select {
min-width: 144px;
height: 29px;
border-radius: 12px;
border: 1px solid #d9d2c8;
background-color: unset;
-webkit-appearance: none;
-moz-appearance: none;
text-indent: 1px;
text-overflow: "";
padding-right: 10px;
padding-left: 30px;
cursor: pointer;
padding-bottom: 10px;
color: #4e4e4e;
}
.drop-down {
pointer-events: none;
user-select: none;
position: absolute;
left: 12px;
top: 50%;
transform: translateY(calc(-50%));
}
}
&__close {
position: absolute;
left: 140px;
top: 50%;
transform: translateY(-50%);
font-weight: bolder;
font-size: 0.8em;
color: #a7a098;
i::before {
display: flex;
transform: rotate(45deg);
text-shadow: 0 0 1px #a7a098;
}
}
}