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

159 lines
2.7 KiB
SCSS
Raw Normal View History

2021-04-19 03:11:55 +00:00
@charset "utf-8";
@import "../initial";
.layout-header {
position: relative;
margin-bottom: 0;
border: none;
border-radius: 0;
// z-index: 0;
width:100%;
@media (max-width:1440px) {
background-repeat: no-repeat;
}
.bg-block > div{
position: absolute;
width: 100%;
z-index: -1;
img{
max-width: none;
}
}
.container {
@extend .response-content;
}
.header-nav {
color: #FFF;
font-family: $main-font;
2021-05-10 11:39:03 +00:00
& > *:not(p) {
2021-04-19 03:11:55 +00:00
display: inline-block;
margin-top: 0;
margin-bottom: 0;
font-size: 0.8em;
color: #fff;
}
a {
color: #494949;
text-decoration: none;
transition:all .6s;
}
a:hover{
color:#37518A;
font-weight: bold;
}
@media (min-width: $screen-sm) {
text-align: right;
}
}
.navbar-header {
padding: 30px 0 22px;
width:100%;
float:none;
@media (max-width: 768px) {
padding-bottom:20px;
}
.navbar-toggle {
padding: 14px 10px;
border-radius: 2px;
border-width: 2px;
border-color: lighten($theme-gray, 30%);
@media (max-width: 992px){
display:block !important;
}
.icon-bar {
background-color: lighten($theme-gray, 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: 50px;
margin: 8px 0;
padding-top: 0;
padding-bottom: 0;
line-height: 34px;
color: #FFF;
font-size: 1.4em;
font-family: $main-font;
transition:all .5s;
@media (min-width: $screen-sm) {
height:90px;
// margin: 0.5rem 0 0;
margin-top:-5px;
padding-left: 0;
line-height: 60px;
font-size: 1.5em;
}
.site-logo {
width: auto;
height: 100%;
margin-right: 0.5em;
float: left;
transition:all .5s;
}
}
.navbar-brand:hover{
transform:scale(1.05,1.05);
.site-logo{
opacity:.6;
}
}
}
}