NxTIC/css/header/compact.css

38 lines
11 KiB
CSS
Raw Normal View History

/* [1] COULEURS
=========================================================*/
/* (1) COULEURS DU THEME $DEFAULT */
/* (2) COULEURS DE THEME $DARK */
/* [2] DIMENSIONS
=========================================================*/
/* (1) Layout de base */
#WRAPPER > #HEADER { /* [1] Barre de recherche =========================================================*/ /* [2] Informations utilisateur =========================================================*/ /* (0) Conteneur */ /* [3] Menu deroulant pour l'administration du profil =========================================================*/ /* (3) Gestion de l'activation ou non de l'user panel */ }
#WRAPPER > #HEADER > #searchbar { display: inline-block; position: absolute; top: .8em; left: 1em; width: 20em; height: 2em; padding: .2em 1em; border: 0; border-radius: 3px; background-color: #e8e8e8; }
#WRAPPER > #HEADER > #user-data { display: inline-block; position: absolute; top: 0; right: 0; height: calc( 100% - 2*1em); /* (1) Username de l'utilisateur */ /* (2) Image du profil */ /* (3) Icone d'activation */ }
#WRAPPER > #HEADER > #user-data > #user-name { display: block; position: absolute; top: 0; right: calc( 4em*2 - 1em); height: 4em; padding: 0 1em; color: #fff; line-height: 4em; white-space: nowrap; font-weight: bold; cursor: pointer; }
#WRAPPER > #HEADER > #user-data > #user-picture { display: block; position: absolute; top: 1em; right: 4em; width: calc( 4em - 2*1em); height: calc( 4em - 2*1em); border-radius: 50% / 50%; background: #e8e8e8 url("/f/svg/nopic/st/header") center center no-repeat; background-size: auto 80%; cursor: default; align-self: center; }
#WRAPPER > #HEADER > #user-data > #user-picture.active { background-image: url("/f/svg/sample/dy/profile"); background-size: auto 100%; }
#WRAPPER > #HEADER > #user-data:before { content: ''; display: block; position: absolute; top: 0; right: 0; width: 4em; height: 4em; background: url("/f/svg/expand/st/header/ffffff") center center no-repeat; background-size: 1em 1em; cursor: pointer; }
#WRAPPER > #HEADER > .user-panel { display: block; position: absolute; top: calc( 4em - 1em); right: 0; margin: .5em; border-radius: 5px; border: 1px solid #cfcfcf; background-color: #fff; transition: left .3s ease-in-out; /* (1) Pour chaque element du menu */ }
#WRAPPER > #HEADER > .user-panel > span { display: block; position: relative; color: #000; padding: .5em 1em; padding-left: 2em; cursor: pointer; }
#WRAPPER > #HEADER > .user-panel > span:not(:last-child) { border-bottom: 1px solid #ddd; }
#WRAPPER > #HEADER > .user-panel > span:hover { background-color: #eee; }
#WRAPPER > #HEADER > #toggle-user-panel { display: none; }
#WRAPPER > #HEADER > #toggle-user-panel + .user-panel { left: 100%; }
#WRAPPER > #HEADER > #toggle-user-panel:checked + .user-panel { left: auto; }
#WRAPPER > #HEADER > #toggle-user-panel:checked + .user-panel:before { left: 7em; }
/*# sourceMappingURL=data:application/json;base64,ewoJInZlcnNpb24iOiAzLAoJImZpbGUiOiAiY29tcGFjdC5jc3MiLAoJInNvdXJjZXMiOiBbCgkJIi4uL2hlYWRlci5zY3NzIiwKCQkiLi4vY29uc3RhbnRzLnNjc3MiCgldLAoJInNvdXJjZXNDb250ZW50IjogWwoJCSJAaW1wb3J0ICdjb25zdGFudHMnO1xuXG5cbiNXUkFQUEVSID4gI0hFQURFUntcblxuXHQvKiBbMV0gQmFycmUgZGUgcmVjaGVyY2hlXG5cdD09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSovXG5cdCYgPiAjc2VhcmNoYmFye1xuXHRcdGRpc3BsYXk6IGlubGluZS1ibG9jaztcblx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0XHR0b3A6IC44ZW07XG5cdFx0XHRsZWZ0OiAxZW07XG5cdFx0XHR3aWR0aDogMjBlbTtcblx0XHRcdGhlaWdodDogMmVtO1xuXG5cdFx0cGFkZGluZzogLjJlbSAxZW07XG5cblx0XHRib3JkZXI6IDA7XG5cdFx0Ym9yZGVyLXJhZGl1czogM3B4O1xuXG5cdFx0YmFja2dyb3VuZC1jb2xvcjogJHRoZW1lLWJnO1xuXG5cdH1cblxuXHQvKiBbMl0gSW5mb3JtYXRpb25zIHV0aWxpc2F0ZXVyXG5cdD09PT09PT09PT09PT09PT09PT09PT09PT09PT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