2016-04-04 09:47:17 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
|
|
|
#WRAPPER > #MENU-SIDE{
|
2016-04-19 15:08:59 +00:00
|
|
|
|
2016-04-05 13:08:42 +00:00
|
|
|
/* [1] Elements du menu
|
|
|
|
=========================================================*/
|
2016-04-12 09:47:03 +00:00
|
|
|
& > span{
|
2016-04-04 09:47:17 +00:00
|
|
|
display: block;
|
|
|
|
position: relative;
|
2016-04-05 13:08:42 +00:00
|
|
|
width: calc( 100% - 2*1em - 2*1.5em );
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-14 08:02:44 +00:00
|
|
|
padding: .8em 1.5em;
|
2016-04-05 13:08:42 +00:00
|
|
|
padding-left: calc( 1.5em + 2*1em );
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-06 12:38:07 +00:00
|
|
|
border-bottom: 1px solid transparent;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-14 16:33:04 +00:00
|
|
|
background: url('/f/svg/sub/st/menu-side/aaaaaa') right 1.5em center no-repeat;
|
|
|
|
background-size: .5em .5em;
|
2016-04-10 11:20:37 +00:00
|
|
|
|
2016-04-14 08:40:27 +00:00
|
|
|
|
|
|
|
color: #666;
|
2016-04-14 08:02:44 +00:00
|
|
|
font-size: .85em;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-22 08:27:58 +00:00
|
|
|
@include transition( color .2s ease-in-out, background .2s ease-in-out, box-shadow .2s ease-in-out, border .2s ease-in-out );
|
2016-04-04 09:47:17 +00:00
|
|
|
|
|
|
|
cursor: pointer;
|
2016-04-19 15:08:59 +00:00
|
|
|
|
2016-04-05 13:08:42 +00:00
|
|
|
/* (1) Icone svg */
|
|
|
|
& > svg, & > svg *{
|
2016-04-04 09:47:17 +00:00
|
|
|
position: absolute;
|
2016-04-05 13:08:42 +00:00
|
|
|
top: calc( 50% - 1em/2 );
|
|
|
|
left: 1.5em;
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-05 13:08:42 +00:00
|
|
|
fill: $dark-fg !important;
|
2016-04-22 08:27:58 +00:00
|
|
|
@include transition( fill .2s ease-in-out );
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-04-14 16:33:04 +00:00
|
|
|
/* (2) Animation de @hover */
|
|
|
|
&:not(.active):hover{
|
|
|
|
background-image: url('/f/svg/sub/st/menu-side/000000');
|
|
|
|
color: #000;
|
|
|
|
|
|
|
|
& > svg, & > svg *{
|
|
|
|
fill: #000 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (3) Animation quand .active */
|
2016-04-10 10:18:52 +00:00
|
|
|
&.active{
|
2016-04-14 09:07:13 +00:00
|
|
|
border-bottom-color: darken($theme-fg-primary, 5);
|
2016-04-14 08:40:27 +00:00
|
|
|
// box-shadow: inset 0 0 1em darken($dark-bg-primary, 1);
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-14 09:07:13 +00:00
|
|
|
background-color: $theme-fg-primary;
|
2016-04-14 16:33:04 +00:00
|
|
|
background-image: url('/f/svg/sub-active/st/menu-side/ffffff');
|
2016-04-05 13:08:42 +00:00
|
|
|
color: $dark-fg-primary;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-05 13:08:42 +00:00
|
|
|
& > svg, & > svg *{
|
2016-04-14 08:02:44 +00:00
|
|
|
fill: #fff !important;
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-05 13:08:42 +00:00
|
|
|
|
2016-04-06 14:24:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-14 08:40:27 +00:00
|
|
|
/* [2] Gestion du menu deroulant
|
2016-04-10 11:20:37 +00:00
|
|
|
=========================================================*/
|
|
|
|
/* (1) Quand le menu est deroule */
|
2016-04-13 12:49:53 +00:00
|
|
|
& > span:not(.icon) + div.sub>span{
|
2016-04-10 11:20:37 +00:00
|
|
|
display: block;
|
|
|
|
position: relative;
|
2016-04-14 08:02:44 +00:00
|
|
|
width: calc( 100% - 1.5em - 2.5em );
|
2016-04-10 11:20:37 +00:00
|
|
|
|
|
|
|
padding: .5em 1.5em;
|
2016-04-14 08:02:44 +00:00
|
|
|
padding-left: 2.5em;
|
2016-04-10 11:20:37 +00:00
|
|
|
|
2016-04-14 09:07:13 +00:00
|
|
|
background: $dark-bg url('/f/svg/sub/st/menu-side/888888') 1.5em center no-repeat;;
|
2016-04-10 11:20:37 +00:00
|
|
|
background-size: .5em;
|
|
|
|
|
2016-04-14 09:07:13 +00:00
|
|
|
color: darken($dark-fg, 10);
|
2016-04-10 11:20:37 +00:00
|
|
|
font-size: .85em;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
2016-04-22 08:27:58 +00:00
|
|
|
@include transition( color .2s ease-in-out );
|
2016-04-19 15:08:59 +00:00
|
|
|
|
2016-04-10 11:20:37 +00:00
|
|
|
// Animation de @hover ou .active
|
|
|
|
&:hover,
|
|
|
|
&.active{
|
|
|
|
color: $dark-fg-primary;
|
|
|
|
background-image: url('/f/svg/sub/st/menu-side/ffffff');
|
|
|
|
}
|
|
|
|
}
|
2016-04-14 08:02:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
& > span:not(.icon):not(.active) + div.sub>span{
|
|
|
|
display: none;
|
|
|
|
}
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|