2019-02-03 17:23:33 +07:00
|
|
|
import styled, { css } from 'react-emotion';
|
|
|
|
import mq from '../../utils/styles/media';
|
2019-06-20 19:37:28 +07:00
|
|
|
import Icon from '../Icon/Icon';
|
2019-04-09 03:29:20 +07:00
|
|
|
import colors from '../../utils/styles/colors';
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-07-15 16:57:32 +07:00
|
|
|
export const Wrapper = styled('div')({
|
|
|
|
'&&': {
|
|
|
|
background: colors.snow,
|
|
|
|
borderTop: `1px solid ${colors.greyGainsboro}`,
|
|
|
|
color: colors.nobel01,
|
|
|
|
fontSize: '14px',
|
|
|
|
padding: '20px',
|
|
|
|
},
|
|
|
|
});
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
export const Inner = styled('div')`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
|
|
|
width: 100%;
|
2019-06-20 19:37:28 +07:00
|
|
|
${() => {
|
|
|
|
return mq.medium(css`
|
|
|
|
min-width: 400px;
|
|
|
|
max-width: 800px;
|
|
|
|
margin: auto;
|
|
|
|
justify-content: space-between;
|
|
|
|
`);
|
|
|
|
}};
|
|
|
|
${() => {
|
|
|
|
return mq.large(css`
|
|
|
|
max-width: 1240px;
|
|
|
|
`);
|
|
|
|
}};
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
export const Left = styled('div')`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
|
|
|
align-items: center;
|
|
|
|
display: none;
|
2019-06-20 19:37:28 +07:00
|
|
|
${() => {
|
|
|
|
return mq.medium(css`
|
|
|
|
display: flex;
|
|
|
|
`);
|
|
|
|
}};
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-07-15 16:57:32 +07:00
|
|
|
export const Right = styled(Left)({
|
|
|
|
'&&': {
|
|
|
|
display: 'flex',
|
|
|
|
},
|
|
|
|
});
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-07-15 16:57:32 +07:00
|
|
|
export const ToolTip = styled('span')({
|
|
|
|
'&&': {
|
|
|
|
position: 'relative',
|
|
|
|
height: '18px',
|
|
|
|
},
|
|
|
|
});
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-07-15 16:57:32 +07:00
|
|
|
export const Earth = styled(Icon)({
|
|
|
|
'&&': {
|
|
|
|
padding: '0 10px',
|
|
|
|
},
|
|
|
|
});
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
export const Flags = styled('span')`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
|
|
|
position: absolute;
|
2019-04-09 03:29:20 +07:00
|
|
|
background: ${colors.greyAthens};
|
2019-02-03 17:23:33 +07:00
|
|
|
padding: 1px 4px;
|
|
|
|
border-radius: 3px;
|
|
|
|
height: 20px;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
visibility: hidden;
|
|
|
|
top: -2px;
|
|
|
|
:before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 29%;
|
|
|
|
left: -4px;
|
|
|
|
margin-left: -5px;
|
|
|
|
border: 5px solid;
|
2019-04-09 03:29:20 +07:00
|
|
|
border-color: ${colors.greyAthens} transparent transparent transparent;
|
2019-02-03 17:23:33 +07:00
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
2019-10-05 04:19:50 +07:00
|
|
|
${/* sc-selector */ ToolTip}:hover & {
|
2019-02-03 17:23:33 +07:00
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-07-15 16:57:32 +07:00
|
|
|
export const Love = styled('span')({
|
|
|
|
'&&': {
|
|
|
|
color: colors.love,
|
|
|
|
padding: '0 5px',
|
|
|
|
},
|
|
|
|
});
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-07-15 16:57:32 +07:00
|
|
|
export const Flag = styled(Icon)({
|
|
|
|
'&&': {
|
|
|
|
padding: '0 5px',
|
|
|
|
},
|
|
|
|
});
|
2019-02-03 17:23:33 +07:00
|
|
|
|
|
|
|
export const Logo = Flag;
|