2016-04-04 09:47:17 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
|
|
|
#WRAPPER > #MENU-SIDE{
|
2016-04-05 13:08:42 +00:00
|
|
|
|
|
|
|
/* [1] Elements du menu
|
|
|
|
=========================================================*/
|
2016-04-06 14:24:45 +00:00
|
|
|
& > span:not(.icon){
|
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-08 09:56:04 +00:00
|
|
|
padding: 1.5em 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-10 11:20:37 +00:00
|
|
|
background: url('/f/svg/circle/st/menu-side/29282e') 1em center no-repeat,
|
|
|
|
url('/f/svg/sub/st/menu-side/777777') right 1em center no-repeat;
|
|
|
|
background-size: 2em 2em, 1em 1em;
|
|
|
|
|
|
|
|
|
|
|
|
// Modification du sens de la fleche quand le sous-menu est deroule
|
|
|
|
&.active{
|
|
|
|
background: url('/f/svg/circle/st/menu-side/29282e') 1em center no-repeat,
|
|
|
|
url('/f/svg/sub-active/st/menu-side/dddddd') right 1em center no-repeat;
|
|
|
|
background-size: 2em 2em, 1em 1em;
|
|
|
|
}
|
|
|
|
|
2016-04-05 13:08:42 +00:00
|
|
|
color: $dark-fg;
|
|
|
|
text-shadow: 1px 1px 0 darken($dark-bg, 5);
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 09:56:04 +00:00
|
|
|
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-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-08 09:56:04 +00:00
|
|
|
transition: fill .2s ease-in-out;
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-04-10 10:18:52 +00:00
|
|
|
/* (2) @hover ou .active -> survol souris ou active */
|
|
|
|
&:hover,
|
|
|
|
&.active{
|
2016-04-06 12:38:07 +00:00
|
|
|
border-bottom-color: darken($dark-bg-primary, 2);
|
2016-04-05 13:08:42 +00:00
|
|
|
box-shadow: inset 0 0 1em darken($dark-bg-primary, 1);
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-05 13:08:42 +00:00
|
|
|
background-color: $dark-bg-primary;
|
|
|
|
color: $dark-fg-primary;
|
|
|
|
text-shadow: 1px 1px 0 darken($dark-bg-primary, 5);
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-05 13:08:42 +00:00
|
|
|
& > svg, & > svg *{
|
|
|
|
fill: $theme-fg-primary !important;
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-05 13:08:42 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* [2] Specification pour le logo
|
|
|
|
=========================================================*/
|
2016-04-06 14:24:45 +00:00
|
|
|
& > span.icon{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
width: calc( 100% - 3em - 2*1.5em );
|
|
|
|
height: calc( #{$header-height} - 1px );
|
|
|
|
|
|
|
|
padding: 0 1.5em;
|
|
|
|
padding-left: calc( 1.5em + 3em );
|
|
|
|
|
|
|
|
border-bottom: 1px solid transparent;
|
|
|
|
|
|
|
|
background: $dark-bg;
|
|
|
|
|
|
|
|
color: $dark-fg-primary;
|
|
|
|
text-shadow: 1px 1px 0 darken($dark-bg, 5);
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: $header-height;
|
|
|
|
|
|
|
|
& > svg, & > svg *{
|
|
|
|
position: absolute;
|
|
|
|
top: calc( 50% - 5em/2 );
|
|
|
|
left: 1.5em;
|
|
|
|
height: 5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&:hover{
|
|
|
|
border-bottom-color: darken($dark-bg-primary, 2);
|
|
|
|
box-shadow: inset 0 0 1em darken($dark-bg-primary, 1);
|
|
|
|
|
|
|
|
background-color: $dark-bg-primary;
|
|
|
|
color: $dark-fg-primary;
|
|
|
|
text-shadow: 1px 1px 0 darken($dark-bg-primary, 5);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* [3] Elements du menu avec separateur en dessous
|
|
|
|
=========================================================*/
|
|
|
|
& > span.sep{
|
|
|
|
border-bottom: 1px solid lighten($dark-bg, 10);
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
|
2016-04-10 11:20:37 +00:00
|
|
|
|
|
|
|
/* [4] Gestion du menu deroulant
|
|
|
|
=========================================================*/
|
|
|
|
/* (1) Quand le menu est deroule */
|
|
|
|
& > span:not(.icon).active + div.sub>span{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
width: calc( 100% - 2*1.5em );
|
|
|
|
|
|
|
|
padding: .5em 1.5em;
|
|
|
|
padding-left: 1.5em;
|
|
|
|
|
|
|
|
border-bottom: 1px solid transparent;
|
|
|
|
|
|
|
|
background: darken($dark-bg-primary, 2) url('/f/svg/sub/st/menu-side/888888') .5em center no-repeat;;
|
|
|
|
background-size: .5em;
|
|
|
|
|
|
|
|
color: darken($dark-fg, 20);
|
|
|
|
font-size: .85em;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
transition: color .2s ease-in-out;
|
|
|
|
|
|
|
|
// Animation de @hover ou .active
|
|
|
|
&:hover,
|
|
|
|
&.active{
|
|
|
|
color: $dark-fg-primary;
|
|
|
|
background-image: url('/f/svg/sub/st/menu-side/ffffff');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (2) Quand le menu est replie */
|
|
|
|
|
|
|
|
& > span:not(.icon):not(.active) + div.sub>span{
|
|
|
|
display: none;
|
|
|
|
}
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|