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

146 lines
2.8 KiB
SCSS
Raw Normal View History

2021-04-19 03:11:42 +00:00
@charset "utf-8";
@import "../initial";
.layout-header {
position: relative;
margin-bottom: 0;
border: none;
border-radius: 0;
background-color: $theme-white;
z-index: 1;
.container {
@extend .response-content;
}
.header{
overflow: hidden;
position: relative;
@media (min-width: 768px) {
display: flex;
justify-content:space-between;
}
}
.header-nav {
align-self:center;
padding: 10px 0;
color: #ddd;
font-family: $main-font;
text-align: center;
2021-05-10 11:38:23 +00:00
& > *:not(p) {
2021-04-19 03:11:42 +00:00
display: inline-block;
margin-top: 0;
margin-bottom: 0;
font-size: 0.8em;
color: #595959;
}
a {
color: #595959;
text-decoration: none;
}
@media (min-width: 992px) {
display: inline-block;
float: right;
text-align: right;
padding-right: 1rem;
}
@media (min-width: 768px) and (max-width: 991px) {
align-self:flex-end;
padding: 5px 0;
}
}
.navbar-header {
padding:20px 0 0 0;
@media (min-width: 768px){
padding:20px 20px 60px 0;
}
.navbar-toggle {
display: block;
position: absolute;
right: 0;
padding: 14px 10px;
border-radius: 2px;
2021-09-03 03:45:44 +00:00
behavior: url("/assets/ie_support/PIE2/PIE.htc");
2021-04-19 03:11:42 +00:00
border-width: 2px;
border-color: lighten($theme-gray, 30%);
margin:0;
@media (min-width: 992px) {
display: none;
}
.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: 5.5vh;
padding-top: 0;
padding-bottom: 0;
line-height: 34px;
color: #595959;
font-size: 1.4em;
font-family: $main-font;
@media (min-width: 768px) {
margin: 8px 0;
height: 52px;
margin:0;
padding-left: 0;
line-height: 60px;
font-size: 1.5em;
}
.site-logo {
width: auto;
height: 100%;
margin-right: 0.5em;
float: left;
}
}
}
}