2016-04-19 15:08:59 +00:00
|
|
|
@import 'constants.scss';
|
2016-04-04 09:47:17 +00:00
|
|
|
|
|
|
|
#WRAPPER > #CONTAINER{
|
|
|
|
|
|
|
|
/* [1] Section (contenu)
|
|
|
|
=========================================================*/
|
|
|
|
& > section{
|
2016-04-10 11:20:37 +00:00
|
|
|
display: none;
|
|
|
|
|
2016-04-21 14:41:11 +00:00
|
|
|
margin: 3em;
|
2016-04-20 08:43:32 +00:00
|
|
|
|
2016-04-10 11:20:37 +00:00
|
|
|
// Gestion de l'activation des sous-parties
|
2016-04-12 09:47:03 +00:00
|
|
|
&.active{ display: block; }
|
2016-04-19 15:08:59 +00:00
|
|
|
|
2016-04-15 10:10:38 +00:00
|
|
|
// Gestion d'une section contenant des graphiques
|
|
|
|
&.charts{
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-around;
|
|
|
|
}
|
2016-04-10 11:20:37 +00:00
|
|
|
|
2016-04-04 09:47:17 +00:00
|
|
|
position: relative;
|
2016-04-08 14:58:40 +00:00
|
|
|
flex-grow: 1;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-10 13:33:36 +00:00
|
|
|
padding: 1em;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-10 13:33:36 +00:00
|
|
|
border-radius: 3px;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
background-color: #fff;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
color: #000;
|
2016-04-10 16:27:38 +00:00
|
|
|
font-size: 1em;
|
2016-04-19 15:08:59 +00:00
|
|
|
|
2016-04-12 09:47:03 +00:00
|
|
|
border: 1px solid #ddd;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
/* [2] Titres
|
|
|
|
=========================================================*/
|
|
|
|
& h6{
|
|
|
|
color: lighten($theme-fg, 20);
|
|
|
|
font-size: 1.2em;
|
|
|
|
text-transform: uppercase;
|
|
|
|
font-weight: 300;
|
|
|
|
letter-spacing: .2em;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-10 16:27:38 +00:00
|
|
|
&:before{content:'- ';}
|
|
|
|
&:after{content:' -';}
|
|
|
|
|
|
|
|
// quand centré
|
|
|
|
&.center{
|
|
|
|
text-align: center;
|
|
|
|
}
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-19 15:08:59 +00:00
|
|
|
|
|
|
|
/* [3][4] Boutons radio + Checkboxes
|
2016-04-08 14:58:40 +00:00
|
|
|
=========================================================*/
|
|
|
|
& input[type="radio"],
|
|
|
|
& input[type="checkbox"]{
|
|
|
|
display: none;
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
2016-04-19 15:08:59 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
// Label
|
|
|
|
& input[type="radio"] + label[for],
|
|
|
|
& input[type="checkbox"] + label[for]{
|
|
|
|
padding-left: .8em;
|
2016-04-19 15:08:59 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
// Pas de selection
|
|
|
|
-webkit-touch-callout: none; /* iOS Safari */
|
|
|
|
-webkit-user-select: none; /* Chrome/Safari/Opera */
|
|
|
|
-khtml-user-select: none; /* Konqueror */
|
|
|
|
-moz-user-select: none; /* Firefox */
|
|
|
|
-ms-user-select: none; /* IE/Edge */
|
|
|
|
user-select: none; /* non-prefixed */
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-05-04 17:28:20 +00:00
|
|
|
cursor: pointer;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
// Receptacle
|
|
|
|
&:before{
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
top: .1em;
|
|
|
|
left: -.8em;
|
|
|
|
width: calc( 1em - 2*.15em );
|
|
|
|
height: calc( 1em - 2*.15em );
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
border-radius: 50% / 50%;
|
|
|
|
border: .15em solid $theme-fg-primary;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
background: #fff center center no-repeat;
|
|
|
|
background-image: none;
|
|
|
|
background-size: 70% auto;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-22 08:27:58 +00:00
|
|
|
@include transition( background .2s ease-in-out );
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
cursor: pointer;
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
2016-05-04 17:28:20 +00:00
|
|
|
|
|
|
|
// Animation de hover pour le texte
|
2016-05-20 10:35:45 +00:00
|
|
|
&:hover,
|
|
|
|
.hover{
|
2016-05-04 17:28:20 +00:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
// Quand actif
|
|
|
|
& input[type="radio"]:checked + label[for]:before,
|
|
|
|
& input[type="checkbox"]:checked + label[for]:before{
|
|
|
|
background-color: $theme-fg-primary;
|
2016-09-11 10:22:35 +00:00
|
|
|
background-image: url('/src/static/container/checked.svg');
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
|
2016-04-19 15:08:59 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
// Specifique a checkbox
|
|
|
|
& input[type="checkbox"] + label[for]:before{
|
2016-04-04 09:47:17 +00:00
|
|
|
border-radius: 3px;
|
2016-05-08 16:31:58 +00:00
|
|
|
@include transition( border .1s ease-in-out );
|
|
|
|
}
|
|
|
|
& input[type="checkbox"] + label[for]:hover:before{
|
|
|
|
border-color: darken($theme-fg-primary, 15);
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
/* [5] Boutons de submit
|
|
|
|
=========================================================*/
|
2016-04-12 10:03:15 +00:00
|
|
|
& input[type="submit"],
|
2016-04-08 14:58:40 +00:00
|
|
|
& input[type="button"]{
|
2016-05-26 14:33:00 +00:00
|
|
|
padding: .2em .5em;
|
2016-04-10 16:27:38 +00:00
|
|
|
margin: .5em 0;
|
2016-04-19 15:08:59 +00:00
|
|
|
|
2016-04-10 16:27:38 +00:00
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid $theme-fg;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
color: $theme-fg;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
|
|
|
background-color: #fff;
|
2016-04-19 15:08:59 +00:00
|
|
|
|
2016-04-22 08:27:58 +00:00
|
|
|
@include transition( background .1s ease-in-out, color .1s ease-in-out );
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-10 16:27:38 +00:00
|
|
|
/* (1) Animation de @hover */
|
2016-05-20 10:35:45 +00:00
|
|
|
&:hover,
|
|
|
|
&.hover{
|
2016-04-08 15:08:06 +00:00
|
|
|
background-color: $theme-fg;
|
|
|
|
color: #fff;
|
2016-04-08 14:58:40 +00:00
|
|
|
}
|
2016-04-04 09:47:17 +00:00
|
|
|
|
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
/* (2) Bouton primaire */
|
|
|
|
&.primary{
|
|
|
|
border-color: $theme-fg-primary;
|
|
|
|
color: $theme-fg-primary;
|
2016-04-04 09:47:17 +00:00
|
|
|
background-color: #fff;
|
|
|
|
|
2016-04-19 15:08:59 +00:00
|
|
|
|
2016-04-10 16:27:38 +00:00
|
|
|
/* (3) Animation de @hover pour bouton primaire */
|
2016-05-20 10:35:45 +00:00
|
|
|
&:hover,
|
|
|
|
&.hover{
|
2016-04-08 14:58:40 +00:00
|
|
|
background-color: $theme-fg-primary;
|
|
|
|
color: #fff;
|
|
|
|
}
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-05-20 10:35:45 +00:00
|
|
|
|
|
|
|
& input[type='text'],
|
|
|
|
& input[type='number'],
|
|
|
|
& input[type='date'],
|
|
|
|
& input[type='time']{
|
|
|
|
display: inline-block;
|
|
|
|
padding: .2em .5em;
|
2016-05-21 13:56:17 +00:00
|
|
|
margin: .5em 0;
|
2016-05-20 10:35:45 +00:00
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid #777;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-04-13 12:49:53 +00:00
|
|
|
/* [6] Images inline
|
|
|
|
=========================================================*/
|
|
|
|
& img{
|
|
|
|
margin: 1em;
|
|
|
|
height: 3em;
|
|
|
|
}
|
|
|
|
|
2016-04-14 09:07:13 +00:00
|
|
|
/* [7] Contour flags
|
|
|
|
=========================================================*/
|
|
|
|
& .flag{
|
|
|
|
margin: 0 .8em;
|
2016-04-20 14:57:59 +00:00
|
|
|
padding: .2em .5em;
|
2016-04-14 09:07:13 +00:00
|
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
border: 1px solid #b5b5b5;
|
|
|
|
|
2016-04-19 15:08:59 +00:00
|
|
|
color: #555;
|
2016-04-14 09:07:13 +00:00
|
|
|
font-family: 'Inconsolata';
|
|
|
|
}
|
|
|
|
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-05-26 14:33:00 +00:00
|
|
|
.flat-border{ border-radius: 0; }
|
|
|
|
|
|
|
|
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
|
2016-04-19 15:08:59 +00:00
|
|
|
}
|