the-glorious-startpage/css/search-box.css
2020-06-04 12:44:21 +08:00

43 lines
754 B
CSS

#searchBox {
background: var(--base-bg);
color: var(--base-color);
text-align: center;
font-family: roboto-bold;
width: 30vw;
height: 48px;
border: none;
border-radius: 24px;
padding-left: 10px;
padding-right: 10px;
margin: 0;
opacity: 0;
position: absolute;
backdrop-filter: blur(var(--blur-strength));
left: 50%;
top: 60%;
pointer-events: none;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
transition: opacity var(--transition-speed),
top var(--transition-speed),
pointer-events var(--transition-speed);
}
.showSearchBox {
opacity: 1 !important;
top: 100% !important;
pointer-events: initial !important;
}
@media screen and (max-width: 580px) {
#searchBox {
width: 50vw;
}
}