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
|
|
|
|
2016-02-08 20:46:11 +00:00
|
|
|
// @active + .list
|
2016-07-21 14:25:29 +00:00
|
|
|
& > section.active{
|
2016-02-08 20:46:11 +00:00
|
|
|
display: flex;
|
2016-02-15 21:01:00 +00:00
|
|
|
flex-direction: row;
|
2016-02-16 19:27:57 +00:00
|
|
|
align-items: flex-start;
|
|
|
|
justify-content: flex-start;
|
2016-02-15 21:01:00 +00:00
|
|
|
flex-wrap: wrap;
|
2016-02-08 20:46:11 +00:00
|
|
|
|
2017-09-23 13:05:51 +00:00
|
|
|
&.contain-check-table{
|
|
|
|
flex-direction: column;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
}
|
|
|
|
|
2016-02-08 20:46:11 +00:00
|
|
|
.inline-box{
|
2016-07-12 08:20:57 +00:00
|
|
|
flex: 0 0 1;
|
2016-02-15 21:26:34 +00:00
|
|
|
}
|
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
.inline-row{
|
|
|
|
flex: 3em 0 1;
|
|
|
|
}
|
|
|
|
|
2016-02-15 21:26:34 +00:00
|
|
|
// Barre de recherche
|
|
|
|
.searchbar{
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2016-02-16 19:27:57 +00:00
|
|
|
// width: calc( 100% - 2*1em - 2*1em );
|
|
|
|
flex: calc( 100% - 2*1em - 2*1em );
|
2017-01-06 09:27:30 +00:00
|
|
|
// height: 1em;
|
2016-07-12 08:20:57 +00:00
|
|
|
margin: 1em;
|
2016-02-15 21:36:39 +00:00
|
|
|
padding: .5em 1em;
|
|
|
|
padding-left: 2em;
|
2016-02-15 21:26:34 +00:00
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid #b1b1b1;
|
|
|
|
// box-shadow: 0 0 1px #b7b7b7;
|
|
|
|
|
2016-07-16 11:08:44 +00:00
|
|
|
background: #fff url('/src/static/sub-menu-side/search@b1b1b1.svg') .5em center no-repeat;
|
2016-07-08 13:18:23 +00:00
|
|
|
background-size: 1em;
|
2016-02-15 21:26:34 +00:00
|
|
|
|
|
|
|
transition: border .4s ease-in-out;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus{
|
2016-02-16 13:25:06 +00:00
|
|
|
border-color: $form-search-color;
|
2016-02-15 21:26:34 +00:00
|
|
|
}
|
2016-02-08 20:46:11 +00:00
|
|
|
}
|
2016-02-15 21:36:39 +00:00
|
|
|
|
|
|
|
// Erreur
|
|
|
|
.error{
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: calc( 100% - 2*1em - 2*1em );
|
|
|
|
height: 1em;
|
|
|
|
margin: 1em;
|
|
|
|
padding: 1em;
|
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid $form-invalid-color;
|
|
|
|
|
|
|
|
background: $form-invalid-color;
|
|
|
|
|
|
|
|
color: #fff;
|
|
|
|
text-shadow: 1px 1px darken($form-invalid-color, 10);
|
|
|
|
}
|
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
|
|
|
=========================================================*/
|
2016-07-21 14:25:29 +00:00
|
|
|
& > section > .inline-box,
|
|
|
|
& > section > .inline-row{
|
2016-07-12 08:20:57 +00:00
|
|
|
display: inline-block;
|
2016-02-05 09:26:10 +00:00
|
|
|
position: relative;
|
2016-02-16 19:27:57 +00:00
|
|
|
// width: calc( 50% - 2*1em - 2*1em );
|
2016-07-12 08:20:57 +00:00
|
|
|
flex: calc( 50% - 2*1em - 2*1em );
|
|
|
|
margin: 1em;
|
2016-02-05 09:26:10 +00:00
|
|
|
padding: 1em;
|
|
|
|
|
2016-07-12 08:20:57 +00:00
|
|
|
border-radius: 3px;
|
2016-02-05 09:26:10 +00:00
|
|
|
box-shadow: 0 0 1px #b7b7b7;
|
|
|
|
|
|
|
|
background-color: #fff;
|
2016-02-05 09:51:38 +00:00
|
|
|
|
2016-02-16 19:27:57 +00:00
|
|
|
// Lors de la recherche, quand on veut en masquer
|
|
|
|
&.hidden{
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-02-14 14:17:26 +00:00
|
|
|
a{
|
|
|
|
text-decoration: none;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2016-07-12 13:16:07 +00:00
|
|
|
|
|
|
|
&.selected{
|
|
|
|
border: 1px solid #7362ff;
|
|
|
|
|
|
|
|
transition: box-shadow .2s ease-in-out;
|
2016-07-12 15:40:40 +00:00
|
|
|
|
2016-07-12 13:16:07 +00:00
|
|
|
&:hover{
|
|
|
|
box-shadow: 2px 2px 7px #aaa;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-19 15:31:26 +00:00
|
|
|
/* (0) Etat des machines */
|
|
|
|
.state{
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
width: .7em;
|
|
|
|
height: .7em;
|
|
|
|
|
|
|
|
margin-right: .3em;
|
|
|
|
|
|
|
|
border-radius: 50% / 50%;
|
2017-09-03 17:12:38 +00:00
|
|
|
|
2017-02-19 15:31:26 +00:00
|
|
|
background-color: #ddd;
|
|
|
|
|
2017-02-19 17:07:04 +00:00
|
|
|
&[data-state='stopped']{ background-color: #ddd; }
|
|
|
|
&[data-state='started']{ background-color: #22E07B; }
|
2017-02-19 15:31:26 +00:00
|
|
|
&[data-state='signaled']{ background-color: #3897D6; }
|
|
|
|
&[data-state='locked']{ background-color: #EA460A; }
|
2017-02-22 12:41:14 +00:00
|
|
|
&[data-state='detached']{ background-color: transparent; }
|
2017-02-19 15:31:26 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-07-12 08:20:57 +00:00
|
|
|
/* (1) Titre de l'element */
|
|
|
|
.title{
|
2016-02-05 09:51:38 +00:00
|
|
|
display: inline-block;
|
|
|
|
|
2016-07-12 08:20:57 +00:00
|
|
|
font-size: 1.15em;
|
|
|
|
font-weight: bold;
|
2016-02-15 21:01:00 +00:00
|
|
|
|
2016-07-12 08:20:57 +00:00
|
|
|
color: darken($theme-color, 2);
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
& > 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-07-12 08:20:57 +00:00
|
|
|
display: block;
|
|
|
|
margin: 1em;
|
|
|
|
color: #333;
|
|
|
|
white-space: nowrap;
|
2016-07-08 13:18:23 +00:00
|
|
|
|
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-07-12 10:06:46 +00:00
|
|
|
path#stylisable{
|
2016-02-14 14:17:26 +00:00
|
|
|
fill: #333 !important;
|
2016-07-08 13:18:23 +00:00
|
|
|
|
2016-02-14 21:50:07 +00:00
|
|
|
pointer-events: none;
|
2016-02-05 09:51:38 +00:00
|
|
|
}
|
2016-07-12 10:06:46 +00:00
|
|
|
|
|
|
|
path#stroke-stylisable{
|
|
|
|
stroke: #333 !important;
|
|
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2016-02-05 09:51:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-02-11 09:34:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* (4) Groupes */
|
|
|
|
.groups{
|
2016-07-12 08:20:57 +00:00
|
|
|
display: block;
|
|
|
|
margin: 1em;
|
|
|
|
color: #333;
|
2016-07-16 11:05:24 +00:00
|
|
|
// white-space: nowrap;
|
2016-07-08 13:18:23 +00:00
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-18 13:42:10 +00:00
|
|
|
& > span:not(.ignore),
|
|
|
|
& > span.ignore > span{
|
2016-07-12 08:20:57 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
padding: .1em .5em;
|
|
|
|
margin-right: calc( .4em + 2em );
|
2016-07-20 16:45:43 +00:00
|
|
|
margin-bottom: .5em;
|
2016-07-12 08:20:57 +00:00
|
|
|
|
|
|
|
border-radius: 3px 0 0 3px;
|
|
|
|
border: 1px solid #bdbdbd;
|
|
|
|
box-shadow: inset 0 0 2px #fafafa;
|
|
|
|
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
|
|
|
|
color: #333;
|
|
|
|
|
|
|
|
cursor: default;
|
|
|
|
|
2017-01-15 16:27:02 +00:00
|
|
|
&.add-permission,
|
2016-07-12 08:20:57 +00:00
|
|
|
&.add-group,
|
|
|
|
&.add-member{
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
cursor: pointer;
|
2017-02-18 13:42:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
& > div.dropdown{
|
2017-09-03 17:12:38 +00:00
|
|
|
|
2017-02-18 13:42:10 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
flex: 100%;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
top: calc( 100% + 5px );
|
|
|
|
left: 0;
|
|
|
|
width: 12em;
|
|
|
|
height: 500%;
|
|
|
|
|
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
|
|
box-shadow: 0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.15);
|
|
|
|
|
|
|
|
z-index: 100;
|
|
|
|
|
|
|
|
|
|
|
|
& > span{
|
|
|
|
|
|
|
|
padding: .5em;
|
|
|
|
padding-left: 1em;
|
|
|
|
|
|
|
|
flex: 2em 1 1;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover{
|
|
|
|
|
|
|
|
background-color: #F8F8F8;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2016-07-12 08:20:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
& > span.rem-group,
|
2017-01-15 16:27:02 +00:00
|
|
|
& > span.icon-permission,
|
|
|
|
& > span.rem-permission,
|
2016-07-12 08:20:57 +00:00
|
|
|
& > span.rem-member{
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: -1px;
|
|
|
|
left: 100%;
|
|
|
|
width: 1em;
|
|
|
|
height: calc( 100% - .1em - 2px );
|
2016-07-20 17:01:11 +00:00
|
|
|
padding: .12em .5em;
|
2016-07-12 08:20:57 +00:00
|
|
|
|
|
|
|
border-radius: 0 3px 3px 0;
|
|
|
|
border: 1px solid #bdbdbd;
|
|
|
|
box-shadow: inset 0 0 2px #fafafa;
|
|
|
|
|
|
|
|
background: url('/src/static/sub-menu-side/remove.svg') center center no-repeat;
|
|
|
|
background-size: auto 70%;
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
|
|
|
|
color: inherit;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover{
|
2016-07-16 11:08:44 +00:00
|
|
|
background-image: url('/src/static/sub-menu-side/remove@#{$rd-form-invalid-color}.svg');
|
2016-07-12 08:20:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-01-15 16:27:02 +00:00
|
|
|
& > span.icon-permission,
|
|
|
|
& > span.icon-permission:hover{
|
|
|
|
border-color: #ddd;
|
|
|
|
background-color: #eee;
|
|
|
|
cursor: default;
|
|
|
|
background-image: url('/src/static/sub-menu-side/permission.svg');
|
|
|
|
}
|
2016-07-12 08:20:57 +00:00
|
|
|
}
|
|
|
|
|
2016-02-11 09:34:26 +00:00
|
|
|
}
|
2016-02-14 21:50:07 +00:00
|
|
|
|
|
|
|
/* (5) Lien vers la modification */
|
|
|
|
.link_edit,
|
|
|
|
.link_remove{
|
2016-07-12 08:20:57 +00:00
|
|
|
display: inline-block;
|
|
|
|
float: right;
|
|
|
|
position: relative;
|
2016-02-15 21:26:34 +00:00
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
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-07-08 13:18:23 +00:00
|
|
|
|
2016-02-05 09:26:10 +00:00
|
|
|
}
|
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
|
|
|
|
/* [2-2] INLINE-ROW pour afficher des lignes
|
|
|
|
=========================================================*/
|
|
|
|
& > section.fstart{
|
2017-01-10 16:26:50 +00:00
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
2016-07-21 14:25:29 +00:00
|
|
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.searchbar{
|
2017-01-10 16:26:50 +00:00
|
|
|
flex: auto 1 1;
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-10 16:26:50 +00:00
|
|
|
& > section.active > .inline-row{ flex: auto 1 1; }
|
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
& > section > .inline-row{
|
|
|
|
|
|
|
|
width: calc( 100% - 4em - 2*1em );
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
// Sur la même ligne répartis équitablement
|
2016-07-21 19:12:53 +00:00
|
|
|
& > span{
|
2016-07-21 14:25:29 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-around;
|
|
|
|
|
|
|
|
flex: 100% 1 1;
|
|
|
|
|
|
|
|
border-left: 1px solid #ddd;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&:first-child{
|
|
|
|
border-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
button{
|
|
|
|
flex: auto;
|
|
|
|
width: 5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-02-14 19:37:41 +00:00
|
|
|
/* [3] Formulaires
|
|
|
|
=========================================================*/
|
2016-07-21 14:25:29 +00:00
|
|
|
& > section > form, .form{
|
2016-02-14 19:37:41 +00:00
|
|
|
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-07-08 13:18:23 +00:00
|
|
|
|
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-16 13:25:06 +00:00
|
|
|
&.search{
|
|
|
|
border-color: $form-neutral-color;
|
|
|
|
}
|
|
|
|
|
2016-02-17 11:09:23 +00:00
|
|
|
// Textes centres
|
|
|
|
.edit_search_view,
|
|
|
|
.remove_search_view{
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
color: #aaaaaa;
|
|
|
|
|
|
|
|
span{
|
|
|
|
color: #888888;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-03 17:12:38 +00:00
|
|
|
span.error-msg{
|
|
|
|
display: inline-block;
|
|
|
|
color: #F03C3C;
|
|
|
|
font-size: 0.7em;
|
|
|
|
}
|
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
2016-02-15 11:27:01 +00:00
|
|
|
|
2016-02-15 09:22:47 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
/* (1) Champs de texte */
|
|
|
|
input[type=text],
|
|
|
|
input[type=mail],
|
|
|
|
input[type=password],
|
|
|
|
select,
|
|
|
|
&.invalid > input[type=text],
|
|
|
|
&.invalid > input[type=mail],
|
|
|
|
&.invalid > input[type=password],
|
|
|
|
&.invalid > select,
|
|
|
|
input.invalid[type=text],
|
|
|
|
input.invalid[type=mail],
|
|
|
|
input.invalid[type=password],
|
|
|
|
select.invalid{
|
|
|
|
display: inline-block;
|
|
|
|
margin: 1em 0;
|
|
|
|
padding: .7em 1em;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid #d7dde8;
|
2016-02-15 09:22:47 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
color: #2f3033;
|
2016-02-15 15:43:06 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
transition: border .4s ease-in-out;
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:hover{
|
|
|
|
border-color: $form-invalid-color;
|
2016-02-15 09:22:47 +00:00
|
|
|
}
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
2016-02-15 09:22:47 +00:00
|
|
|
|
2016-07-12 10:06:46 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
select{
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
background: #fff;
|
2016-07-12 10:06:46 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
option{
|
|
|
|
padding: .5em;
|
2016-07-12 10:06:46 +00:00
|
|
|
}
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
2016-07-12 10:06:46 +00:00
|
|
|
|
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
// Champs valides
|
|
|
|
.valid > input[type=text],
|
|
|
|
.valid > input[type=mail],
|
|
|
|
.valid > input[type=password],
|
|
|
|
.valid > select,
|
|
|
|
input.valid[type=text],
|
|
|
|
input.valid[type=mail],
|
|
|
|
input.valid[type=password],
|
|
|
|
select.valid{
|
|
|
|
&:focus,
|
|
|
|
&:hover{
|
|
|
|
border-color: $form-valid-color;
|
2016-02-15 09:22:47 +00:00
|
|
|
}
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
// Champs neutres
|
|
|
|
.neutral > input[type=text],
|
|
|
|
.neutral > input[type=mail],
|
|
|
|
.neutral > input[type=password],
|
|
|
|
.neutral > select,
|
|
|
|
input.neutral[type=text],
|
|
|
|
input.neutral[type=mail],
|
|
|
|
input.neutral[type=password],
|
|
|
|
select.neutral{
|
|
|
|
&:focus,
|
|
|
|
&:hover{
|
|
|
|
border-color: $form-neutral-color;
|
2016-02-14 19:37:41 +00:00
|
|
|
}
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
// Champs neutres
|
|
|
|
.search > input[type=text],
|
|
|
|
.search > input[type=mail],
|
|
|
|
.search > input[type=password],
|
|
|
|
.search > select,
|
|
|
|
input.search[type=text],
|
|
|
|
input.search[type=mail],
|
|
|
|
input.search[type=password]{
|
|
|
|
&:focus,
|
|
|
|
&:hover{
|
|
|
|
border-color: $form-search-color;
|
2016-02-16 13:25:06 +00:00
|
|
|
}
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
2016-02-16 13:25:06 +00:00
|
|
|
|
2016-02-15 09:22:47 +00:00
|
|
|
|
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
/* (2) Boutons */
|
|
|
|
button,
|
|
|
|
button.invalid,
|
|
|
|
.invalid > button{
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
left: 50%;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
padding: .7em 1em;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid $form-invalid-color;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
background: $form-invalid-color center center no-repeat;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
color: #fff;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
transition: background .4s ease-in-out;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
transform: translateX(-50%);
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:disabled{
|
|
|
|
background-color: #fff;
|
|
|
|
color: $form-invalid-color;
|
2016-02-14 19:37:41 +00:00
|
|
|
}
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
2016-02-14 19:37:41 +00:00
|
|
|
|
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
// Boutons valides
|
|
|
|
button.valid,
|
|
|
|
.valid > button{
|
|
|
|
border-color: $form-valid-color;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
background-color: $form-valid-color;
|
2016-02-14 19:37:41 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:disabled{
|
|
|
|
background-color: #fff;
|
|
|
|
color: $form-valid-color;
|
2016-02-14 19:37:41 +00:00
|
|
|
}
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
2016-02-15 09:22:47 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
// Boutons neutres
|
|
|
|
button.neutral,
|
|
|
|
.neutral > button{
|
|
|
|
border-color: $form-neutral-color;
|
2016-02-15 09:22:47 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
background-color: $form-neutral-color;
|
2016-02-15 09:22:47 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:disabled{
|
|
|
|
background-color: #fff;
|
|
|
|
color: $form-neutral-color;
|
2016-02-15 09:22:47 +00:00
|
|
|
}
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
2016-02-15 11:27:01 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
// Boutons recherche
|
|
|
|
button.search,
|
|
|
|
.search > button{
|
|
|
|
border-color: $form-search-color;
|
2016-02-16 13:25:06 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
background-color: $form-search-color;
|
2016-02-16 13:25:06 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:disabled{
|
|
|
|
background-color: #fff;
|
|
|
|
color: $form-search-color;
|
2016-02-16 13:25:06 +00:00
|
|
|
}
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
2016-02-16 13:25:06 +00:00
|
|
|
|
2016-02-18 09:43:05 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
// Boutons quand action validee
|
|
|
|
.invalid > button.active,
|
|
|
|
button.invalid.active,
|
|
|
|
button.active{
|
|
|
|
background-color: #fff;
|
|
|
|
background-image: url('/src/static/container/active@#{$rd-form-invalid-color}.svg') !important;
|
|
|
|
background-size: 1em auto;
|
2016-02-18 09:43:05 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
color: transparent !important;
|
|
|
|
}
|
2016-02-18 09:43:05 +00:00
|
|
|
|
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
button.valid.active,
|
|
|
|
.valid > button.active{
|
|
|
|
background-image: url('/src/static/container/active@#{$rd-form-valid-color}.svg') !important;
|
|
|
|
}
|
|
|
|
button.neutral.active,
|
|
|
|
.neutral > button.active{
|
|
|
|
background-image: url('/src/static/container/active@#{$rd-form-neutral-color}.svg') !important;
|
|
|
|
}
|
|
|
|
button.search.active,
|
|
|
|
.search > button.active{
|
|
|
|
background-image: url('/src/static/container/active@#{$rd-form-search-color}.svg') !important;
|
|
|
|
}
|
2016-02-18 09:43:05 +00:00
|
|
|
|
|
|
|
|
2016-02-15 11:27:01 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
// "OU" separant les boutons
|
|
|
|
hr.OR[data-label]{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 0;
|
2016-02-15 11:27:01 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
border: 0;
|
|
|
|
border-bottom: 1px dashed $form-invalid-color;
|
2016-07-08 13:18:23 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
&:before{
|
|
|
|
content: attr(data-label);
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
padding: 0 1em;
|
2016-02-15 11:27:01 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
background-color: #fff;
|
2016-02-15 11:27:01 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
color: $form-invalid-color;
|
2016-02-15 11:27:01 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
transform: translateX(-50%) translatey(-50%);
|
2016-02-15 11:27:01 +00:00
|
|
|
}
|
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
2016-02-15 11:27:01 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
// "OU" valide
|
|
|
|
.valid > hr.OR,
|
|
|
|
hr.OR.valid{
|
|
|
|
border-bottom: 1px dashed $form-valid-color;
|
|
|
|
&:before{
|
|
|
|
color: $form-valid-color;
|
2016-02-15 11:27:01 +00:00
|
|
|
}
|
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
2016-02-15 11:27:01 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
// "OU" neutre
|
|
|
|
.neutral > hr.OR,
|
|
|
|
hr.OR.neutral{
|
|
|
|
border-bottom: 1px dashed $form-neutral-color;
|
|
|
|
&:before{
|
|
|
|
color: $form-neutral-color;
|
2016-02-15 11:27:01 +00:00
|
|
|
}
|
2016-02-16 13:25:06 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
}
|
2016-02-16 13:25:06 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
// "OU" recherche
|
|
|
|
.search > hr.OR,
|
|
|
|
hr.OR.search{
|
|
|
|
border-bottom: 1px dashed $form-search-color;
|
|
|
|
&:before{
|
|
|
|
color: $form-search-color;
|
2016-02-16 13:25:06 +00:00
|
|
|
}
|
2016-07-21 14:25:29 +00:00
|
|
|
|
2016-02-14 19:37:41 +00:00
|
|
|
}
|
2016-02-05 09:26:10 +00:00
|
|
|
|
2016-07-12 15:40:40 +00:00
|
|
|
|
|
|
|
|
2016-07-13 14:58:39 +00:00
|
|
|
|
2016-07-21 14:25:29 +00:00
|
|
|
|
2016-07-13 14:58:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* [4] Tableau à cocher
|
|
|
|
=========================================================*/
|
|
|
|
article.check-table{
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
|
|
|
|
|
|
|
|
& > div{
|
2016-07-13 09:52:53 +00:00
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: row;
|
2016-07-13 14:58:39 +00:00
|
|
|
flex-wrap: nowrap;
|
2016-07-13 09:52:53 +00:00
|
|
|
justify-content: space-between;
|
|
|
|
|
2016-07-13 14:58:39 +00:00
|
|
|
flex: 100%;
|
2016-07-15 14:50:42 +00:00
|
|
|
padding: .8em 0;
|
2016-07-13 09:52:53 +00:00
|
|
|
|
2016-07-13 14:58:39 +00:00
|
|
|
color: #333;
|
2016-07-13 09:52:53 +00:00
|
|
|
|
2016-07-14 08:16:11 +00:00
|
|
|
background: #f8f8f8;
|
2016-07-13 14:58:39 +00:00
|
|
|
border-bottom: 1px solid #eee;
|
2016-07-13 09:52:53 +00:00
|
|
|
|
2016-07-13 14:58:39 +00:00
|
|
|
transition: background .2s ease-in-out;
|
2016-07-13 09:52:53 +00:00
|
|
|
|
2016-07-13 14:58:39 +00:00
|
|
|
&:nth-child(2n){
|
|
|
|
background: #fdfdfd;
|
|
|
|
}
|
2016-07-13 09:52:53 +00:00
|
|
|
|
2016-07-13 14:58:39 +00:00
|
|
|
overflow: hidden;
|
2016-07-13 09:52:53 +00:00
|
|
|
|
2016-07-12 15:40:40 +00:00
|
|
|
|
2016-07-13 14:58:39 +00:00
|
|
|
& > span{
|
|
|
|
flex: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
justify-content: center;
|
2016-07-12 15:40:40 +00:00
|
|
|
|
2016-07-13 09:52:53 +00:00
|
|
|
|
2016-07-23 14:36:58 +00:00
|
|
|
/* (1) Gestion du checkbox hack */
|
2016-07-13 14:58:39 +00:00
|
|
|
input[type='checkbox']{ display: none; }
|
2016-07-13 09:52:53 +00:00
|
|
|
|
2016-07-13 14:58:39 +00:00
|
|
|
input[type='checkbox'] + label[for]{
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
2016-07-15 14:50:42 +00:00
|
|
|
width: 1.2em;
|
|
|
|
height: 1.2em;
|
2016-07-13 09:52:53 +00:00
|
|
|
|
2016-07-14 08:25:57 +00:00
|
|
|
// border-radius: 50% / 50%;
|
2016-07-13 09:52:53 +00:00
|
|
|
|
2017-01-15 16:27:02 +00:00
|
|
|
background: url('/src/static/container/checkbox@999999.svg') center center no-repeat;
|
2016-07-14 08:25:57 +00:00
|
|
|
background-size: 100% auto;;
|
2016-07-13 09:52:53 +00:00
|
|
|
|
2016-07-13 14:58:39 +00:00
|
|
|
transition: box-shadow .2s ease-in-out;
|
2016-07-13 09:52:53 +00:00
|
|
|
|
2016-07-13 14:58:39 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
2016-07-13 09:52:53 +00:00
|
|
|
|
2016-07-13 14:58:39 +00:00
|
|
|
input[type='checkbox']:checked + label[for]{
|
2017-01-15 16:27:02 +00:00
|
|
|
background-image: url('/src/static/container/checkbox@checked@007dd8.svg');
|
2016-07-13 09:52:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2016-07-12 15:40:40 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-07-08 13:18:23 +00:00
|
|
|
}
|