|
|
|
|
@ -32,9 +32,31 @@ export const Tooltip = styled(TooltipWrapper)` |
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const TabTitle = styled.span` |
|
|
|
|
color: ${({ theme }) => theme.colors.white}; |
|
|
|
|
opacity: 0.4; |
|
|
|
|
type TabTitleProps = { |
|
|
|
|
teamColor?: string | null, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const TabTitle = styled.span<TabTitleProps>` |
|
|
|
|
position: relative; |
|
|
|
|
color: rgba(255, 255, 255, 0.5); |
|
|
|
|
|
|
|
|
|
${({ teamColor, theme }) => (teamColor |
|
|
|
|
? css` |
|
|
|
|
::before { |
|
|
|
|
content: ''; |
|
|
|
|
position: absolute; |
|
|
|
|
left: -8px; |
|
|
|
|
top: 50%; |
|
|
|
|
translate: 0 -50%; |
|
|
|
|
width: 5px; |
|
|
|
|
height: 5px; |
|
|
|
|
outline: ${teamColor.toUpperCase() === theme.colors.white ? 'none' : `0.5px solid ${theme.colors.white}`}; |
|
|
|
|
border-radius: 50%; |
|
|
|
|
background-color: ${teamColor}; |
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|
: '' |
|
|
|
|
)} |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const Tab = styled.button.attrs({ role: 'tab' })` |
|
|
|
|
@ -53,7 +75,7 @@ export const Tab = styled.button.attrs({ role: 'tab' })` |
|
|
|
|
border-color: ${({ theme }) => theme.colors.white}; |
|
|
|
|
|
|
|
|
|
${TabTitle} { |
|
|
|
|
opacity: 1; |
|
|
|
|
color: ${({ theme }) => theme.colors.white}; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|
|