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

120 lines
2.1 KiB
SCSS
Raw Normal View History

2021-05-03 02:07:26 +00:00
@charset "utf-8";
2021-04-19 03:11:35 +00:00
@import "../initial";
.layout-header {
position: relative;
margin-bottom: 0;
border: none;
border-radius: 0;
background-color: #fff;
2021-05-03 02:07:26 +00:00
z-index: 1;
2021-04-19 03:11:35 +00:00
.container {
@extend .response-content;
}
.header-nav {
2021-05-03 02:07:26 +00:00
padding: 5px 0;
2021-04-19 03:11:35 +00:00
color: #FFF;
font-family: $main-font;
& > * {
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;
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;
}
}
}
}