2016-02-02 22:56:48 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
2016-02-02 22:29:30 +00:00
|
|
|
#WRAPPER > #CONTAINER{
|
|
|
|
|
2016-02-14 19:37:41 +00:00
|
|
|
/* [1] Section (contenu)
|
2016-02-05 09:26:10 +00:00
|
|
|
=========================================================*/
|
2016-02-03 08:00:06 +00:00
|
|
|
& > section{
|
2016-02-06 10:41:50 +00:00
|
|
|
display: none;
|
2016-02-03 08:00:06 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
2016-02-06 10:41:50 +00:00
|
|
|
// @active
|
|
|
|
& > section.active{
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2016-02-08 20:46:11 +00:00
|
|
|
// @active + .list
|
|
|
|
& > section.active.list{
|
|
|
|
display: flex;
|
2016-02-15 21:01:00 +00:00
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-around;
|
|
|
|
flex-wrap: wrap;
|
2016-02-08 20:46:11 +00:00
|
|
|
|
|
|
|
.inline-box{
|
2016-02-15 21:01:00 +00:00
|
|
|
flex: 0 1 1;
|
2016-02-08 20:46:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-02 22:29:30 +00:00
|
|
|
|
2016-02-05 09:26:10 +00:00
|
|
|
|
2016-02-14 19:37:41 +00:00
|
|
|
/* [2] INLINE-BOX pour afficher les listes de donnees
|
2016-02-05 09:26:10 +00:00
|
|
|
=========================================================*/
|
|
|
|
& > section > .inline-box{
|
2016-02-08 20:46:11 +00:00
|
|
|
display: inline-block;
|
2016-02-05 09:26:10 +00:00
|
|
|
position: relative;
|
2016-02-15 21:01:00 +00:00
|
|
|
width: calc( 50% - 2*1em - 2*1em );
|
|
|
|
margin: 1em;
|
2016-02-05 09:26:10 +00:00
|
|
|
padding: 1em;
|
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
box-shadow: 0 0 1px #b7b7b7;
|
|
|
|
|
|
|
|
background-color: #fff;
|
2016-02-05 09:51:38 +00:00
|
|
|
|
2016-02-14 14:17:26 +00:00
|
|
|
a{
|
|
|
|
text-decoration: none;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2016-02-05 09:51:38 +00:00
|
|
|
/* (1) Titre de l'element */
|
|
|
|
.title{
|
|
|
|
display: inline-block;
|
|
|
|
|
2016-02-06 10:41:50 +00:00
|
|
|
font-size: 1.15em;
|
2016-02-05 09:51:38 +00:00
|
|
|
font-weight: bold;
|
2016-02-06 10:41:50 +00:00
|
|
|
|
2016-02-15 21:01:00 +00:00
|
|
|
color: darken($theme-color, 10);
|
|
|
|
|
2016-02-06 10:41:50 +00:00
|
|
|
& > span{
|
|
|
|
font-size: .8em;
|
|
|
|
color: #333;
|
|
|
|
}
|
2016-02-05 09:51:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* (2) Code RFID */
|
2016-02-15 21:01:00 +00:00
|
|
|
/* (3) Adresse mail */
|
2016-02-14 21:50:07 +00:00
|
|
|
.code,
|
|
|
|
.mail{
|
2016-02-15 21:01:00 +00:00
|
|
|
display: block;
|
|
|
|
margin: 1em;
|
2016-02-14 14:17:26 +00:00
|
|
|
color: #333;
|
2016-02-05 09:51:38 +00:00
|
|
|
|
|
|
|
// svg (icone)
|
|
|
|
svg{
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2016-02-15 21:01:00 +00:00
|
|
|
margin-left: .5em;
|
2016-02-05 09:51:38 +00:00
|
|
|
margin-right: .5em;
|
|
|
|
margin-bottom: -.6em;
|
|
|
|
width: 1.5em;
|
|
|
|
height: 2em;
|
|
|
|
|
2016-02-14 21:50:07 +00:00
|
|
|
pointer-events: none;
|
|
|
|
|
2016-02-05 09:51:38 +00:00
|
|
|
path{
|
2016-02-14 14:17:26 +00:00
|
|
|
fill: #333 !important;
|
2016-02-14 21:50:07 +00:00
|
|
|
|
|
|
|
pointer-events: none;
|
2016-02-05 09:51:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-02-11 09:34:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* (4) Groupes */
|
|
|
|
.groups{
|
|
|
|
display: block;
|
|
|
|
margin: 1em;
|
2016-02-14 14:17:26 +00:00
|
|
|
color: #333;
|
2016-02-11 09:34:26 +00:00
|
|
|
|
|
|
|
// svg (icone)
|
|
|
|
svg{
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
margin-left: .5em;
|
|
|
|
margin-right: .5em;
|
|
|
|
margin-bottom: -.6em;
|
|
|
|
width: 1.5em;
|
|
|
|
height: 2em;
|
|
|
|
|
2016-02-15 21:01:00 +00:00
|
|
|
pointer-events: none;
|
2016-02-14 21:50:07 +00:00
|
|
|
|
2016-02-11 09:34:26 +00:00
|
|
|
path{
|
2016-02-14 14:17:26 +00:00
|
|
|
fill: #333 !important;
|
2016-02-14 21:50:07 +00:00
|
|
|
|
|
|
|
pointer-events: none;
|
2016-02-11 09:34:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
span{
|
|
|
|
display: inline-block;
|
|
|
|
padding: .1em .5em;
|
|
|
|
margin-right: .2em;
|
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid #bdbdbd;
|
2016-02-14 14:17:26 +00:00
|
|
|
box-shadow: inset 0 0 2px #fafafa;
|
2016-02-11 09:34:26 +00:00
|
|
|
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
|
2016-02-14 14:17:26 +00:00
|
|
|
color: #333;
|
2016-02-11 09:34:26 +00:00
|
|
|
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2016-02-14 21:50:07 +00:00
|
|
|
|
|
|
|
/* (5) Lien vers la modification */
|
|
|
|
.link_edit,
|
|
|
|
.link_remove{
|
|
|
|
display: inline-block;
|
2016-02-15 21:01:00 +00:00
|
|
|
position: relative;
|
2016-02-14 21:50:07 +00:00
|
|
|
width: 1.2em;
|
|
|
|
height: 1.2em;
|
2016-02-15 21:01:00 +00:00
|
|
|
margin-left: 1em;
|
2016-02-14 21:50:07 +00:00
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
& > svg{
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
fill: #ddd !important;
|
|
|
|
|
2016-02-15 15:43:06 +00:00
|
|
|
transition: fill .4s ease-in-out;
|
2016-02-14 21:50:07 +00:00
|
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover{
|
|
|
|
& > svg{
|
2016-02-15 09:22:47 +00:00
|
|
|
fill: $form-neutral-color !important;
|
2016-02-14 21:50:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (6) Lien vers la suppression */
|
|
|
|
.link_remove{
|
|
|
|
|
|
|
|
&:hover{
|
|
|
|
& > svg{
|
2016-02-15 09:22:47 +00:00
|
|
|
fill: $form-invalid-color !important;
|
2016-02-14 21:50:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-02-05 09:51:38 +00:00
|
|
|
|
2016-02-05 09:26:10 +00:00
|
|
|
}
|
|
|
|
|
2016-02-14 19:37:41 +00:00
|
|
|
/* [3] Formulaires
|
|
|
|
=========================================================*/
|
|
|
|
& > section > form{
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2016-02-15 14:55:28 +00:00
|
|
|
left: 50%;
|
2016-02-14 19:37:41 +00:00
|
|
|
margin: .3em 0;
|
|
|
|
padding: 1em;
|
|
|
|
|
2016-02-15 14:55:28 +00:00
|
|
|
border-radius: 3px;
|
|
|
|
border-color: $form-invalid-color;
|
|
|
|
box-shadow: 0 0 1px #b7b7b7;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-02-15 14:55:28 +00:00
|
|
|
background-color: #fff;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-02-15 14:55:28 +00:00
|
|
|
transform: translateX(-50%);
|
|
|
|
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-02-15 11:27:01 +00:00
|
|
|
|
|
|
|
&.valid{
|
|
|
|
border-color: $form-valid-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.neutral{
|
|
|
|
border-color: $form-neutral-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-02-14 19:37:41 +00:00
|
|
|
/* (1) Champs de texte */
|
|
|
|
input[type=text],
|
|
|
|
input[type=mail],
|
2016-02-15 09:22:47 +00:00
|
|
|
input[type=password],
|
|
|
|
&.invalid > input[type=text],
|
|
|
|
&.invalid > input[type=mail],
|
|
|
|
&.invalid > input[type=password],
|
|
|
|
input.invalid[type=text],
|
|
|
|
input.invalid[type=mail],
|
|
|
|
input.invalid[type=password]{
|
2016-02-14 19:37:41 +00:00
|
|
|
display: inline-block;
|
|
|
|
margin: 1em 0;
|
2016-02-15 18:33:10 +00:00
|
|
|
padding: .7em 1em;
|
2016-02-15 09:22:47 +00:00
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid #d7dde8;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-02-15 09:22:47 +00:00
|
|
|
color: #2f3033;
|
|
|
|
|
2016-02-15 15:43:06 +00:00
|
|
|
transition: border .4s ease-in-out;
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:hover{
|
2016-02-15 09:22:47 +00:00
|
|
|
border-color: $form-invalid-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Champs valides
|
|
|
|
&.valid > input[type=text],
|
|
|
|
&.valid > input[type=mail],
|
|
|
|
&.valid > input[type=password],
|
|
|
|
input.valid[type=text],
|
|
|
|
input.valid[type=mail],
|
|
|
|
input.valid[type=password]{
|
2016-02-15 15:43:06 +00:00
|
|
|
&:focus,
|
|
|
|
&:hover{
|
2016-02-15 09:22:47 +00:00
|
|
|
border-color: $form-valid-color;
|
|
|
|
}
|
|
|
|
}
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-02-15 09:22:47 +00:00
|
|
|
// Champs neutres
|
|
|
|
&.neutral > input[type=text],
|
|
|
|
&.neutral > input[type=mail],
|
|
|
|
&.neutral > input[type=password],
|
|
|
|
input.neutral[type=text],
|
|
|
|
input.neutral[type=mail],
|
|
|
|
input.neutral[type=password]{
|
2016-02-15 15:43:06 +00:00
|
|
|
&:focus,
|
|
|
|
&:hover{
|
2016-02-15 09:22:47 +00:00
|
|
|
border-color: $form-neutral-color;
|
2016-02-14 19:37:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 09:22:47 +00:00
|
|
|
|
|
|
|
|
2016-02-14 19:37:41 +00:00
|
|
|
/* (2) Boutons */
|
2016-02-15 09:22:47 +00:00
|
|
|
button,
|
|
|
|
button.invalid,
|
|
|
|
&.invalid > button{
|
2016-02-14 19:37:41 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
left: 50%;
|
|
|
|
|
2016-02-15 18:33:10 +00:00
|
|
|
padding: .7em 1em;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-02-15 18:33:10 +00:00
|
|
|
border-radius: 3px;
|
2016-02-14 19:37:41 +00:00
|
|
|
border: 1px solid $form-invalid-color;
|
|
|
|
|
2016-02-15 15:48:17 +00:00
|
|
|
background-color: $form-invalid-color;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-02-15 15:48:17 +00:00
|
|
|
color: #fff;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-02-15 15:43:06 +00:00
|
|
|
transition: background .4s ease-in-out;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
2016-02-15 15:43:06 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus{
|
2016-02-15 15:48:17 +00:00
|
|
|
background-color: #fff;
|
|
|
|
color: $form-invalid-color;
|
2016-02-14 19:37:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-02-15 09:22:47 +00:00
|
|
|
// Boutons valides
|
|
|
|
button.valid,
|
|
|
|
&.valid > button{
|
2016-02-14 19:37:41 +00:00
|
|
|
border-color: $form-valid-color;
|
|
|
|
|
2016-02-15 15:48:17 +00:00
|
|
|
background-color: $form-valid-color;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-02-15 15:43:06 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus{
|
2016-02-15 15:48:17 +00:00
|
|
|
background-color: #fff;
|
|
|
|
color: $form-valid-color;
|
2016-02-14 19:37:41 +00:00
|
|
|
}
|
|
|
|
}
|
2016-02-15 09:22:47 +00:00
|
|
|
|
|
|
|
// Boutons neutres
|
|
|
|
button.neutral,
|
|
|
|
&.neutral > button{
|
|
|
|
border-color: $form-neutral-color;
|
|
|
|
|
2016-02-15 15:48:17 +00:00
|
|
|
background-color: $form-neutral-color;
|
2016-02-15 09:22:47 +00:00
|
|
|
|
2016-02-15 15:43:06 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus{
|
2016-02-15 15:48:17 +00:00
|
|
|
background-color: #fff;
|
|
|
|
color: $form-neutral-color;
|
2016-02-15 09:22:47 +00:00
|
|
|
}
|
|
|
|
}
|
2016-02-15 11:27:01 +00:00
|
|
|
|
|
|
|
// "OU" separant les boutons
|
|
|
|
hr.OR{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 0;
|
|
|
|
|
|
|
|
border: 0;
|
|
|
|
border-bottom: 1px dashed $form-invalid-color;
|
|
|
|
|
|
|
|
&:before{
|
|
|
|
content: 'OU';
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
padding: 0 1em;
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
color: $form-invalid-color;
|
|
|
|
|
|
|
|
transform: translateX(-50%) translatey(-50%);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// "OU" valide
|
|
|
|
.valid > hr.OR,
|
|
|
|
hr.OR.valid{
|
|
|
|
border-bottom: 1px dashed $form-valid-color;
|
|
|
|
&:before{
|
|
|
|
color: $form-valid-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// "OU" neutre
|
|
|
|
.neutral > hr.OR,
|
|
|
|
hr.OR.neutral{
|
|
|
|
border-bottom: 1px dashed $form-neutral-color;
|
|
|
|
&:before{
|
|
|
|
color: $form-neutral-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2016-02-14 19:37:41 +00:00
|
|
|
}
|
2016-02-05 09:26:10 +00:00
|
|
|
|
2016-02-02 22:29:30 +00:00
|
|
|
}
|