mirror of
https://github.com/manilarome/the-glorious-startpage.git
synced 2024-11-27 18:13:33 +01:00
84727755db
* centedbox css * add font-weight to the css * some cleanup
66 lines
1.0 KiB
CSS
66 lines
1.0 KiB
CSS
#searchBoxContainer {
|
|
|
|
width: 100%;
|
|
height: auto;
|
|
top: 40%;
|
|
|
|
opacity: 0;
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
transition: opacity var(--transition-speed),
|
|
top var(--transition-speed),
|
|
pointer-events var(--transition-speed);
|
|
}
|
|
|
|
#searchBox {
|
|
width: 30vw;
|
|
height: 48px;
|
|
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
/*Center horizontally*/
|
|
position: relative;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
|
|
background: var(--base-bg);
|
|
color: var(--base-color);
|
|
text-align: center;
|
|
font-family: roboto-bold, sans-serif;
|
|
font-weight: 700;
|
|
|
|
border: none;
|
|
border-radius: 24px;
|
|
|
|
backdrop-filter: blur(var(--blur-strength));
|
|
}
|
|
|
|
#searchBox::placeholder {
|
|
font-family: roboto-bold, fantasque-sans-mono, sans-serif;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.showSearchBox {
|
|
opacity: 1 !important;
|
|
top: 70% !important;
|
|
pointer-events: initial !important;
|
|
}
|
|
|
|
@media screen and (max-width: 580px) {
|
|
#searchBox {
|
|
width: 50vw;
|
|
}
|
|
|
|
.showSearchBox {
|
|
opacity: 1 !important;
|
|
top: 65% !important;
|
|
pointer-events: initial !important;
|
|
}
|
|
}
|
|
|