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

188 lines
3.3 KiB
SCSS

@charset "utf-8";
@import "../initial";
.default_site_h1{
display: flex;
flex-wrap: wrap;
line-height: 1.5;
justify-content: center;
.site-logo{
width:100%;
}
@media (min-width: 480px){
font-size: 0.9em!important;
.site-logo{
width: 100px!important;
}
}
@media (max-width: 480px){
display: contents;
font-size: 1.2em!important;
.site-logo{
padding-right: 0.5em;
}
}
}
.headercontain{
background-color: #fff;
}
.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: 768px) {
float: right;
width: 75%;
padding: 0 1em;
}
}
.header-nav {
background: #fff;
padding: 0;
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;
}
@media (min-width: $screen-xs) {
text-align: right;
width: 75%;
float: right;
padding: 1em;
}
.navwrap{
width: 100%;
background: #e7e8ea;
@media (max-width: $screen-xs){
padding: 1em;
}
}
.navinner{
float: right;
@media (min-width: $screen-xs) {
background: #cecece;
width: fit-content;
padding: 0.8em;
}
}
}
.navbar-header {
margin: 0 0 1.25em;
@media (min-width: $screen-sm){
width: 100%;
text-align: center;
display: flex;
justify-content: center;
margin-top: 1em;
border-bottom: 1px solid #1c6060;
}
.navbar-brand {
height: unset;
margin: 0.5em 0;
padding-top: 0;
padding-bottom: 0;
line-height: 2.125em;
color: #1c6060;
font-size: 1.4em;
font-family: $main-font;
@media (min-width: $screen-sm) {
width: 150px;
height: unset;
margin: 0.5rem 0 0;
padding-left: 0;
line-height: 3.75em;
font-size: 1.5em;
}
@media (max-width: 767px) {
height: 5em;
}
@media (max-width: 480px) {
height: 3.5em;
padding:0 0.5em;
margin:0.5em 0;
width: 80%;
}
.site-logo {
width: auto;
height: 100%;
margin-right: 0.5em;
float: left;
}
}
}
}
.navbar-toggle {
padding: 0.875em 0.625em;
border-radius: 0.125em;
border-width: 0.125em;
border-color:#e7e8ea;
.icon-bar {
background-color: #e7e8ea;
}
&.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);
}
}