NxTIC/css/expanded/header.css

140 lines
13 KiB
CSS
Raw Normal View History

/* [1] COULEURS
=========================================================*/
/* (1) COULEURS DU THEME $DEFAULT */
/* (2) COULEURS DE THEME $DARK */
2016-04-22 08:27:58 +00:00
/* (3) Couleurs du theme pour la timeline */
/* [2] DIMENSIONS
=========================================================*/
/* (1) Layout de base */
2016-04-22 08:27:58 +00:00
/* [3] Mixins
=========================================================*/
/* [4] Functions
=========================================================*/
#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;
2016-05-25 15:27:18 +00:00
color: #555;
line-height: 4em;
white-space: nowrap;
font-weight: bold;
cursor: pointer;
}
#WRAPPER > #HEADER > #user-data > #user-picture {
display: block;
position: absolute;
top: 1.5em;
right: 4em;
width: calc( 4em - 2*1.5em);
height: calc( 4em - 2*1.5em);
border-radius: 50% / 50%;
background-color: #e8e8e8;
background-size: auto 80%;
cursor: default;
align-self: center;
}
#WRAPPER > #HEADER > #user-data > #user-picture.active {
background-color: #0e6dbf;
}
#WRAPPER > #HEADER > #user-data:before {
content: '';
display: block;
position: absolute;
top: 0;
right: 0;
width: 4em;
height: 4em;
background: url("/src/static/header/expand@000000.svg") 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;
2016-04-22 08:27:58 +00:00
-webkit-transition: left 0.3s ease-in-out;
transition: left 0.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,ewoJInZlcnNpb24iOiAzLAoJImZpbGUiOiAiaGVhZGVyLmNzcyIsCgkic291cmNlcyI6IFsKCQkiLi4vaGVhZGVyLnNjc3MiLAoJCSIuLi9jb25zdGFudHMuc2NzcyIKCV0sCgkic291cmNlc0NvbnRlbnQiOiBbCgkJIkBpbXBvcnQgJ2NvbnN0YW50cyc7XG5cblxuI1dSQVBQRVIgPiAjSEVBREVSe1xuXG5cdC8qIFsxXSBCYXJyZSBkZSByZWNoZXJjaGVcblx0PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ki9cblx0JiA+ICNzZWFyY2hiYXJ7XG5cdFx0ZGlzcGxheTogaW5saW5lLWJsb2NrO1xuXHRcdHBvc2l0aW9uOiBhYnNvbHV0ZTtcblx0XHRcdHRvcDogLjhlbTtcblx0XHRcdGxlZnQ6IDFlbTtcblx0XHRcdHdpZHRoOiAyMGVtO1xuXHRcdFx0aGVpZ2h0OiAyZW07XG5cblx0XHRw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