You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
spa_instat_tv/src/features/PopupComponents/BaseButton/index.tsx

50 lines
1.0 KiB

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<Props>`
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;
}
`
: ''};
`