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

145 lines
2.5 KiB
SCSS
Raw Normal View History

2021-05-03 02:14:05 +00:00
@charset "utf-8";
2021-04-19 03:12:43 +00:00
@import "../initial";
.layout-header {
position: fixed;
top: 40px;
left: 0;
margin-bottom: 0;
border: none;
border-radius: 0;
background-color: $theme-green;
2021-05-03 02:14:05 +00:00
z-index: 1000;
2021-04-19 03:12:43 +00:00
width: 20%;
height: 200%;
padding: 0 15px;
transition: .5s;
@media (max-width: $screen-md) {
width: 50%;
transform: translateX(-100%);
}
&.active{
transform: translateX(0%);
}
.container {
@extend .response-content;
}
.header-nav {
display: none;
padding: 16px 0;
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 {
width: 70%;
margin: auto;
float: none;
.navbar-toggle {
position: absolute;
left: 110%;
top: 15px;
padding: 14px 10px;
border-radius: 2px;
border-width: 2px;
margin: 0;
background-color: $theme-gray-dark;
@media (max-width: 993px) {
display: block;
}
.icon-bar {
background-color: $theme-gray;
}
&.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: auto;
margin: 0.5rem 0 0;
padding: 0;
color: #FFF;
font-size: $font-13;
text-align: center;
font-family: $main-font;
.site-logo {
width: 100%;
height: auto;
margin: auto;
}
div{
display: inline-block;
padding: .5em 1em;
margin: auto;
border-top: 2px solid $theme-gray-dark;
border-bottom: 2px solid $theme-gray-dark;
}
}
}
}