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

135 lines
2.3 KiB
SCSS
Raw Normal View History

2020-04-09 10:46:42 +00:00
@charset "utf-8";
@import "../initial";
.layout-header {
position: relative;
margin-bottom: 0;
border: none;
border-radius: 0;
2021-04-19 02:04:27 +00:00
height: 680px;
2020-04-09 10:46:42 +00:00
.container {
@extend .response-container;
}
2021-04-19 02:04:27 +00:00
.header-banner {
overflow: hidden;
width:100%;
position: fixed;
}
2020-04-09 10:46:42 +00:00
.header-nav {
2021-04-19 02:04:27 +00:00
padding: 1em;
2020-04-09 10:46:42 +00:00
color: $theme-color-main;
font-family: $main-font;
2021-05-10 11:32:01 +00:00
& > *:not(p) {
2020-04-09 10:46:42 +00:00
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;
}
}
.navbar-header {
2021-04-19 02:04:27 +00:00
padding: 0 ;
2020-04-09 10:46:42 +00:00
.navbar-brand {
margin: 0.5em 0;
padding-top: 0;
padding-bottom: 0;
line-height: 2.125em;
color: $theme-color-main;
font-size: 1.4em;
font-family: $main-font;
@media (min-width: $screen-sm) {
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) {
2021-04-19 02:04:27 +00:00
height: 2.5em;
padding: 0;
2020-04-09 10:46:42 +00:00
margin: 0;
}
.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: lighten($theme-color-main, 30%);
.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);
}
2021-04-19 02:04:27 +00:00
}
.headertext{
padding-top: 10em;
position: absolute;
}