@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, .mail{ display: inline-block; color: #333; // svg (icone) svg{ display: inline-block; position: relative; margin-left: .8em; margin-right: .5em; margin-bottom: -.6em; width: 1.5em; height: 2em; pointer-events: none; path{ fill: #333 !important; pointer-events: none; } } } /* (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; } } } /* (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: #3c89e8 !important; } } } /* (6) Lien vers la suppression */ .link_remove{ top: calc( 100% - 1.2em - 2*1em ); &:hover{ & > svg{ fill: #d44f18 !important; } } } } /* [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; } } } }