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

155 lines
2.7 KiB
SCSS

@charset "utf-8";
@import "../initial";
.layout-header {
position: relative;
margin-bottom: 0;
border: none;
border-radius: 0;
z-index: 1;
.container {
@extend .response-container;
}
.user-header {
position: absolute;
top: 0;
overflow: hidden;
@media(max-width:1200px) {
margin: 0;
}
}
.header-banner {
position: absolute;
top: 0;
width: 100%;
.w-ba-banner {
.banner-pager, .controlplay, .button-mid { display: none; }
&.ba-banner-widget-4 { margin-left: 10em; }
}
}
.cover {
position: relative;
top: 0;
z-index: -1;
margin: 0 -42px 0 -25px;
img {
width: 100vw;
}
}
.header-nav {
padding: 1em 10em 1em 0;
font-family: $main-font;
& > * {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
font-size: 0.7rem;
}
a {
color: $theme-white;
text-decoration: none;
text-shadow: 3px 2px 5px rgba(0,0,0,0.4);
padding: 0 0.5em;
&:hover {
text-decoration: underline;
}
}
@media (min-width: $screen-sm) {
text-align: right;
}
}
.navbar-header {
padding: 0 0 1.25em;
.navbar-toggle {
padding: 0.875em 0.625em;
border-radius: 0.125em;
border-width: 0.125em;
position: absolute;
right: 0;
top: 1em;
.icon-bar {
background-color: $theme-white;
}
&.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: 0.375em;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.icon-bar-middle {
opacity: 0;
}
.icon-bar-bottom {
top: -0.375em;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
}
.navbar-brand {
height: auto;
margin: 0.5em 0;
padding-top: 1em;
padding-bottom: 0;
line-height: 2.125em;
color: $theme-color-main;
font-size: 1.4em;
font-family: $main-font;
@media (min-width: $screen-sm) {
padding-left: 0;
line-height: 3.75em;
font-size: 1.5em;
}
@media (max-width: 767px) {
width: 80%;
}
.site-logo {
width: auto;
height: 100%;
margin-right: 0.5em;
float: left;
}
}
}
}