2019-11-23 19:41:14 +07:00
|
|
|
import styled from '@emotion/styled';
|
2019-10-08 03:19:18 +07:00
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
import Icon from '../Icon/Icon';
|
2019-11-23 19:41:14 +07:00
|
|
|
import { Theme } from '../../design-tokens/theme';
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2020-03-31 13:44:59 +07:00
|
|
|
export const Wrapper = styled('div')<{ theme?: Theme }>(({ theme }) => ({
|
2020-04-06 00:34:42 +07:00
|
|
|
background: theme?.palette.type === 'light' ? theme?.palette.snow : theme?.palette.cyanBlue,
|
2020-03-31 13:44:59 +07:00
|
|
|
borderTop: `1px solid ${theme?.palette.greyGainsboro}`,
|
|
|
|
color: theme?.palette.type === 'dark' ? theme?.palette.white : theme?.palette.nobel01,
|
2019-11-23 19:41:14 +07:00
|
|
|
fontSize: '14px',
|
|
|
|
padding: '20px',
|
|
|
|
}));
|
|
|
|
|
2019-12-12 22:10:27 +07:00
|
|
|
export const Inner = styled('div')<{ theme?: Theme }>(({ theme }) => ({
|
2019-11-23 19:41:14 +07:00
|
|
|
display: 'flex',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'flex-end',
|
|
|
|
width: '100%',
|
2020-04-06 00:34:42 +07:00
|
|
|
[`@media (min-width: ${theme?.breakPoints.medium}px)`]: {
|
2019-11-23 19:41:14 +07:00
|
|
|
minWidth: 400,
|
|
|
|
maxWidth: 800,
|
|
|
|
margin: 'auto',
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
},
|
2020-04-06 00:34:42 +07:00
|
|
|
[`@media (min-width: ${theme?.breakPoints.large}px)`]: {
|
2019-11-23 19:41:14 +07:00
|
|
|
maxWidth: 1240,
|
2019-07-15 16:57:32 +07:00
|
|
|
},
|
2019-12-12 22:10:27 +07:00
|
|
|
}));
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-12-12 22:10:27 +07:00
|
|
|
export const Left = styled('div')<{ theme?: Theme }>(({ theme }) => ({
|
2019-11-23 19:41:14 +07:00
|
|
|
alignItems: 'center',
|
|
|
|
display: 'none',
|
2020-04-06 00:34:42 +07:00
|
|
|
[`@media (min-width: ${theme?.breakPoints.medium}px)`]: {
|
2019-07-15 16:57:32 +07:00
|
|
|
display: 'flex',
|
|
|
|
},
|
2019-12-12 22:10:27 +07:00
|
|
|
}));
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-11-23 19:41:14 +07:00
|
|
|
export const Right = styled(Left)({
|
|
|
|
display: 'flex',
|
2019-07-15 16:57:32 +07:00
|
|
|
});
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-07-15 16:57:32 +07:00
|
|
|
export const Earth = styled(Icon)({
|
2019-11-23 19:41:14 +07:00
|
|
|
padding: '0 10px',
|
2019-07-15 16:57:32 +07:00
|
|
|
});
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2020-04-06 00:34:42 +07:00
|
|
|
export const Flags = styled('span')<{ theme?: Theme }>(({ theme }) => ({
|
2019-11-23 19:41:14 +07:00
|
|
|
position: 'absolute',
|
2020-04-06 00:34:42 +07:00
|
|
|
background: theme?.palette.greyAthens,
|
2019-11-23 19:41:14 +07:00
|
|
|
padding: '1px 4px',
|
|
|
|
borderRadius: 3,
|
|
|
|
height: 20,
|
|
|
|
display: 'inline-flex',
|
|
|
|
alignItems: 'center',
|
|
|
|
visibility: 'hidden',
|
|
|
|
top: -2,
|
|
|
|
':before': {
|
|
|
|
content: "''",
|
|
|
|
position: 'absolute',
|
|
|
|
top: '29%',
|
|
|
|
left: -4,
|
|
|
|
marginLeft: -5,
|
|
|
|
border: '5px solid',
|
2020-04-06 00:34:42 +07:00
|
|
|
borderColor: `${theme?.palette.greyAthens} transparent transparent transparent`,
|
2019-11-23 19:41:14 +07:00
|
|
|
transform: 'rotate(90deg)',
|
|
|
|
},
|
|
|
|
}));
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-11-23 19:41:14 +07:00
|
|
|
export const ToolTip = styled('span')({
|
|
|
|
position: 'relative',
|
|
|
|
height: '18px',
|
|
|
|
':hover': {
|
|
|
|
[`${Flags}`]: {
|
|
|
|
visibility: 'visible',
|
|
|
|
},
|
2019-07-15 16:57:32 +07:00
|
|
|
},
|
|
|
|
});
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2020-04-06 00:34:42 +07:00
|
|
|
export const Love = styled('span')<{ theme?: Theme }>(({ theme }) => ({
|
|
|
|
color: theme?.palette.love,
|
2019-11-23 19:41:14 +07:00
|
|
|
padding: '0 5px',
|
|
|
|
}));
|
|
|
|
|
2019-07-15 16:57:32 +07:00
|
|
|
export const Flag = styled(Icon)({
|
2019-11-23 19:41:14 +07:00
|
|
|
padding: '0 5px',
|
2019-07-15 16:57:32 +07:00
|
|
|
});
|
2019-02-03 17:23:33 +07:00
|
|
|
|
|
|
|
export const Logo = Flag;
|