main/public_html/css/header.css

179 lines
4.5 KiB
CSS
Raw Permalink Normal View History

2017-12-01 14:47:14 +00:00
/* Header Icon */
#HEADER #header-icon{
display: block;
position: absolute;
top: 0;
left: 0;
2017-12-03 15:02:18 +00:00
width: calc( 15em - 3em );
height: calc( 100% - 2*1em );
2017-12-01 14:47:14 +00:00
2017-12-03 15:02:18 +00:00
padding: 1em 0;
2017-12-01 14:47:14 +00:00
padding-left: 3em;
2017-12-04 10:27:20 +00:00
background: url('/image/header-icon.svg@555555') center left 2em no-repeat;
2017-12-01 14:47:14 +00:00
background-size: 1.7em;
2017-12-04 10:27:20 +00:00
/* background-color: rgba(0,0,0,.7); */
2017-12-01 14:47:14 +00:00
color: #fff;
overflow: hidden;
cursor: pointer;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
transition: all .2s ease-in-out;
2017-12-01 14:47:14 +00:00
}
/* Header Icon > Title */
#header-icon .header-title{
display: inline-block;
position: relative;
margin-left: 2em;
font-size: 1.2em;
letter-spacing: 2px;
2017-12-03 15:02:18 +00:00
background: -webkit-linear-gradient(top left, #474dff, #00E288);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
2017-12-01 14:47:14 +00:00
overflow: hidden;
}
/****************************/
/* Header info container */
#header-info{
display: block;
position: absolute;
top: 0;
2017-12-03 15:02:18 +00:00
left: 15em;
width: calc( 100% - 15em - 12em - 2em - 5em );
height: calc( 100% - 2*1.2em );
2017-12-01 14:47:14 +00:00
2017-12-03 15:02:18 +00:00
padding: 1.2em 0;
2017-12-01 14:47:14 +00:00
padding-left: 5em;
2017-12-03 15:02:18 +00:00
background: url('/image/header/info/info.svg@2299e3') center left 2em no-repeat;
2017-12-01 14:47:14 +00:00
background-size: 1.6em;
2017-12-04 15:28:15 +00:00
color: #333;
2017-12-01 14:47:14 +00:00
}
2017-12-03 15:02:18 +00:00
#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'); }
2017-12-01 14:47:14 +00:00
/****************************/
/* 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;
2017-12-03 15:02:18 +00:00
background: url('/image/header/notif/bell.svg@aaaaaa') center center no-repeat;
2017-12-01 14:47:14 +00:00
background-size: 50%;
background-color: transparent;
border-radius: 50% / 50%;
cursor: pointer;
2017-12-03 15:02:18 +00:00
transition: background .2s ease-in-out;
2017-12-01 14:47:14 +00:00
}
#header-notif .hnotif.emergency{ background-image: url('/image/header/notif/emergency.svg@aaaaaa'); }
#header-notif .hnotif.event{ background-image: url('/image/header/notif/event.svg@aaaaaa'); }
#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'); }
#header-notif .hnotif.login{ background-image: url('/image/header/notif/login.svg@aaaaaa'); }
#header-notif .hnotif.logout{ background-image: url('/image/header/notif/logout.svg@aaaaaa'); }
2017-12-01 14:47:14 +00:00
2017-12-03 15:02:18 +00:00
/* HOVER */
2017-12-01 14:47:14 +00:00
#header-notif .hnotif:hover{
2017-12-03 15:02:18 +00:00
background-color: #ddd;
background-image: url('/image/header/notif/bell.svg@ee9a31');
2017-12-01 14:47:14 +00:00
}
#header-notif .hnotif.emergency:hover{ background-image: url('/image/header/notif/emergency.svg@f93e2b'); }
#header-notif .hnotif.event:hover{ background-image: url('/image/header/notif/event.svg@2986d4'); }
#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'); }
#header-notif .hnotif.login:hover{ background-image: url('/image/header/notif/login.svg@660088'); }
#header-notif .hnotif.logout:hover{ background-image: url('/image/header/notif/logout.svg@660088'); }
2017-12-03 15:02:18 +00:00
2017-12-01 14:47:14 +00:00
/* 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: #474dff;
2017-12-01 14:47:14 +00:00
font-size: .8em;
}
#header-notif .hnotif[data-count='']:before,
#header-notif .hnotif[data-count='0']:before{
2017-12-01 14:47:14 +00:00
display: none;
}
/****************************/
/* Minified Header */
#WRAPPER.min #HEADER #header-icon{
width: calc( 3.5em - 3em );
background-position: center center;
2017-12-04 15:28:15 +00:00
}
2017-12-04 16:50:18 +00:00
#WRAPPER.min #HEADER #header-icon:hover{
transform: rotate(-5deg);
}
2017-12-04 15:28:15 +00:00
#WRAPPER.min #HEADER #header-info{
left: 3.5em;
2017-12-01 14:47:14 +00:00
}