2016-04-04 09:47:17 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
|
|
|
#WRAPPER > #CONTAINER{
|
|
|
|
|
|
|
|
/* [1] Section (contenu)
|
|
|
|
=========================================================*/
|
|
|
|
& > section{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
2016-04-08 14:58:40 +00:00
|
|
|
flex-grow: 1;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
padding: 1.5em;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
border-radius: 5px;
|
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;
|
|
|
|
font-size: 1.2em;
|
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-08 14:58:40 +00:00
|
|
|
// &:before{content:'- ';}
|
|
|
|
// &:after{content:' -';}
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
/* [3][4] Boutons radio + Checkboxes
|
|
|
|
=========================================================*/
|
|
|
|
& input[type="radio"],
|
|
|
|
& input[type="checkbox"]{
|
|
|
|
display: none;
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
2016-04-08 14:58:40 +00:00
|
|
|
|
|
|
|
// Label
|
|
|
|
& input[type="radio"] + label[for],
|
|
|
|
& input[type="checkbox"] + label[for]{
|
|
|
|
padding-left: .8em;
|
|
|
|
|
|
|
|
// 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-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-08 14:58:40 +00:00
|
|
|
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-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;
|
|
|
|
background-image: url('/f/svg/checked/st/container');
|
2016-04-04 09:47:17 +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-04-08 14:58:40 +00:00
|
|
|
/* [5] Boutons de submit
|
|
|
|
=========================================================*/
|
|
|
|
& input[type="button"]{
|
|
|
|
margin: .5em;
|
|
|
|
padding: .5em;
|
|
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
border: 3px solid $theme-fg;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 14:58:40 +00:00
|
|
|
font-weight: bold;
|
|
|
|
color: $theme-fg;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
|
|
|
background-color: #fff;
|
2016-04-08 14:58:40 +00:00
|
|
|
|
2016-04-08 15:08:06 +00:00
|
|
|
transition: background .1s ease-in-out, color .1s ease-in-out;
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-08 15:08:06 +00:00
|
|
|
/* (1) Animation de @active */
|
|
|
|
&:active{
|
|
|
|
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-08 14:58:40 +00:00
|
|
|
|
2016-04-08 15:08:06 +00:00
|
|
|
/* (3) Animation de @active pour bouton primaire */
|
|
|
|
&:active{
|
2016-04-08 14:58:40 +00:00
|
|
|
background-color: $theme-fg-primary;
|
|
|
|
color: #fff;
|
|
|
|
}
|
2016-04-04 09:47:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|