2016-04-04 09:47:17 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
2016-04-12 08:21:12 +00:00
|
|
|
body{
|
|
|
|
|
|
|
|
font-family: 'Open Sans';
|
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-04 09:47:17 +00:00
|
|
|
#WRAPPER{
|
|
|
|
display: block;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
2016-04-05 13:08:42 +00:00
|
|
|
background-color: $theme-bg;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-11 08:18:10 +00:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
2016-04-12 08:21:12 +00:00
|
|
|
z-index: 1;
|
|
|
|
|
2016-04-04 09:47:17 +00:00
|
|
|
|
|
|
|
/* [1] Header de la page
|
|
|
|
==========================================*/
|
|
|
|
& > #HEADER{
|
2016-04-12 09:47:03 +00:00
|
|
|
display: block;
|
|
|
|
position: fixed;
|
2016-04-04 09:47:17 +00:00
|
|
|
top: 0;
|
2016-04-12 09:47:03 +00:00
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
2016-04-05 13:08:42 +00:00
|
|
|
height: calc( #{$header-height} - 1px );
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-12 09:47:03 +00:00
|
|
|
border-bottom: 1px solid darken($theme-bg, 10);
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-05 13:08:42 +00:00
|
|
|
background-color: $theme-bg-primary;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-12 09:47:03 +00:00
|
|
|
z-index: 9;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* [2] Side-Menu de la page
|
|
|
|
==========================================*/
|
|
|
|
// Gestion du menu
|
|
|
|
& > #MENU-SIDE{
|
|
|
|
display: block;
|
2016-04-11 08:18:10 +00:00
|
|
|
position: fixed;
|
2016-04-12 09:47:03 +00:00
|
|
|
top: $header-height;
|
2016-04-04 09:47:17 +00:00
|
|
|
left: 0;
|
|
|
|
width: $menu-side-width;
|
2016-04-12 09:47:03 +00:00
|
|
|
height: calc( 100% - #{$header-height} );
|
2016-04-04 09:47:17 +00:00
|
|
|
|
|
|
|
box-shadow: 2px 1px 3px #ddd;
|
|
|
|
|
2016-04-05 13:08:42 +00:00
|
|
|
background-color: $dark-bg;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
|
|
|
transition: all .3s;
|
|
|
|
|
2016-04-12 09:47:03 +00:00
|
|
|
z-index: 10;
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* [3] Container de la page
|
|
|
|
==========================================*/
|
|
|
|
& > #CONTAINER{
|
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
2016-04-05 13:08:42 +00:00
|
|
|
top: $header-height;
|
2016-04-04 09:47:17 +00:00
|
|
|
left: $menu-side-width;
|
|
|
|
width: calc( 100% - #{$menu-side-width} - 2*1em );
|
2016-04-11 08:18:10 +00:00
|
|
|
min-height: calc( 100% - #{$header-height} - 2*1em );
|
2016-04-04 09:47:17 +00:00
|
|
|
padding: 1em;
|
|
|
|
|
|
|
|
// Flex properties
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
overflow-x: none;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
2016-04-12 08:21:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* [4] Page de login
|
|
|
|
=========================================================*/
|
|
|
|
#LOGIN{
|
|
|
|
display: flex;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
2016-04-12 09:06:09 +00:00
|
|
|
left: -100%;
|
2016-04-12 08:21:12 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2016-04-12 09:06:09 +00:00
|
|
|
|
|
|
|
// Quand la page de login est visible
|
|
|
|
&.active{
|
|
|
|
left: 0;
|
|
|
|
}
|
2016-04-12 08:21:12 +00:00
|
|
|
|
|
|
|
// flex properties
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
justify-content: space-around;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
background-color: $dark-bg;
|
|
|
|
|
2016-04-12 09:06:09 +00:00
|
|
|
transition: left .3s ease-in-out;
|
|
|
|
|
2016-04-12 08:21:12 +00:00
|
|
|
z-index: 101;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* (1) Logo et nom du site */
|
|
|
|
& > #login-icon{
|
2016-04-12 10:24:04 +00:00
|
|
|
width: 35em;
|
|
|
|
height: 10em;
|
2016-04-12 08:21:12 +00:00
|
|
|
|
2016-04-12 10:24:04 +00:00
|
|
|
background: url('/f/svg/icon/st') center center no-repeat;
|
|
|
|
background-size: auto 100%;
|
2016-04-12 08:21:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* (2) Formulaire de connexion */
|
|
|
|
& > #login-form{
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
|
|
|
|
/* (2.1) Champs de texte (login/password) */
|
|
|
|
& > input[type='text'],
|
|
|
|
& > input[type='password'],
|
|
|
|
& > input[type='button']{
|
|
|
|
display: flex;
|
|
|
|
width: 20em;
|
|
|
|
|
|
|
|
margin: 2em 0;
|
|
|
|
padding: 1em 2em;
|
|
|
|
|
|
|
|
// flex properties
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-around;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: middle;
|
|
|
|
|
|
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
border: 1px solid lighten($theme-fg, 10);
|
|
|
|
|
|
|
|
background-color: $dark-bg;
|
|
|
|
|
|
|
|
color: $dark-fg-primary;
|
|
|
|
|
|
|
|
transition: border .2s ease-in-out;
|
|
|
|
|
2016-04-12 10:24:04 +00:00
|
|
|
cursor: default;
|
|
|
|
|
2016-04-12 08:21:12 +00:00
|
|
|
// Animation de @hover/@focus
|
|
|
|
&:hover,
|
|
|
|
&:focus{
|
|
|
|
border-color: $theme-fg-primary;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* (2.2) Bouton de connexion */
|
|
|
|
& > input[type='button']{
|
|
|
|
margin: 2em auto;
|
|
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
|
|
background-color: $theme-fg-primary;
|
|
|
|
|
|
|
|
color: $dark-fg-primary;
|
|
|
|
font-weight: bold;
|
|
|
|
|
2016-04-12 10:24:04 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
2016-04-12 08:21:12 +00:00
|
|
|
// Animation de @hover
|
|
|
|
&:hover{
|
|
|
|
box-shadow: 0 0 1em darken($dark-bg, 10);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2016-04-12 10:03:15 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (3) Gestio de la fermeture */
|
|
|
|
& > #login-close{
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 2em;
|
|
|
|
right: 2em;
|
|
|
|
width: 2em;
|
|
|
|
height: 2em;
|
|
|
|
|
|
|
|
background: url('/f/svg/close/st/container/ffffff') center center no-repeat;
|
|
|
|
background-size: 80%;
|
|
|
|
|
|
|
|
cursor: pointer;
|
2016-04-12 08:21:12 +00:00
|
|
|
}
|
|
|
|
|
2016-04-12 10:03:15 +00:00
|
|
|
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|