Changeset View
Changeset View
Standalone View
Standalone View
cashtab/src/components/App/styles.ts
| Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | export const WalletCtn = styled.div<{ showFooter?: boolean }>` | ||||
| display: flex; | display: flex; | ||||
| flex-direction: column; | flex-direction: column; | ||||
| ${CashtabScroll} | ${CashtabScroll} | ||||
| @media (max-width: 768px) { | @media (max-width: 768px) { | ||||
| max-height: unset; | max-height: unset; | ||||
| overflow-y: unset; | overflow-y: unset; | ||||
| padding: 0 0 100px; | padding: 0 0 100px; | ||||
| min-height: ${props => | min-height: ${props => | ||||
| props.showFooter ? 'calc(100vh - 70px)' : '100vh'}; | props.showFooter | ||||
| ? 'calc(100vh - var(--cashtab-mobile-footer-offset, 70px))' | |||||
| : '100vh'}; | |||||
| } | } | ||||
| `; | `; | ||||
| export const Footer = styled.div` | export const Footer = styled.div` | ||||
| width: 230px; | width: 230px; | ||||
| background: ${props => props.theme.primaryBackground}; | background: ${props => props.theme.primaryBackground}; | ||||
| display: flex; | display: flex; | ||||
| flex-direction: column; | flex-direction: column; | ||||
| Show All 10 Lines | @media (max-width: 768px) { | ||||
| align-items: center; | align-items: center; | ||||
| justify-content: space-between; | justify-content: space-between; | ||||
| padding: 0; | padding: 0; | ||||
| position: fixed; | position: fixed; | ||||
| flex-direction: row; | flex-direction: row; | ||||
| bottom: 0; | bottom: 0; | ||||
| overflow: visible; | overflow: visible; | ||||
| border-right: none; | border-right: none; | ||||
| /* OS keyboard covers or hides the tab bar — see cashtabOsKeyboard */ | |||||
| html[data-cashtab-os-keyboard] & { | |||||
| display: none; | |||||
| } | |||||
| /* Hide Settings nav button on mobile */ | /* Hide Settings nav button on mobile */ | ||||
| & > button:last-of-type { | & > button:last-of-type { | ||||
| display: none; | display: none; | ||||
| } | } | ||||
| } | } | ||||
| `; | `; | ||||
| export const NavWrapper = styled.div` | export const NavWrapper = styled.div` | ||||
| ▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | @media (max-width: 768px) { | ||||
| props.clicked ? 'rotate(-135deg)' : 'rotate(0)'}; | props.clicked ? 'rotate(-135deg)' : 'rotate(0)'}; | ||||
| } | } | ||||
| } | } | ||||
| `; | `; | ||||
| export const NavMenu = styled.div<{ open?: boolean }>` | export const NavMenu = styled.div<{ open?: boolean }>` | ||||
| @media (max-width: 768px) { | @media (max-width: 768px) { | ||||
| position: absolute; | position: absolute; | ||||
| bottom: 70px; | bottom: var(--cashtab-mobile-footer-offset, 70px); | ||||
| right: ${props => (props.open ? '0' : '-300px')}; | right: ${props => (props.open ? '0' : '-300px')}; | ||||
| display: flex; | display: flex; | ||||
| flex-direction: column; | flex-direction: column; | ||||
| border: 1px solid ${props => props.theme.border}; | border: 1px solid ${props => props.theme.border}; | ||||
| overflow: auto; | overflow: auto; | ||||
| transition: all 250ms ease-in-out; | transition: all 250ms ease-in-out; | ||||
| max-height: calc(100vh - 70px); | max-height: calc(100vh - 70px); | ||||
| background-color: ${props => props.theme.primaryBackground}; | background-color: ${props => props.theme.primaryBackground}; | ||||
| ▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines | |||||