import styled from 'styled-components'; import { ThemeDropDown, ThemeDropDownButton, ThemeDropDownOption, ThemeDropDownOptions } from './desktop'; export const ThemeDropDownMobile = styled(ThemeDropDown)` width: 80%; margin-left: 1rem; `; export const ThemeDropDownButtonMobile = styled(ThemeDropDownButton)` width: 100%; padding: 0.5rem; border: none; border-top: 2px solid; border-left: ${ props => props.show ? "2px solid" : "0px solid"}; border-right: ${ props => props.show ? "2px solid" : "0px solid"}; color: ${props => ({ theme }) => props.focus ? theme.colors.secondary : theme.colors.primary}; background-color: ${({ theme }) => theme.colors.backgroundAlt ? theme.colors.backgroundAlt : theme.colors.background}; &:focus,:hover { color: ${({ theme }) => theme.colors.secondary}; background-color: ${({ theme }) => theme.colors.backgroundAlt ? theme.colors.backgroundAlt : theme.colors.background}; } transition-property: color, border-bottom-left-radius, border-bottom-right-radius, background-color, border-left, border-right; transition-timing-function: ease; transition-duration: 0.15s; transition-delay: 0s, ${ props => props.show ? "0s" : "0.6s, 0.6s, 0s, 0.6s, 0.6s" }; `; export const ThemeDropDownOptionsMobile = styled(ThemeDropDownOptions)` background-image: unset; background-color: transparent; border: 2px solid ${props => ({ theme }) => props.focus ? theme.colors.secondary : theme.colors.primary}; border-top: 0; max-height: ${ props => props.show ? "100%" : "0%"}; position: relative; width: 100%; `; export const ThemeDropDownOptionMobile = styled(ThemeDropDownOption)` text-align: left; margin: 0.5rem; padding: 0rem 0.5rem; width: 80%; border-left: 2px solid; border-radius: 5px; `;