import styled, { css } from 'styled-components/macro' import { isMobileDevice } from 'config/userAgent' type Props = { height?: number, padding?: number, width?: number, } export const BaseButton = styled.button` border: none; background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; width: ${({ width = 1.6 }) => width}rem; height: ${({ height = 1.6 }) => height}rem; padding: ${({ padding = 0 }) => padding}px; color: white; background-color: rgba(255, 255, 255, 0.12); background-position: center; background-repeat: no-repeat; border-radius: 50%; :hover { background-color: rgba(255, 255, 255, 0.22); } ${isMobileDevice ? css` width: 18px; height: 18px; padding: 4px; position: absolute; top: -30px; right: -30px; @media screen and (orientation: landscape){ width: 24px; height: 24px; padding: 6px; position: absolute; top: -6px; right: -35px; } ` : ''}; `