161 lines
3.4 KiB
CSS
161 lines
3.4 KiB
CSS
/* Header Icon */
|
|
#HEADER #header-icon{
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: calc( 15em - 3em );
|
|
height: calc( 100% - 2*1em );
|
|
|
|
padding: 1em 0;
|
|
padding-left: 3em;
|
|
|
|
background: url('/image/header-icon.svg@555555') center left 2em no-repeat;
|
|
background-size: 1.7em;
|
|
/* background-color: rgba(0,0,0,.7); */
|
|
|
|
color: #fff;
|
|
|
|
overflow: hidden;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all .2s ease-in-out;
|
|
}
|
|
|
|
/* Header Icon > Title */
|
|
#header-icon .header-title{
|
|
display: inline-block;
|
|
position: relative;
|
|
margin-left: 2em;
|
|
|
|
font-size: 1.2em;
|
|
letter-spacing: 2px;
|
|
|
|
background: -webkit-linear-gradient(top left, #474dff, #00E288);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
|
|
overflow: hidden;
|
|
}
|
|
|
|
|
|
|
|
/****************************/
|
|
|
|
|
|
/* Header info container */
|
|
#header-info{
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 15em;
|
|
width: calc( 100% - 15em - 12em - 2em - 5em );
|
|
height: calc( 100% - 2*1.2em );
|
|
|
|
padding: 1.2em 0;
|
|
padding-left: 5em;
|
|
background: url('/image/header/info/info.svg@2299e3') center left 2em no-repeat;
|
|
background-size: 1.6em;
|
|
|
|
color: #333;
|
|
}
|
|
|
|
#header-info.info{ background-image: url('/image/header/info/info.svg@2299e3'); }
|
|
#header-info.warning{ background-image: url('/image/header/info/warning.svg@ed5e17'); }
|
|
#header-info.error{ background-image: url('/image/header/info/error.svg@d7373a'); }
|
|
|
|
|
|
/****************************/
|
|
|
|
|
|
|
|
/* Header Notifications */
|
|
#header-notif{
|
|
display: flex;
|
|
position: absolute;
|
|
top: 0;
|
|
left: calc( 100% - 12em - 2em ); /* 2em not to be in the border */
|
|
width: 12em;
|
|
height: 100%;
|
|
|
|
/* flex */
|
|
flex-direction: row;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
flex-wrap: nowrap;
|
|
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Notification element */
|
|
#header-notif .hnotif,
|
|
#header-notif .hnotif.bell{
|
|
display: block;
|
|
width: 2em;
|
|
height: 2em;
|
|
|
|
background: url('/image/header/notif/bell.svg@aaaaaa') center center no-repeat;
|
|
background-size: 50%;
|
|
background-color: transparent;
|
|
|
|
border-radius: 50% / 50%;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: background .2s ease-in-out;
|
|
}
|
|
#header-notif .hnotif.message{ background-image: url('/image/header/notif/message.svg@aaaaaa'); }
|
|
#header-notif .hnotif.search{ background-image: url('/image/header/notif/search.svg@aaaaaa'); }
|
|
#header-notif .hnotif.menu{ background-image: url('/image/header/notif/menu.svg@aaaaaa'); }
|
|
|
|
/* HOVER */
|
|
#header-notif .hnotif:hover{
|
|
background-color: #ddd;
|
|
background-image: url('/image/header/notif/bell.svg@ee9a31');
|
|
}
|
|
|
|
#header-notif .hnotif.message:hover{ background-image: url('/image/header/notif/message.svg@23c795'); }
|
|
#header-notif .hnotif.search:hover{ background-image: url('/image/header/notif/search.svg@ae51da'); }
|
|
#header-notif .hnotif.menu:hover{ background-image: url('/image/header/notif/menu.svg@4a8ad8'); }
|
|
|
|
|
|
|
|
/* Counter element */
|
|
#header-notif .hnotif[data-count]:before{
|
|
content: attr(data-count);
|
|
|
|
display: block;
|
|
position: absolute;
|
|
margin-left: 1.2em;
|
|
min-width: calc( 1.4em - 2*.35em );
|
|
width: auto;
|
|
height: calc( 1.4em - 2*.1em );
|
|
|
|
padding: .1em .35em;
|
|
|
|
border-radius: 50% / 50%;
|
|
background: #ed4222;
|
|
|
|
font-size: .8em;
|
|
|
|
}
|
|
|
|
#header-notif .hnotif[data-count='']:before,
|
|
#header-notif .hnotif[data-count='0']:before{
|
|
display: none;
|
|
}
|
|
|
|
|
|
|
|
|
|
/****************************/
|
|
|
|
/* Minified Header */
|
|
#WRAPPER.min #HEADER #header-icon{
|
|
width: calc( 3.5em - 3em );
|
|
background-position: center center;
|
|
}
|
|
#WRAPPER.min #HEADER #header-info{
|
|
left: 3.5em;
|
|
} |