@import 'constants'; #WRAPPER > #CONTAINER{ /* [1] Section (contenu) =========================================================*/ & > section{ display: none; flex-grow: 1; } // @active & > section.active{ display: block; } // @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{ 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; a{ text-decoration: none; color: inherit; } /* (1) Titre de l'element */ .title{ display: inline-block; font-size: 1.15em; font-weight: bold; & > span{ font-size: .8em; color: #333; } } /* (2) Code RFID */ .code{ 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; path{ fill: #333 !important; } } } /* (3) Adresse mail */ .mail{ 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; path{ fill: #333 !important; } } } /* (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; path{ fill: #333 !important; } } 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; } } } /* [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]{ display: inline-block; margin: 1em 0; padding: .3em .5em; border-radius: 0; border: none; border-bottom: 1px solid transparent; color: #000; &:focus{ border-color: $theme-color; } } /* (2) Boutons */ button, button.invalid{ 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; } } button.valid{ border-color: $form-valid-color; color: $form-valid-color; &:hover{ background-color: $form-valid-color; color: #fff; } } } }