44 lines
808 B
SCSS
44 lines
808 B
SCSS
#MobileSearch > .header {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: var(--z-mobile-search);
|
|
width: 100%;
|
|
height: 3.5rem;
|
|
background: var(--color-background);
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 0.5rem 0 0.25rem;
|
|
|
|
> .SearchInput {
|
|
margin-left: 0.25rem;
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
#MobileSearch > .footer {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: var(--z-mobile-search);
|
|
width: 100%;
|
|
height: 3.5rem;
|
|
background: var(--color-background);
|
|
display: flex;
|
|
align-items: center;
|
|
padding-left: 1rem;
|
|
padding-right: 0.5rem;
|
|
|
|
> .counter {
|
|
flex: 1;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
}
|
|
|
|
#MobileSearch:not(.active) {
|
|
.header, .footer {
|
|
// `display: none` will prevent synchronous focus on iOS
|
|
transform: translateX(-999rem);
|
|
}
|
|
}
|