hueman/assets/front/css/_parts/0_4_header.css
nikeo c31be229cb fixed sidebar wrong behaviour when expanded at the bottom
added a search bar in the mobile menu
2017-04-06 23:44:57 +02:00

347 lines
No EOL
14 KiB
CSS

/* ------------------------------------------------------------------------- *
* Section: Header
/* ------------------------------------------------------------------------- */
#header { background: #454e5c; position: relative; padding-bottom: 60px;}
/*.is-scrolling #header{z-index: 100; }*/
#header .pad { padding-top: 30px; padding-bottom: 30px; }
#header .container-inner { position: relative; }
.mobile-title-logo-in-header { display: none;}
.site-title { font-size: 2.625em; font-weight: 600; letter-spacing: -0.5px; float: left; line-height: 1.4285em; padding: 10px 0; }
.site-title a { display: block; color: #fff; max-width: 100%; }
.site-title a img { display: block; max-width: 100%; max-height: 60px; height: auto; padding: 0; margin: 0 auto; -webkit-border-radius: 0; border-radius: 0; }
.site-description { font-size: 1em; font-style: italic; color: #fff; color: rgba(255,255,255,0.5); float: left; margin-left: 20px; line-height: 60px; padding: 10px 0; }
.site-image { display: block; margin: 0 auto; max-height: 400px; }
/* Header Widget Zone Common */
#header-widgets{ display: none;}
/*#header-widgets h3 { display: none; }*/
#header-widgets img { display: block; }
/* header : search
/* ------------------------------------ */
.toggle-search { color: #fff; font-size: 18px; line-height: 24px; cursor: pointer; padding: 13px 20px; display: block; position: absolute; right: 0; top: -50px;
-webkit-box-shadow: -1px 0 0 rgba(255,255,255,0.1);
box-shadow: -1px 0 0 rgba(255,255,255,0.1); }
.toggle-search:hover,
.toggle-search.active { background: rgba(0,0,0,0.15); color: #fff; }
.search-expand { display: none; background: #121d30; position: absolute; top: 0; right: 0; width: 340px;
-webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.1);
box-shadow: 0 1px 0 rgba(255,255,255,0.1); }
.search-expand-inner { background: rgba(0,0,0,0.15); padding: 15px; }
.search-expand .themeform input { width: 100%; border: 2px solid #e2e2e2; border-radius: 0; }
.search-expand .themeform input:focus { }
/* header : mobile menu */
#header .nav-container.mobile-sticky { background-color: #454e5c; }
/* header : nav topbar
/* ------------------------------------ */
#nav-topbar.nav-container {
background: rgba(18, 29, 48, 0.8);
-webkit-box-shadow: 0 0 5px rgba(0,0,0,0.2),0 1px 0 rgba(255,255,255,0.15);
box-shadow: 0 0 5px rgba(0,0,0,0.2),0 1px 0 rgba(255,255,255,0.15);
/* -webkit-transition: height 0.35s ease-in-out;
-moz-transition: height 0.35s ease-in-out;
-o-transition: height 0.35s ease-in-out;
transition: height, transform 0.35s ease-in-out;*/
-webkit-transition: -webkit-transform 0.35s ease-in-out, height 0.25s ease-in-out, background-color 0.45s ease-in-out;
-moz-transition: -moz-transform 0.35s ease-in-out, height 0.25s ease-in-out, background-color 0.45s ease-in-out;
-o-transition: -o-transform 0.35s ease-in-out, height 0.25s ease-in-out, background-color 0.45s ease-in-out;
transition: transform 0.35s ease-in-out, height 0.25s ease-in-out, background-color 0.45s ease-in-out;
}
#nav-topbar .nav-toggle { background: transparent; color: #fff;
-webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,0.06);
box-shadow: inset 1px 0 0 rgba(255,255,255,0.06); }
#nav-topbar .nav-text { color: #fff; color: rgba(255,255,255,0.7); }
.topbar-toggle-down {
position: absolute;
z-index: 10;
right: 0;
width: 60px;
height: 50px;
text-align: center;
cursor: pointer;
/*background: rgba(18, 29, 48, 0.8);*/
display: none;
}
.topbar-toggle-down i.fa-angle-double-up {
display: none;
}
.topbar-toggle-down i {
font-size: 38px;
color: #fff;
padding: 6px 0;
-webkit-transition: -webkit-transform, opacity, .25s ease;
-moz-transition: -moz-transform, opacity, .25s ease;
-o-transition: -o-transform, opacity, .25s ease;
transition: transform, opacity, .25s ease;
opacity: 0.6;
}
.topbar-toggle-down i[data-toggle="down"]:hover {
-webkit-transform: translateY(3px);
-moz-transform: translateY(3px);
-o-transform: translateY(3px);
transform: translateY(3px);
opacity: 1;
}
.topbar-toggle-down i[data-toggle="up"]:hover {
-webkit-transform: translateY(-3px);
-moz-transform: translateY(-3px);
-o-transform: translateY(-3px);
transform: translateY(-3px);
opacity: 1;
}
@media only screen and (min-width: 720px) {
/* fixed nav */
/* .full-width #nav-topbar.nav-container { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 999; max-height: 50px; overflow: hidden;}*/
/*.full-width.topbar-enabled #header { padding-top: 50px; }
.full-width #nav-topbar.nav-container { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 999;}
.full-width.admin-bar #nav-topbar.nav-container { top: 32px; }*/
/*.header-desktop-sticky.topbar-enabled #header { padding-top: 50px; }
.header-desktop-sticky #nav-topbar.nav-container { position: fixed; top: 0; left: 0; right: 0; z-index: 999;}
.header-desktop-sticky.admin-bar #nav-topbar.nav-container { top: 32px; }
.full-width #nav-topbar.nav-container { width : 100%;}*/
/* common */
#nav-topbar .nav { }
#nav-topbar .nav li a { color: #fff; color: rgba(255,255,255,0.7); }
/* level 1 */
#nav-topbar .nav > li { border-right: none; }
#nav-topbar .nav > li > a:hover,
#nav-topbar .nav > li:hover > a { background-color: rgba(0,0,0,0.1); }
#nav-topbar .nav li > a:hover,
#nav-topbar .nav li:hover > a,
#nav-topbar .nav li.current_page_item > a,
#nav-topbar .nav li.current-menu-item > a,
#nav-topbar .nav li.current-menu-ancestor > a,
#nav-topbar .nav li.current-post-parent > a { color: #fff; }
/* level 2 & 3 */
#nav-topbar .nav ul { background: #121d30 url(../img/opacity-10.png) repeat; }
.is-scrolled #nav-topbar.desktop-sticky .nav ul { background-color: rgba(0, 0, 0, 0.70); }
#nav-topbar .nav ul li { box-shadow: 0 1px 0 rgba(255,255,255,0.06); -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
#nav-topbar .nav ul li:last-child { box-shadow: none; -webkit-box-shadow: none; }
/* New top bar */
#nav-topbar.desktop-sticky {
/*max-height: 50px;*/
height: 50px;
overflow: hidden;
}
.nav ul.sub-menu {
opacity: 0.5;
display: none;
-webkit-transition: opacity 0.3s ease-in-out;
-moz-transition: opacity 0.3s ease-in-out;
-o-transition: opacity 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out;
}
/* HEADER WIDGET ZONE*/
.header-ads-desktop #header-widgets { float: right; display: block; }
}
@media only screen and (max-width: 719px) {
#header { z-index : 9999 }
/* common */
#nav-topbar .container { padding-left: 0; }
#nav-topbar .nav li a { color: #fff; color: rgba(255,255,255,0.8); border-top: 1px solid rgba(255,255,255,0.06); }
/* level 1 */
#nav-topbar .nav li > a:hover { background: rgba(0,0,0,0.15); color: #fff; }
#nav-topbar .nav li.current_page_item > a,
#nav-topbar .nav li.current-menu-item > a,
#nav-topbar .nav li.current-post-parent > a { background: rgba(0,0,0,0.15); color: #fff; }
/* HEADER WIDGET ZONE*/
.header-ads-mobile #header-widgets { float:none; display: block; text-align: center; top: 50px; position: relative;}
.both-menus-mobile-on.header-ads-mobile #header-widgets{ top: 0;}
/* LOGO AND TAGLINE GROUP */
#header .logo-tagline-group{display: none;}
#header.both-menus-mobile-on .logo-tagline-group{display: block;}
}
/* NEW RULES FOR MOBILE MENUS BASED ON USER OPTIONS */
@media only screen and (max-width: 719px) {
/* TITLE AND LOGO IN ACTIVE MOBILE MENU ( if not both menus are enabled for mobiles ) */
#header .mobile-title-logo-in-header {
display: block;
float: left;
height: 50px;
line-height: 50px;
width: 75vw;
position: relative;
}
.both-menus-mobile-on .mobile-title-logo-in-header {display: none!important;}
#header .mobile-title-logo-in-header .site-title {
height: 100%;
width: auto;
/*text-align: center;*/
z-index: 3;
overflow: hidden;
left: 13px;
position: relative;
max-width: 72vw;
line-height: inherit;
padding: 0;
}
#header .mobile-title-logo-in-header .site-title a img {
max-height: 45px;
max-width: 75%;
margin: inherit;
}
#header .mobile-title-logo-in-header .site-title a {
font-size: 0.6em;
text-align: left;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
display: inline-block;
top: 50%;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
position: absolute;
}
/* .central-header-zone { display: none;}
.both-menus-mobile-on .central-header-zone { display: block;}*/
/* #nav-topbar { display: none;}
.top-menu-mobile-on #nav-topbar { display: block; }
#nav-header { display: none; }
.main-menu-mobile-on #nav-header {display: block; }*/
.both-menus-mobile-on #nav-topbar, .both-menus-mobile-on #nav-header { display: block; }
/* set nav-topbar to position fixed if both menu mobile are actived */
/* adjust the header padding top */
.top-menu-mobile-on #nav-topbar .toggle-search { display: none;}
}
/* header : nav header
/* ------------------------------------ */
#nav-header.nav-container {
background: #454e5c;
z-index: 97;
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 -1px 0 rgba(0,0,0,0.2), inset 1px 0 0 rgba(0,0,0,0.2), inset -1px 0 0 rgba(0,0,0,0.2);
box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 -1px 0 rgba(0,0,0,0.2), inset 1px 0 0 rgba(0,0,0,0.2), inset -1px 0 0 rgba(0,0,0,0.2);
}
#nav-header .container { padding: 0 15px; }
#nav-header .nav-toggle { background: transparent; color: #fff;
-webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,0.05), -1px 0 0 rgba(0,0,0,0.2);
box-shadow: inset 1px 0 0 rgba(255,255,255,0.05), -1px 0 0 rgba(0,0,0,0.2); }
#nav-header .nav-text { color: #fff; color: rgba(255,255,255,0.7); }
/* header : STICKY MENUS
/* ------------------------------------ */
.is-scrolled #header .nav-container.mobile-sticky, .is-scrolled #header .nav-container.desktop-sticky, .is-scrolled #header .search-expand {
background-color: rgba(56, 56, 58, 0.9);
}
.is-scrolled #header .sticky-visible {
-webkit-box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.3);
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.3);
}
.mobile-menu {
display: none;
}
.mobile-menu .mobile-search {
width: 96%;
padding: 10px 2%!important;
}
.mobile-menu .mobile-search input.search {
width: 100%
}
@media only screen and (max-width: 719px) {
.mobile-menu {
display: block;
}
.desktop-menu {
display: none;
}
.fixed-header-on .mobile-sticky {
position: fixed;
width: 100%;
-webkit-transition: -webkit-transform 0.35s ease-in-out,background-color 0.4s ease-in-out;
-moz-transition: -moz-transform 0.35s ease-in-out,background-color 0.4s ease-in-out;
-o-transition: -o-transform 0.35s ease-in-out,background-color 0.4s ease-in-out;
transition: -webkit-transform 0.35s ease-in-out,-moz-transform 0.35s ease-in-out,-o-transform 0.35s ease-in-out,transform 0.35s ease-in-out,background-color 0.4s ease-in-out;
}
.fixed-header-on .mobile-sticky.fast {
-webkit-transition: -webkit-transform 0.10s ease-in-out,background-color 0.4s ease-in-out;
-moz-transition: -moz-transform 0.10s ease-in-out,background-color 0.4s ease-in-out;
-o-transition: -o-transform 0.10s ease-in-out,background-color 0.4s ease-in-out;
transition: -webkit-transform 0.10s ease-in-out,-moz-transform 0.10s ease-in-out,-o-transform 0.10s ease-in-out,transform 0.10s ease-in-out,background-color 0.4s ease-in-out;
}
}
@media only screen and (min-width: 720px) {
.header-desktop-sticky.topbar-enabled #header { padding-top: 50px; }
.header-desktop-sticky #nav-topbar.nav-container { position: fixed; z-index: 999; top: 0;}
.header-desktop-sticky.admin-bar #nav-topbar.nav-container { top: 32px; }
.full-width #nav-topbar.nav-container { width : 100%; top: 0; left: 0; right: 0; }
.fixed-header-on .desktop-sticky { position: fixed; }
.full-width .fixed-header-on .desktop-sticky { width: 100%; }
.boxed .fixed-header-on .desktop-sticky { width: 1380px; }
.fixed-header-on .topbar-toggle-down {
-webkit-transition:background-color 0.4s ease-in-out;
-moz-transition: background-color 0.4s ease-in-out;
-o-transition: background-color 0.4s ease-in-out;
transition: background-color 0.4s ease-in-out;
}
}
@media only screen and (min-width: 720px) {
/* common */
#nav-header .nav { }
#nav-header .nav li a { color: #fff; color: rgba(255,255,255,0.7); }
/* level 1 */
#nav-header .nav > li { border-right: none; }
#nav-header .nav > li > a:hover,
#nav-header .nav > li:hover > a { background: rgba(0,0,0,0.1); }
#nav-header .nav li > a:hover,
#nav-header .nav li:hover > a,
#nav-header .nav li.current_page_item > a,
#nav-header .nav li.current-menu-item > a,
#nav-header .nav li.current-menu-ancestor > a,
#nav-header .nav li.current-post-parent > a { color: #fff; }
/* level 2 & 3 */
#nav-header .nav ul { background: #454e5c url(../img/opacity-10.png) repeat; }
#nav-header .nav ul li { box-shadow: 0 1px 0 rgba(255,255,255,0.06); -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
#nav-header .nav ul li:last-child { box-shadow: none; -webkit-box-shadow: none; }
}
@media only screen and (max-width: 719px) {
/* common */
#nav-header.nav-container { border-left: 0; border-right: 0; }
#nav-header .container { padding: 0; }
#nav-header .nav { padding-bottom: 20px; }
#nav-header .nav li a { color: #fff; color: rgba(255,255,255,0.8); border-top: 1px solid rgba(255,255,255,0.06); }
/* level 1 */
#nav-header .nav li > a:hover { background: rgba(0,0,0,0.15); color: #fff; }
#nav-header .nav li.current_page_item > a,
#nav-header .nav li.current-menu-item > a,
#nav-header .nav li.current-post-parent > a { text-decoration: underline; color: #fff; }
#header-image-wrap {
position: relative;
top: 50px;
}
}