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/Common/Radio/styled.tsx

41 lines
810 B

import styled from 'styled-components/macro'
export const Wrapper = styled.div`
`
export const Label = styled.label`
color: ${({ theme: { colors } }) => colors.text};
font-style: normal;
font-weight: bold;
font-size: 18px;
line-height: 21px;
`
export const Input = styled.input`
position: absolute;
z-index: -1;
opacity: 0;
&+${Label} {
display: inline-flex;
align-items: center;
user-select: none;
}
&+${Label}::before {
content: '';
display: inline-block;
width: 26px;
height: 26px;
margin-right: 22px;
background-repeat: no-repeat;
background-position: center center;
background-image: url(/images/radioUnchecked.svg);
cursor: pointer;
}
&:checked+${Label}::before {
background-image: url(/images/radioChecked.svg);
}
`