TelegramPWA/src/components/middle/MobileSearch.scss
Alexander Zinchuk 2163a2afd1 Revert "Middle Column: Add safe zone on iPhone X (#1380)"
This reverts commit aac16ec30d78c0187a67b2d6ca9697caf2cd4a05.
2021-08-13 20:18:44 +03:00

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);
}
}