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-06-20 19:37:28 +07:00
|
|
|
export const Wrapper = styled('div')`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-04-09 03:29:20 +07:00
|
|
|
background: ${colors.snow};
|
|
|
|
border-top: 1px solid ${colors.greyGainsboro};
|
|
|
|
color: ${colors.nobel01};
|
2019-02-03 17:23:33 +07:00
|
|
|
font-size: 14px;
|
|
|
|
padding: 20px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
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
|
|
|
${() => {
|
|
|
|
// @ts-ignore
|
|
|
|
return mq.medium(css`
|
|
|
|
min-width: 400px;
|
|
|
|
max-width: 800px;
|
|
|
|
margin: auto;
|
|
|
|
justify-content: space-between;
|
|
|
|
`);
|
|
|
|
}};
|
|
|
|
${() => {
|
|
|
|
// @ts-ignore
|
|
|
|
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
|
|
|
${() => {
|
|
|
|
// @ts-ignore
|
|
|
|
return mq.medium(css`
|
|
|
|
display: flex;
|
|
|
|
`);
|
|
|
|
}};
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const Right = styled(Left)`
|
|
|
|
&& {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
export const ToolTip = styled('span')`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
|
|
|
position: relative;
|
|
|
|
height: 18px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const Earth = styled(Icon)`
|
|
|
|
&& {
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
${ToolTip}:hover & {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
export const Love = styled('span')`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-04-09 03:29:20 +07:00
|
|
|
color: ${colors.love};
|
2019-02-03 17:23:33 +07:00
|
|
|
padding: 0 5px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const Flag = styled(Icon)`
|
|
|
|
&& {
|
|
|
|
padding: 0 5px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const Logo = Flag;
|