sid/css/menu.css

113 lines
3.1 KiB
CSS
Executable File

/*
*
* Gestion complète du MENU
* -------------------------------------
* 1. propriétés complémentaires #MENU
* 2. position textes
* 3. icônes
* 4. Labels
*
*/
/*******************************************/
/*** 1. Propriétés complémentaires #MENU ***/
/*******************************************/
#MENU .userdata{
/* position */
height: 5em;
/* background */
background: #2dcc70 url(../src/menu/userdata/male.svg) left 1em center no-repeat;
background-size: 3em auto;
/* foreground */
color: #fff;
text-indent: 5em;
font-weight: bold;
line-height: 5em;
/* extra */
cursor: default;
}
#MENU .userdata.M{ background-image: url(../src/menu/userdata/male.svg); }
#MENU .userdata.F{ background-image: url(../src/menu/userdata/female.svg); }
#MENU a{
/* position */
display: block;
position: relative;
height: 4em;
padding-left: 5em;
margin-bottom: 1em ;
/* border */
border-bottom: 3px solid transparent;
/* foreground */
color: #92a6b0;
font-size: 14px;
line-height: 4.5em;
font-weight: bold;
text-transform: uppercase;
/* xTra */
cursor: pointer;
/* animation */
transition: .2s ease-in-out;
-moz-transition: .2s ease-in-out;
-webkit-transition: .2s ease-in-out;
-ms-transition: .2s ease-in-out;
-o-transition: .2s ease-in-out;
/* background */
background: transparent url(../src/menu_icon/home_grayscale.svg) left 1em center no-repeat;
background-size: 1.7em;
/* animation */
transition: all 0s, background-size .2s ease-in-out;
-moz-transition: all 0s, background-size .2s ease-in-out;
-webkit-transition: all 0s, background-size .2s ease-in-out;
-ms-transition: all 0s, background-size .2s ease-in-out;
-o-transition: all 0s, background-size .2s ease-in-out;
}
#MENU a:hover,
#MENU a.active{
background: #233342 url(../src/menu_icon/home_grayscale.svg) left 1em center no-repeat;
background-size: 1.7em;
color: #fff;
}
/* gestion des différentes icônes */
#MENU a:nth-child(2){ background-image: url(../src/menu_icon/home.svg); }
#MENU a:nth-child(3){ background-image: url(../src/menu_icon/groups.svg); }
#MENU a:nth-child(4){ background-image: url(../src/menu_icon/ue.svg); }
#MENU a:nth-child(5){ background-image: url(../src/menu_icon/modules.svg); }
#MENU a:nth-child(6){ background-image: url(../src/menu_icon/marks.svg); }
#MENU a:nth-child(7){ background-image: url(../src/menu_icon/settings.svg); }
/* gestion de l'activation des différentes icônes */
#MENU a:nth-child(2):hover,
#MENU a:nth-child(2).active{ background-image: url(../src/menu_icon/home@hover.svg); }
#MENU a:nth-child(3):hover,
#MENU a:nth-child(3).active{ background-image: url(../src/menu_icon/groups@hover.svg); }
#MENU a:nth-child(4):hover,
#MENU a:nth-child(4).active{ background-image: url(../src/menu_icon/ue@hover.svg); }
#MENU a:nth-child(5):hover,
#MENU a:nth-child(5).active{ background-image: url(../src/menu_icon/modules@hover.svg); }
#MENU a:nth-child(6):hover,
#MENU a:nth-child(6).active{ background-image: url(../src/menu_icon/marks@hover.svg); }
#MENU a:nth-child(7):hover,
#MENU a:nth-child(7).active{ background-image: url(../src/menu_icon/settings@hover.svg); }