SMMP/css/container.scss

324 lines
5.3 KiB
SCSS
Raw Normal View History

@import 'constants';
#WRAPPER > #CONTAINER{
/* [1] Section (contenu)
=========================================================*/
2016-02-03 08:00:06 +00:00
& > section{
display: none;
2016-02-03 08:00:06 +00:00
flex-grow: 1;
}
// @active
& > section.active{
display: block;
}
2016-02-08 20:46:11 +00:00
// @active + .list
& > section.active.list{
display: flex;
flex-direction: column;
// justify-content: space-between;
// flex-wrap: wrap;
.inline-box{
flex: 1 1 1;
}
}
/* [2] INLINE-BOX pour afficher les listes de donnees
=========================================================*/
& > section > .inline-box{
2016-02-08 20:46:11 +00:00
display: inline-block;
position: relative;
2016-02-08 20:46:11 +00:00
// width: calc( 100% - 2*1em - 2*1em );
margin: .3em 0;
padding: 1em;
border-radius: 3px;
box-shadow: 0 0 1px #b7b7b7;
background-color: #fff;
2016-02-05 09:51:38 +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;
font-size: 1.15em;
2016-02-05 09:51:38 +00:00
font-weight: bold;
& > span{
font-size: .8em;
color: #333;
}
2016-02-05 09:51:38 +00:00
}
/* (2) Code RFID */
.code,
.mail{
2016-02-05 09:51:38 +00:00
display: inline-block;
color: #333;
2016-02-05 09:51:38 +00:00
// svg (icone)
svg{
display: inline-block;
position: relative;
margin-left: .8em;
2016-02-05 09:51:38 +00:00
margin-right: .5em;
margin-bottom: -.6em;
width: 1.5em;
height: 2em;
pointer-events: none;
2016-02-05 09:51:38 +00:00
path{
fill: #333 !important;
pointer-events: none;
2016-02-05 09:51:38 +00:00
}
}
}
/* (3) Adresse mail */
.mail{
display: inline-block;
color: #333;
// svg (icone)
svg{
display: inline-block;
position: relative;
margin-left: .5em;
margin-right: .5em;
margin-bottom: -.6em;
width: 1.5em;
height: 2em;
pointer-events: none;
path{
fill: #333 !important;
pointer-events: none;
}
}
2016-02-05 09:51:38 +00:00
}
/* (4) Groupes */
.groups{
display: block;
margin: 1em;
color: #333;
// svg (icone)
svg{
display: inline-block;
position: relative;
margin-left: .5em;
margin-right: .5em;
margin-bottom: -.6em;
width: 1.5em;
height: 2em;
pointer-events: none;
path{
fill: #333 !important;
pointer-events: none;
}
}
span{
display: inline-block;
padding: .1em .5em;
margin-right: .2em;
border-radius: 3px;
border: 1px solid #bdbdbd;
box-shadow: inset 0 0 2px #fafafa;
background-color: #f9f9f9;
color: #333;
cursor: default;
}
}
/* (5) Lien vers la modification */
.link_edit,
.link_remove{
display: inline-block;
position: absolute;
top: 0;
left: calc( 100% - 1.2em - 2*1em );
width: 1.2em;
height: 1.2em;
margin: 1em;
cursor: pointer;
& > svg{
width: 100%;
height: 100%;
fill: #ddd !important;
transition: fill .2s ease-in-out;
pointer-events: none;
}
&:hover{
& > svg{
fill: $form-neutral-color !important;
}
}
}
/* (6) Lien vers la suppression */
.link_remove{
top: calc( 100% - 1.2em - 2*1em );
&:hover{
& > svg{
fill: $form-invalid-color !important;
}
}
}
2016-02-05 09:51:38 +00:00
}
/* [3] Formulaires
=========================================================*/
& > section > form{
display: inline-block;
position: relative;
// width: calc( 100% - 2*1em - 2*1em );
margin: .3em 0;
padding: 1em;
border-radius: 3px;
box-shadow: 0 0 1px #b7b7b7;
background-color: #fff;
/* (1) Champs de texte */
input[type=text],
input[type=mail],
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]{
display: inline-block;
margin: 1em 0;
padding: .5em 1em;
border-radius: 3px;
border: 1px solid #d7dde8;
color: #2f3033;
&:focus{
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]{
&:focus{
border-color: $form-valid-color;
}
}
// 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]{
&:focus{
border-color: $form-neutral-color;
}
}
/* (2) Boutons */
button,
button.invalid,
&.invalid > button{
display: inline-block;
position: relative;
left: 50%;
padding: .5em 1em;
border-radius: 2px;
border: 1px solid $form-invalid-color;
background-color: #fff;
color: $form-invalid-color;
transition: background .2s ease-in-out;
transform: translateX(-50%);
&:hover{
background-color: $form-invalid-color;
color: #fff;
}
}
// Boutons valides
button.valid,
&.valid > button{
border-color: $form-valid-color;
color: $form-valid-color;
&:hover{
background-color: $form-valid-color;
color: #fff;
}
}
// Boutons neutres
button.neutral,
&.neutral > button{
border-color: $form-neutral-color;
color: $form-neutral-color;
&:hover{
background-color: $form-neutral-color;
color: #fff;
}
}
}
}