parent
31934c8774
commit
c35dfbd283
@ -1,32 +1,66 @@ |
|||||||
import styled, { css } from 'styled-components/macro' |
import styled, { css } from 'styled-components/macro' |
||||||
|
|
||||||
import { isMobileDevice } from 'config/userAgent' |
import { isMobileDevice } from 'config/userAgent' |
||||||
import { Icon } from 'features/Icon' |
|
||||||
|
|
||||||
type PropsFilter = { |
type PropsFilterTitle = { |
||||||
opacity: number, |
opacity: number, |
||||||
} |
} |
||||||
export const ScSportsFilter = styled.div<PropsFilter>` |
|
||||||
|
type PropsArrows = { |
||||||
|
active?: boolean, |
||||||
|
} |
||||||
|
|
||||||
|
export const ScSportsFilter = styled.div` |
||||||
display: flex; |
display: flex; |
||||||
color: #ffffff; |
color: #ffffff; |
||||||
opacity: ${({ opacity }) => opacity}; |
font-size: 1rem; |
||||||
font-size: 14px; |
|
||||||
text-transform: uppercase; |
text-transform: uppercase; |
||||||
font-weight: 700; |
font-weight: 700; |
||||||
cursor: pointer; |
cursor: pointer; |
||||||
align-items: center; |
align-items: center; |
||||||
width: 20%; |
justify-content: space-between; |
||||||
|
min-width: 15.4%; |
||||||
|
padding-left: 5px; |
||||||
|
|
||||||
${isMobileDevice |
${isMobileDevice |
||||||
? css` |
? css` |
||||||
width: 30%; |
|
||||||
letter-spacing: 0.15rem; |
letter-spacing: 0.15rem; |
||||||
font-size: 10px; |
font-size: 10px; |
||||||
white-space: nowrap; |
white-space: nowrap; |
||||||
|
padding-left: 0; |
||||||
|
justify-content: center; |
||||||
` |
` |
||||||
: ''}; |
: ''}; |
||||||
` |
` |
||||||
|
|
||||||
export const ScArrow = styled(Icon)` |
export const ScFilterTitle = styled.div<PropsFilterTitle>` |
||||||
margin-left: 14px; |
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