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

167 lines
2.9 KiB
SCSS

@charset "utf-8";
@import "../initial";
.default_site_h1{
@media (max-width: 480px){
display: flex;
align-items: center;
}
}
.layout-header {
position: relative;
margin-bottom: 0;
border: none;
border-radius: 0;
z-index: 1;
.container {
@extend .response-container;
}
.header-banner {
overflow: hidden;
@media(min-width:769px){
float: right;
}
}
.header-nav {
padding: 1em;
color: $theme-color-main;
font-family: $main-font;
& > * {
//display: inline-block;
margin-top: 0;
margin-bottom: 0;
font-size: 0.8em;
color: $theme-color-main;
}
a {
color: $theme-color-main;
text-decoration: none;
}
@media (min-width: $screen-sm) {
text-align: right;
position: absolute;
right: 0;
}
@media (max-width: $screen-sm){
clear: both;
background-color: #ffffff6e;
}
}
.navbar-header {
padding: 0;
width: 100%;
margin: 0;
@media (max-width: $screen-sm){
padding:0;
}
.navbar-brand {
height: unset;
margin:1em 0 1em 1em;
padding: 0;
padding-bottom: 0;
line-height: 2.5em;
color: $theme-color-main;
font-size: 1.4em;
font-family: $main-font;
@media (min-width: $screen-sm) {
height: unset;
padding-left: 0;
font-size: 1.5em;
}
@media (max-width: 480px) {
margin: 0 0 1em 1em;
}
.site-logo {
width: auto;
height:100px!important;
margin-right: 0.5em !important;
}
}
}
}
.navbar-toggle {
margin-top: 1em;
padding: 0.875em 0.625em;
border-radius: 0.125em;
border-width: 0.125em;
border-color: lighten($theme-color-main, 30%);
position: absolute;
right: 0;
.icon-bar {
background-color: lighten($theme-color-main, 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: 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);
}
}
@media(max-width:$screen-sm){
.header-banner{
.w-ba-banner__image{
width: auto!important;
height: 250px!important;
max-width: fit-content!important;
}
}
}
.internal-page{
#layout-navigation{
width:100%;
float: none;
position:initial;
margin: 0;
}
.modules-menu .modules-menu-level-0{
@media (min-width: 769px){
display: flex;
width: 100%;
}
}
.modules-menu .modules-menu-level-1{
left: 0;
top: auto;
}
}