123 lines
2.7 KiB
CSS
Executable File
123 lines
2.7 KiB
CSS
Executable File
/*
|
|
*
|
|
* Gestion complète du HEADER
|
|
* -------------------------------------
|
|
* 1. icon
|
|
* 2. connection/inscription
|
|
* 3. mot de passe perdu
|
|
* 4. ...
|
|
*
|
|
*/
|
|
|
|
/* icônes de notifications */
|
|
#HEADER .notifbar{
|
|
/* position */
|
|
display: flex;
|
|
|
|
/* flex */
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
#HEADER .notifbar div{
|
|
/* position */
|
|
display: block;
|
|
width: 3em;
|
|
margin: 0 .1em;
|
|
|
|
/* background */
|
|
background: transparent url(../src/header/notifbar/member.svg) center center no-repeat;
|
|
background-size: 40% auto;
|
|
|
|
cursor: default;
|
|
}
|
|
|
|
|
|
#HEADER .notifbar .member { background-image: url(../src/header/notifbar/member.svg); }
|
|
#HEADER .notifbar .message { background-image: url(../src/header/notifbar/message.svg); }
|
|
#HEADER .notifbar .notification{ background-image: url(../src/header/notifbar/notification.svg); }
|
|
|
|
/* Gestion du hover sur les notifications */
|
|
#HEADER .notifbar .member:hover { background-image: url(../src/header/notifbar/member@hover.svg); }
|
|
#HEADER .notifbar .message:hover { background-image: url(../src/header/notifbar/message@hover.svg); }
|
|
#HEADER .notifbar .notification:hover{ background-image: url(../src/header/notifbar/notification@hover.svg); }
|
|
|
|
/* affichage du nombre de notifications */
|
|
#HEADER .notifbar div[data-num]::after{
|
|
content: attr(data-num);
|
|
/* position */
|
|
display: block;
|
|
position: relative;
|
|
top: 1.6em;
|
|
left: 2.5em;
|
|
width: 1em;
|
|
height: 1em;
|
|
padding: .35em;
|
|
|
|
/* border */
|
|
border-radius: 100% / 100%;
|
|
|
|
/* background */
|
|
background-color: #da5439;
|
|
|
|
/* foreground */
|
|
color: #fff;
|
|
font-size: 11px;
|
|
text-align: center;
|
|
line-height: 1em;
|
|
}
|
|
|
|
#HEADER .notifbar div[data-num='']::after{ content: '0'; }
|
|
|
|
|
|
/* logo AGAC */
|
|
#HEADER .icon{
|
|
/* position */
|
|
display: block;
|
|
width: 5em; /* pour faire un carré */
|
|
|
|
background: transparent url(../src/header/icon.svg) center center no-repeat;
|
|
background-size: 80% 80%;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* barre de recherche */
|
|
#HEADER .searchbar{
|
|
/* position */
|
|
display: block;
|
|
position: relative;
|
|
margin-top: 1.5em;
|
|
margin-right: 2em;
|
|
width: 20em;
|
|
height: 2.5em;
|
|
padding: .2em;
|
|
padding-right: 3em;
|
|
|
|
/* border */
|
|
border: 0;
|
|
|
|
/* background */
|
|
background: transparent url(../src/header/search.svg) right 1em center no-repeat;
|
|
background-size: 1em auto;
|
|
|
|
/* foreground */
|
|
color: #aaa;
|
|
line-height: 2.5em;
|
|
|
|
/* animation */
|
|
transition: all 0s, background-size .2s ease-in-out;
|
|
-moz-transition: all 0s, background-size .2s ease-in-out;
|
|
-webkit-transition: all 0s, background-size .2s ease-in-out;
|
|
-ms-transition: all 0s, background-size .2s ease-in-out;
|
|
-o-transition: all 0s, background-size .2s ease-in-out;
|
|
}
|
|
|
|
#HEADER .searchbar:focus{
|
|
|
|
background-image: url(../src/header/search@hover.svg);
|
|
color: #223343;
|
|
} |