orzar/assets/sass/elements/_search-popup.scss

205 lines
6.0 KiB
SCSS
Raw Normal View History

2025-06-05 14:46:21 +08:00
/*--------------------------------------------------------------
# Search Popup
--------------------------------------------------------------*/
.search-popup {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: -2;
-webkit-transition: all 1s ease;
-khtml-transition: all 1s ease;
-moz-transition: all 1s ease;
-ms-transition: all 1s ease;
-o-transition: all 1s ease;
transition: all 1s ease;
.search-popup__overlay {
position: fixed;
width: 224vw;
height: 224vw;
top: calc(90px - 112vw);
right: calc(50% - 112vw);
z-index: 3;
display: block;
-webkit-border-radius: 50%;
-khtml-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;
-webkit-transform: scale(0);
-khtml-transform: scale(0);
-moz-transform: scale(0);
-ms-transform: scale(0);
-o-transform: scale(0);
transform: scale(0);
-webkit-transform-origin: center;
transform-origin: center;
-webkit-transition: transform .8s ease-in-out;
-khtml-transition: transform .8s ease-in-out;
-moz-transition: transform .8s ease-in-out;
-ms-transition: transform .8s ease-in-out;
-o-transition: transform .8s ease-in-out;
transition: transform .8s ease-in-out;
transition-delay: 0s;
transition-delay: .3s;
-webkit-transition-delay: .3s;
background: linear-gradient(0deg, rgba(40, 37, 37, 0.20) 0%, rgba(40, 37, 37, 0.20) 100%), rgba(255, 251, 250, 1);
cursor: url(../media/close.png), auto;
@include media-query(767px) {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
transform: none;
width: 100%;
height: 100%;
border-radius: 0;
transform: translateY(-110%);
}
}
.search-popup__content {
position: fixed;
width: 0;
max-width: fit-content;
padding: 30px 96px;
left: 50%;
top: 50%;
opacity: 0;
z-index: 3;
-webkit-transform: translate(-50%, -50%);
-khtml-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-transition: opacity 0.5s 0s, width 0.8s 0.8s cubic-bezier(0.225, 0.01, 0.475, 1.01), transform 0.2s 0s;
-khtml-transition: opacity 0.5s 0s, width 0.8s 0.8s cubic-bezier(0.225, 0.01, 0.475, 1.01), transform 0.2s 0s;
-moz-transition: opacity 0.5s 0s, width 0.8s 0.8s cubic-bezier(0.225, 0.01, 0.475, 1.01), transform 0.2s 0s;
-ms-transition: opacity 0.5s 0s, width 0.8s 0.8s cubic-bezier(0.225, 0.01, 0.475, 1.01), transform 0.2s 0s;
-o-transition: opacity 0.5s 0s, width 0.8s 0.8s cubic-bezier(0.225, 0.01, 0.475, 1.01), transform 0.2s 0s;
transition: opacity 0.5s 0s, width 0.8s 0.8s cubic-bezier(0.225, 0.01, 0.475, 1.01), transform 0.2s 0s;
transition-delay: 0s, 0.8s, 0s;
transition-delay: 0s, .4s, 0s;
transition-delay: .2s;
-webkit-transition-delay: .2s;
h3{
font-family: $font-primary;
font-size: 6.197916666666667vw;
font-style: normal;
font-weight: 400;
line-height: 130%;
color: $light-black;
}
.search-popup__form {
position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
.blur-layer{
border: 1px solid #FFFBFA;
background: rgba(255, 251, 250, 0.50);
backdrop-filter: blur(25px);
padding: 8px;
input[type="search"],
input[type="text"] {
width: 59.583333333333336vw;
background-color: #ffffff !important;
font-size: 15px;
color: #697585;
border: none;
outline: none;
height: 66px;
padding-left: 30px;
&::placeholder{
font-family: $font-sec;
}
}
}
button {
padding: 0;
width: 66px;
height: 66px;
border: 0;
background: transparent;
color: $light-black;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
position: absolute;
top: 8px;
right: 16px;
border-radius: 0;
i {
margin: 0;
font-size: 24px;
}
&::after {
background-color: #9b59b6;
}
}
}
.fade-text{
color: rgba(0, 0, 0, 0.1);
font-size: 22.2916666667vw;
font-style: normal;
font-weight: 400;
line-height: 80%;
letter-spacing: -8.56px;
position: absolute;
top: 100%;
right: 5%;
}
}
&.active {
z-index: 9999;
.search-popup__overlay {
top: auto;
bottom: calc(90px - 112vw);
-webkit-transform: scale(1);
-khtml-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
transition-delay: 0s;
-webkit-transition-delay: 0s;
opacity: 1;
-webkit-transition: transform 1.6s cubic-bezier(0.4, 0, 0, 1);
-khtml-transition: transform 1.6s cubic-bezier(0.4, 0, 0, 1);
-moz-transition: transform 1.6s cubic-bezier(0.4, 0, 0, 1);
-ms-transition: transform 1.6s cubic-bezier(0.4, 0, 0, 1);
-o-transition: transform 1.6s cubic-bezier(0.4, 0, 0, 1);
transition: transform 1.6s cubic-bezier(0.4, 0, 0, 1);
@include media-query(767px) {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
transform: none;
width: 100%;
height: 100%;
border-radius: 0;
transform: translateY(0%);
}
}
.search-popup__content {
width: 100%;
opacity: 1;
transition-delay: .7s;
-webkit-transition-delay: .7s;
}
}
}