2016-02-14 19:37:41 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
|
|
|
|
|
|
|
#CONTAINER > .sub-menu-side{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
// Les liens du menu
|
|
|
|
& > span[data-sublink]{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
2017-11-12 16:22:35 +00:00
|
|
|
width: $sub-menu-side-width;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
|
|
|
padding: .3em 1em .3em 2em;
|
|
|
|
margin: 1em;
|
2016-07-08 15:04:41 +00:00
|
|
|
|
2016-02-14 19:37:41 +00:00
|
|
|
border-radius: 3px;
|
2016-07-08 15:04:41 +00:00
|
|
|
|
2016-02-14 19:37:41 +00:00
|
|
|
color: $sub-menu-color;
|
|
|
|
text-shadow: 1px 1px white;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
transition: all .2s;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
// Dimension/Position des svg (icones)
|
|
|
|
& > .svg > svg{
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
left: .5em;
|
|
|
|
// left: 100%;
|
|
|
|
top: 50%;
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
|
2017-11-09 11:38:00 +00:00
|
|
|
-webkit-transform: translateY(-50%);
|
2016-02-14 19:37:41 +00:00
|
|
|
transform: translateY(-50%);
|
|
|
|
|
|
|
|
// Coloration pour tous les elements du svg
|
|
|
|
& path{
|
|
|
|
fill: $sub-menu-color !important;
|
|
|
|
}
|
|
|
|
}
|
2016-07-08 15:04:41 +00:00
|
|
|
|
2016-02-14 19:37:41 +00:00
|
|
|
&:hover,
|
|
|
|
&.active{
|
|
|
|
color: darken($sub-menu-color, 30);
|
|
|
|
background-color: #d8deea;
|
|
|
|
box-shadow: inset 0 0 4px #c8ced9;
|
|
|
|
|
|
|
|
& > .svg > svg path{
|
|
|
|
fill: darken($sub-menu-color, 30) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-07-08 15:04:41 +00:00
|
|
|
|
2016-02-14 19:37:41 +00:00
|
|
|
// On decale le premier
|
|
|
|
& > span[data-sublink]:nth-child(1){
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
|
2016-07-08 15:04:41 +00:00
|
|
|
}
|