asiaH5/assets/stylesheets/template/layout/header.scss

121 lines
2.2 KiB
SCSS

@charset "utf-8";
@import "../initial";
.layout-header {
position: relative;
margin-bottom: 0;
border: none;
border-radius: 0;
background-color: #fff;
z-index: 1;
.container {
@extend .response-content;
}
.header-nav {
padding: 5px 0;
color: #FFF;
font-family: $main-font;
& > *:not(p) {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
font-size: 0.8em;
color: #fff;
}
a {
color: #fff;
text-decoration: none;
}
@media (min-width: $screen-sm) {
text-align: right;
}
}
.navbar-header {
padding: 0 0 20px;
.navbar-toggle {
padding: 14px 10px;
border-radius: 2px;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
border-width: 2px;
border-color: lighten($theme-white, 30%);
.icon-bar {
background-color: lighten($theme-white, 30%);
}
&.collapsed {
.icon-bar-top {
top: 0;
-webkit-transform: rotate(0);
transform: rotate(0);
}
.icon-bar-middle {
opacity: 1;
}
.icon-bar-bottom {
top: 0;
-webkit-transform: rotate(0);
transform: rotate(0);
}
}
// icon bar animation
.icon-bar {
transition: .2s all;
position: relative;
}
.icon-bar-top {
top: 6px;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.icon-bar-middle {
opacity: 0;
}
.icon-bar-bottom {
top: -6px;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
}
.navbar-brand {
height: 34px;
margin: 8px 0;
padding-top: 0;
padding-bottom: 0;
line-height: 34px;
color: #FFF;
font-size: 1.4em;
font-family: $main-font;
@media (min-width: $screen-sm) {
height: 60px;
margin: 0.5rem 0 0;
padding-left: 0;
line-height: 60px;
font-size: 1.5em;
}
.site-logo {
width: auto;
height: 100%;
margin-right: 0.5em;
float: left;
}
}
}
}