2019-10-23 15:49:03 +02:00
|
|
|
import styled from 'styled-components';
|
|
|
|
|
2019-10-24 14:41:06 +02:00
|
|
|
import colors from '../../assets/styles/colors';
|
2019-10-23 15:49:03 +02:00
|
|
|
|
|
|
|
const List = styled.ul`
|
|
|
|
margin-bottom: 0;
|
2019-12-05 15:44:47 +01:00
|
|
|
padding-left: 0;
|
2020-03-20 09:19:43 +01:00
|
|
|
max-height: 178px;
|
2020-01-21 18:17:21 +01:00
|
|
|
overflow-y: scroll;
|
2019-10-23 15:49:03 +02:00
|
|
|
li {
|
|
|
|
position: relative;
|
2019-12-05 15:44:47 +01:00
|
|
|
margin-bottom: 2px;
|
|
|
|
&:last-of-type {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
padding-left: 30px;
|
|
|
|
height: 34px;
|
|
|
|
border-radius: 2px;
|
2019-10-23 15:49:03 +02:00
|
|
|
&::before {
|
|
|
|
content: '•';
|
|
|
|
position: absolute;
|
|
|
|
top: calc(50% - 2px);
|
2019-12-05 15:44:47 +01:00
|
|
|
left: 15px;
|
2019-10-23 15:49:03 +02:00
|
|
|
font-weight: bold;
|
|
|
|
display: block;
|
|
|
|
width: 0.5em;
|
|
|
|
height: 0.5em;
|
|
|
|
color: ${colors.leftMenu.darkGrey};
|
|
|
|
line-height: 5px;
|
|
|
|
font-size: 10px;
|
|
|
|
}
|
2019-12-05 15:44:47 +01:00
|
|
|
p {
|
|
|
|
color: ${colors.leftMenu.black};
|
|
|
|
font-size: 13px;
|
|
|
|
line-height: 34px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2019-10-23 15:49:03 +02:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2019-10-24 14:41:06 +02:00
|
|
|
&.active {
|
2019-12-05 15:44:47 +01:00
|
|
|
background-color: #e9eaeb;
|
2019-10-24 14:41:06 +02:00
|
|
|
p {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
2019-12-05 15:44:47 +01:00
|
|
|
&::before {
|
|
|
|
color: ${colors.leftMenu.black};
|
|
|
|
}
|
2019-10-23 15:49:03 +02:00
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default List;
|