parent
31934c8774
commit
c35dfbd283
@ -1,32 +1,66 @@ |
||||
import styled, { css } from 'styled-components/macro' |
||||
|
||||
import { isMobileDevice } from 'config/userAgent' |
||||
import { Icon } from 'features/Icon' |
||||
|
||||
type PropsFilter = { |
||||
type PropsFilterTitle = { |
||||
opacity: number, |
||||
} |
||||
export const ScSportsFilter = styled.div<PropsFilter>` |
||||
|
||||
type PropsArrows = { |
||||
active?: boolean, |
||||
} |
||||
|
||||
export const ScSportsFilter = styled.div` |
||||
display: flex; |
||||
color: #ffffff; |
||||
opacity: ${({ opacity }) => opacity}; |
||||
font-size: 14px; |
||||
font-size: 1rem; |
||||
text-transform: uppercase; |
||||
font-weight: 700; |
||||
cursor: pointer; |
||||
align-items: center; |
||||
width: 20%; |
||||
justify-content: space-between; |
||||
min-width: 15.4%; |
||||
padding-left: 5px; |
||||
|
||||
${isMobileDevice |
||||
? css` |
||||
width: 30%; |
||||
letter-spacing: 0.15rem; |
||||
font-size: 10px; |
||||
white-space: nowrap; |
||||
padding-left: 0; |
||||
justify-content: center; |
||||
` |
||||
: ''}; |
||||
` |
||||
|
||||
export const ScArrow = styled(Icon)` |
||||
margin-left: 14px; |
||||
export const ScFilterTitle = styled.div<PropsFilterTitle>` |
||||
opacity: ${({ opacity }) => opacity}; |
||||
` |
||||
|
||||
export const Arrows = styled.span<PropsArrows>` |
||||
width: 0.65rem; |
||||
height: 0.65rem; |
||||
border-left: 0.15rem solid #fff; |
||||
border-bottom: 0.15rem solid #fff; |
||||
margin-top: 0.4rem; |
||||
|
||||
${isMobileDevice |
||||
? css` |
||||
width: 6px; |
||||
height: 6px; |
||||
margin-left: 14px; |
||||
margin-top: 3px; |
||||
` |
||||
: ''}; |
||||
|
||||
${({ active }) => ( |
||||
active |
||||
? css` |
||||
transform: translate(-50%, -50%) rotate(135deg); |
||||
` |
||||
: css` |
||||
transform: translate(-50%, -50%) rotate(315deg); |
||||
opacity: 0.5 |
||||
` |
||||
)} |
||||
` |
||||
|
||||
Loading…
Reference in new issue