2018-05-25 18:27:05 +03:00
|
|
|
import styled from 'styled-components';
|
2017-06-07 02:23:23 +03:00
|
|
|
import remcalc from 'remcalc';
|
2018-05-25 18:27:05 +03:00
|
|
|
import is, { isNot } from 'styled-is';
|
2017-06-07 02:23:23 +03:00
|
|
|
|
2017-11-23 14:18:38 +02:00
|
|
|
import BaseAnchor from '../anchor';
|
2017-06-07 02:23:23 +03:00
|
|
|
|
2018-03-28 15:51:34 +03:00
|
|
|
export default styled.li`
|
2017-06-07 02:23:23 +03:00
|
|
|
font-size: ${remcalc(15)};
|
|
|
|
line-height: 1.6;
|
2018-02-26 14:07:30 +02:00
|
|
|
flex-shrink: 0;
|
2018-03-28 15:51:34 +03:00
|
|
|
`;
|
2018-02-26 14:07:30 +02:00
|
|
|
|
2018-03-28 15:51:34 +03:00
|
|
|
export const Anchor = styled(BaseAnchor)`
|
2018-04-12 12:53:00 +03:00
|
|
|
color: ${props => props.theme.text};
|
2018-05-25 18:27:05 +03:00
|
|
|
font-weight: ${props => props.theme.font.weight.text};
|
2017-06-07 02:23:23 +03:00
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
2018-02-26 15:47:52 +02:00
|
|
|
padding: 0 ${remcalc(12)};
|
2018-05-08 18:00:11 +03:00
|
|
|
padding-bottom: ${remcalc(15)};
|
2018-02-26 14:07:30 +02:00
|
|
|
position: relative;
|
2017-06-07 02:23:23 +03:00
|
|
|
|
2018-05-25 18:27:05 +03:00
|
|
|
&:after {
|
|
|
|
width: 100%;
|
|
|
|
height: ${remcalc(1)};
|
|
|
|
background: ${props => props.theme.grey};
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
2018-02-26 14:07:30 +02:00
|
|
|
|
2018-05-25 18:27:05 +03:00
|
|
|
&.active {
|
2018-02-26 14:07:30 +02:00
|
|
|
&:after {
|
2018-05-25 18:27:05 +03:00
|
|
|
background: ${props => props.theme.font.regular};
|
2018-02-26 14:07:30 +02:00
|
|
|
}
|
2017-06-07 02:23:23 +03:00
|
|
|
}
|
2017-10-18 05:29:47 +03:00
|
|
|
|
2018-05-25 18:27:05 +03:00
|
|
|
&.active {
|
|
|
|
font-weight: ${props => props.theme.font.weight.semibold};
|
|
|
|
}
|
|
|
|
|
2017-10-18 05:29:47 +03:00
|
|
|
${is('active')`
|
2018-05-25 18:27:05 +03:00
|
|
|
font-weight: ${props => props.theme.font.weight.semibold}
|
|
|
|
`};
|
|
|
|
|
|
|
|
${is('white')`
|
|
|
|
color: ${props => props.theme.white};
|
|
|
|
|
|
|
|
${isNot('active')`
|
|
|
|
color: ${props => props.theme.greyDark};
|
|
|
|
`};
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
background: ${props => props.theme.greyDarker};
|
|
|
|
};
|
|
|
|
`};
|
2018-02-26 14:07:30 +02:00
|
|
|
|
2018-05-25 18:27:05 +03:00
|
|
|
${is('white', 'active')`
|
2018-02-26 14:07:30 +02:00
|
|
|
&:after {
|
2018-05-25 18:27:05 +03:00
|
|
|
background: ${props => props.theme.white};
|
2018-02-26 14:07:30 +02:00
|
|
|
}
|
2017-10-18 05:29:47 +03:00
|
|
|
`};
|
2018-03-28 15:51:34 +03:00
|
|
|
`;
|