2019-11-23 19:41:14 +07:00
|
|
|
import styled from '@emotion/styled';
|
2019-10-08 03:19:18 +07:00
|
|
|
|
2019-11-23 19:41:14 +07:00
|
|
|
import { breakpoints } from '../../utils/styles/media';
|
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
|
|
|
|
2019-11-23 19:41:14 +07:00
|
|
|
export const Wrapper = styled('div')<{ theme?: Theme }>(props => ({
|
|
|
|
background: props.theme && props.theme.palette.snow,
|
|
|
|
borderTop: `1px solid ${props.theme && props.theme.palette.greyGainsboro}`,
|
|
|
|
color: props.theme && props.theme.palette.nobel01,
|
|
|
|
fontSize: '14px',
|
|
|
|
padding: '20px',
|
|
|
|
}));
|
|
|
|
|
|
|
|
export const Inner = styled('div')({
|
|
|
|
display: 'flex',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'flex-end',
|
|
|
|
width: '100%',
|
|
|
|
[`@media (min-width: ${breakpoints.medium}px)`]: {
|
|
|
|
minWidth: 400,
|
|
|
|
maxWidth: 800,
|
|
|
|
margin: 'auto',
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
},
|
|
|
|
[`@media (min-width: ${breakpoints.large}px)`]: {
|
|
|
|
maxWidth: 1240,
|
2019-07-15 16:57:32 +07:00
|
|
|
},
|
|
|
|
});
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-11-23 19:41:14 +07:00
|
|
|
export const Left = styled('div')({
|
|
|
|
alignItems: 'center',
|
|
|
|
display: 'none',
|
|
|
|
[`@media (min-width: ${breakpoints.medium}px)`]: {
|
2019-07-15 16:57:32 +07:00
|
|
|
display: 'flex',
|
|
|
|
},
|
|
|
|
});
|
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
|
|
|
|
2019-11-23 19:41:14 +07:00
|
|
|
export const Flags = styled('span')<{ theme?: Theme }>(props => ({
|
|
|
|
position: 'absolute',
|
|
|
|
background: props.theme && props.theme.palette.greyAthens,
|
|
|
|
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',
|
|
|
|
borderColor: `${props.theme && props.theme.palette.greyAthens} transparent transparent transparent`,
|
|
|
|
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
|
|
|
|
2019-11-23 19:41:14 +07:00
|
|
|
export const Love = styled('span')<{ theme?: Theme }>(props => ({
|
|
|
|
color: props.theme && props.theme.palette.love,
|
|
|
|
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;
|