2016-04-04 09:47:17 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
2016-04-18 06:42:26 +00:00
|
|
|
body{
|
2016-04-12 08:21:12 +00:00
|
|
|
|
|
|
|
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-18 06:42:26 +00:00
|
|
|
|
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-21 14:41:11 +00:00
|
|
|
border-bottom: 1px solid darken($header-dark, 10);
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-21 14:41:11 +00:00
|
|
|
background-color: $header-dark;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-21 15:14:50 +00:00
|
|
|
z-index: 100;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-04-18 06:42:26 +00:00
|
|
|
|
2016-04-04 09:47:17 +00:00
|
|
|
/* [2] Side-Menu de la page
|
2016-04-18 06:42:26 +00:00
|
|
|
==========================================*/
|
2016-04-04 09:47:17 +00:00
|
|
|
// 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-14 08:40:27 +00:00
|
|
|
background-color: #fff;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-22 08:27:58 +00:00
|
|
|
@include transition( all .3s );
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-12 09:47:03 +00:00
|
|
|
z-index: 10;
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
2016-04-18 06:42:26 +00:00
|
|
|
|
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;
|
2016-04-20 08:43:32 +00:00
|
|
|
width: calc( 100% - #{$menu-side-width} );
|
|
|
|
min-height: calc( 100% - #{$header-height} );
|
|
|
|
// margin: 1em;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
|
|
|
// Flex properties
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
2016-04-20 09:59:21 +00:00
|
|
|
flex-wrap: wrap;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
|
|
|
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-18 06:42:26 +00:00
|
|
|
|
2016-04-12 08:21:12 +00:00
|
|
|
// flex properties
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
justify-content: space-around;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
2016-05-26 17:43:50 +00:00
|
|
|
background-color: #D7D7D9;
|
2016-04-12 08:21:12 +00:00
|
|
|
|
2016-04-22 08:27:58 +00:00
|
|
|
@include transition( left .3s ease-in-out );
|
2016-04-12 09:06:09 +00:00
|
|
|
|
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-09-11 10:06:40 +00:00
|
|
|
background: url('/src/static/iconv2.svg') center center no-repeat;
|
2016-04-12 10:24:04 +00:00
|
|
|
background-size: auto 100%;
|
2016-04-12 08:21:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* (2) Formulaire de connexion */
|
|
|
|
& > #login-form{
|
|
|
|
display: block;
|
2016-04-18 06:42:26 +00:00
|
|
|
|
2016-04-12 08:21:12 +00:00
|
|
|
|
|
|
|
/* (2.1) Champs de texte (login/password) */
|
|
|
|
& > input[type='text'],
|
|
|
|
& > input[type='password'],
|
2016-04-12 15:46:34 +00:00
|
|
|
& > input[type='submit']{
|
2016-04-12 08:21:12 +00:00
|
|
|
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;
|
|
|
|
|
2016-04-18 06:42:26 +00:00
|
|
|
|
2016-05-26 14:33:00 +00:00
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid #aaa;
|
2016-04-12 08:21:12 +00:00
|
|
|
|
2016-05-25 15:27:18 +00:00
|
|
|
background-color: $header-dark;
|
2016-04-12 08:21:12 +00:00
|
|
|
|
2016-05-25 15:27:18 +00:00
|
|
|
color: #444;
|
2016-05-11 21:34:29 +00:00
|
|
|
// font-weight: bold;
|
2016-05-25 15:27:18 +00:00
|
|
|
letter-spacing: .02em;
|
2016-04-18 06:42:26 +00:00
|
|
|
|
2016-04-22 08:27:58 +00:00
|
|
|
@include transition( border .2s ease-in-out );
|
2016-04-12 08:21:12 +00:00
|
|
|
|
2016-05-25 15:27:18 +00:00
|
|
|
// cursor: default;
|
2016-04-12 10:24:04 +00:00
|
|
|
|
2016-04-12 08:21:12 +00:00
|
|
|
// Animation de @hover/@focus
|
|
|
|
&:hover,
|
2016-05-26 14:33:00 +00:00
|
|
|
&:focus
|
|
|
|
&:not([value=""]){
|
2016-04-12 08:21:12 +00:00
|
|
|
border-color: $theme-fg-primary;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* (2.2) Bouton de connexion */
|
2016-04-12 15:46:34 +00:00
|
|
|
& > input[type='submit']{
|
2016-04-13 11:36:49 +00:00
|
|
|
width: 100%;
|
2016-05-26 14:33:00 +00:00
|
|
|
margin-top: calc( 2em - 3px );
|
|
|
|
margin-bottom: 2em;
|
2016-04-18 06:42:26 +00:00
|
|
|
|
2016-04-12 08:21:12 +00:00
|
|
|
border: 0;
|
2016-05-25 15:27:18 +00:00
|
|
|
border-top: 3px solid darken($theme-fg-primary, 15);
|
2016-04-12 08:21:12 +00:00
|
|
|
|
|
|
|
background-color: $theme-fg-primary;
|
|
|
|
|
|
|
|
color: $dark-fg-primary;
|
|
|
|
font-weight: bold;
|
2016-04-13 13:15:52 +00:00
|
|
|
text-align: left;
|
2016-04-12 08:21:12 +00:00
|
|
|
|
2016-04-12 10:24:04 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
2016-05-25 15:27:18 +00:00
|
|
|
@include transition( all .1s ease-in-out );
|
|
|
|
|
2016-04-12 08:21:12 +00:00
|
|
|
// Animation de @hover
|
2016-05-25 15:27:18 +00:00
|
|
|
&:hover, &.hover{
|
2016-04-12 12:27:54 +00:00
|
|
|
background-color: darken($theme-fg-primary, 10);
|
2016-05-26 12:39:49 +00:00
|
|
|
border-top-width: 1px;
|
2016-05-26 14:33:00 +00:00
|
|
|
margin-top: calc( 2em - 2px );
|
|
|
|
margin-bottom: calc( 2em + 2px );
|
2016-05-25 15:27:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Animation de clic @active
|
2016-05-26 12:39:49 +00:00
|
|
|
&:active{
|
2016-05-26 14:33:00 +00:00
|
|
|
border-top-width: 0;
|
2016-05-26 12:39:49 +00:00
|
|
|
margin-top: 2em;
|
|
|
|
margin-bottom: calc( 2em + 3px );
|
2016-04-12 08:21:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2016-04-12 10:03:15 +00:00
|
|
|
|
2016-04-12 12:27:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* (3) Mot de passe oublie */
|
|
|
|
& > #lost-password{
|
2016-05-26 14:33:00 +00:00
|
|
|
position: absolute;
|
2016-05-25 15:27:18 +00:00
|
|
|
color: #777;
|
2016-04-12 12:27:54 +00:00
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
// Animation de @hover
|
|
|
|
&:hover{
|
|
|
|
color: $theme-fg-primary;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-12 10:03:15 +00:00
|
|
|
}
|
|
|
|
|
2016-04-13 12:49:53 +00:00
|
|
|
/* (4) Gestion de la fermeture */
|
2016-04-12 10:03:15 +00:00
|
|
|
& > #login-close{
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 2em;
|
|
|
|
right: 2em;
|
2016-04-12 14:30:14 +00:00
|
|
|
min-width: 2em;
|
2016-04-12 10:03:15 +00:00
|
|
|
height: 2em;
|
|
|
|
|
2016-09-11 10:18:21 +00:00
|
|
|
background: url('/src/static/container/back@555555.svg') right center no-repeat;
|
2016-04-12 14:30:14 +00:00
|
|
|
background-size: 1em;
|
|
|
|
|
2016-05-25 15:27:18 +00:00
|
|
|
color: #555;
|
2016-04-12 14:30:14 +00:00
|
|
|
padding-right: 2em;
|
|
|
|
line-height: 2em;
|
|
|
|
font-weight: bold;
|
2016-05-25 15:27:18 +00:00
|
|
|
letter-spacing: 1px;
|
2016-04-12 10:03:15 +00:00
|
|
|
|
|
|
|
cursor: pointer;
|
2016-04-12 08:21:12 +00:00
|
|
|
}
|
2016-04-18 06:42:26 +00:00
|
|
|
}
|