imio-publik-themes/static/imio/_header.scss

135 lines
3.3 KiB
SCSS

@charset "UTF-8";
$header-banner: url("images/banner.jpg") !default; //background-image
$header-banner-image: true !default;
$header-banner-width: 950px !default;
$header-banner-height: 15em !default;
$header-logo: url("images/logo.png") 10px 10px no-repeat !default;
$header-bg-logo-position: top left !default; //positionning of background-kind logo
$header-logo-padding: 0 0 0 0 !default; //11.4em
$header-logo-margin: 0 0 0 0 !default;
$header-logo-display: true !default; //determine if "h1#logo" a is visible (true) or not (false). The clickable logo is a kind of "h1#logo a"
$header-logo-size: None !default;
$header-logo-text-color: #484248 !default;
$toplinks-border: 1px solid $primary-color !default;
$toplinks-background-color: white !default;
$toplinks-color: #333 !default;
$toplinks-radius: 0 0 1em 1em !default;
$toplinks-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16),
0px 2px 10px 0px rgba(0, 0, 0, 0.12) !default;
div#nav-skip li {
list-style: none;
}
a#publik-portal-agent {
display: none;
}
div#header {
//background-image: $header-banner; (IMIO: we don't use background-image but solid img in django)
//background-size: $header-banner-width;
//background-repeat:no-repeat;
width: 100%;
//height: $header-banner-height;
margin: 0 auto;
padding: 0;
position: relative;
z-index: 0;
min-height: 160px;
}
@if $header-banner-image == true and $header-banner == none {
div#header {
& > img {
width: 100%;
display: block;
}
}
} @else {
div#header > img {
display: none;
}
}
div#header h1 {
padding: $header-logo-padding;
margin: $header-logo-margin;
position: absolute;
}
/*
div#header > div#top {
background: $header-logo;
background-repeat: no-repeat;
background-position: $header-bg-logo-position;
@if $header-banner != 'none' or $header-banner != 'None'{
padding: $header-logo-padding;
}
@if $header-logo != 'none' or $header-logo != 'None'{
background-size: $header-logo-size;
}
}
*/
h1#logo a {
@if $header-logo-display {
color: $header-logo-text-color;
display: inline-block;
& img {
max-height: 80px;
display: block;
}
} @else {
display: none;
}
}
h1#logo {
@if $header-logo-display == false {
line-height: 0; //no text boxsizing fix
}
}
#toplinks {
position: absolute;
top: 0;
left: auto;
right: 1em;
border-radius: $toplinks-radius;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.01), 2px 2px 2px rgba(0, 0, 0, 0.07),
0 8px 8px rgba(0, 0, 0, 0.05), 0 16px 16px rgba(0, 0, 0, 0.001);
width: auto;
padding: 0.5em 0.5em 0.2em 0.7em;
border: $toplinks-border;
border-top: 0px;
background-color: $toplinks-background-color;
border-radius: 0 0 5px 5px;
}
#toplinks span.connected-user {
padding-right: 0;
color: $toplinks-color;
}
#toplinks a {
text-decoration: none;
margin-right: 1em;
position: relative;
}
/*
#toplinks a::after {
content: "";
top: 0.1em;
bottom: 0.1em;
width: 2px;
background: $toplinks-color;
position: absolute;
right: -0.5em;
}*/
#toplinks a:last-child {
margin-right: 0;
}
#toplinks a:last-child::after {
display: none;
}
#toplinks a:hover {
border-bottom: 1px solid darken($toplinks-color, 15%);
}
/* hide toplinks separator */
#toplinks span.login span.sep {
visibility: hidden;
}
/* Hide connexion/inscription when anonymous connexion*/
body.section-profil.anonymous-user #toplinks {
display: none;
}