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

338 lines
6.2 KiB
SCSS

@charset "utf-8";
@import "../initial";
.orbitbar-line{
display: block!important;
}
.layout-header {
padding:0;
position: relative;
margin-bottom: 0;
border: none;
border-radius: 0;
z-index: 102;
background-color: #fff;
@media(min-width: 769px){
padding:0;
}
.container {
@extend .response-container;
}
.header-banner { overflow: hidden; }
.header-nav {
padding:0 3em;
color: $theme-color-main;
font-family: $main-font;
text-transform:uppercase;
@media(max-width: 768px){
position: absolute;
right: 0;
padding:0 1em;
}
& > * {
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;
padding: 10px 0;
}
@media (min-width: $screen-sm) {
text-align: right;
float: right;
}
}
.navbar-header h1.default_site_h1, .navbar-header h2.default_site_h1{
display: flex;
align-items: center;
}
.navbar-header {
z-index: 10;
padding: 0;
margin: 0;
@media (min-width: 1024px) {
width:18%;
display: flex;
}
// @media (max-width: $screen-sm) {
// width: 100%;
// display: flex;
// flex-flow: row-reverse;
// }
.navbar-brand {
margin: 0.5em 0;
padding-bottom: 0;
line-height: 2.125em;
color: $theme-color-main;
font-size: 1.4em;
font-family: $main-font;
align-items: center;
display: flex;
@media (min-width: 1440px){
margin-left: 3em;
}
@media (min-width: $screen-sm) {
margin:0;
padding: 0;
line-height: 3.75em;
font-size: 1.5em;
}
@media (max-width: 768px) {
padding: 0;
}
@media (max-width: 480px) {
height: 3em;
padding: 0;
margin: 0;
}
.site-logo {
margin-right: 0.5em;
float: left;
height: 75px;
@media(min-width: 1024px){
height: 75px;
}
@media(max-width: $screen-xs){
height: 50px!important;
}
@media(max-width: 768px)and(min-width:$screen-xs ){
height: 80px!important;
}
}
}
}
}
.navbar-toggle {
padding: 0.875em 0.625em;
margin-left: 0.5em;
@media(max-width: 769px){
float: left!important;
}
.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);
}
}
.internal-page{
// .layout-header{
// z-index: 10;
// position: fixed;
// left: 0;
// top:0;
// background-color: #fff;
// margin-top: 0;
// min-width: 100%;
// -webkit-transition: .3s ease-out;
// -moz-transition: .3s ease-out;
// -ms-transition: .3s ease-out;
// -o-transition: .3s ease-out;
// transition: .3s ease-out;
// }
}
.navFixed {
@media(max-width: 768px){
padding: 0;
}
.site-logo{
// transform: scale(0.9);
// margin-top: -0.5em;
-webkit-transition: .3s all ease;
-o-transition: .3s all ease;
transition: .3s all ease;
}
z-index: 102;
position: fixed;
left: 0;
top:0;
background-color: #fff;
margin-top: 0;
min-width: 100%;
-webkit-transition: .3s ease-out;
-moz-transition: .3s ease-out;
-ms-transition: .3s ease-out;
-o-transition: .3s ease-out;
transition: .3s ease-out;
}
@media (width: 768px) {
.navbar-toggle{
display: block!important;
}
}
.outdropdowns{
background-color: #fff;
padding:0.6em 0;
.dropdowns{
position: static!important;
}
}
.nav-menu{
display:flex!important;
float: right;
li{
padding: 1em 0;
&:hover{
background-color: #C40516;
a{
color: #FFFFFF;
}
}
}
}
.nav{
font-family: "Industry_Demi", Sans-serif;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
padding: 1em 0;
&:hover{
background-color: #e4002b;
color: #fff;
}
}
.navone ::before{
content: '';
position: absolute;
background: url("/assets/account-icon.png") no-repeat;
width: 23px;
height: 23px;
left: -10px;
top: 10px;
display: inline-block;
left: 5px;
}
.header-buttom{
&:hover{
.headbutton{
background-color: #750016!important;
}
}
}
.search-boxken{
position: relative;
}
.search-boxken {
::placeholder { /* CSS 3 標準 */
opacity: 0;
}
::-webkit-input-placeholder { /* Chrome, Safari */
opacity: 0;
}
:-ms-input-placeholder { /* IE 10+ */
opacity: 0;
}
::-moz-placeholder { /* Firefox 19+ */
opacity: 0;
}
input {
position: relative;
background: none;
z-index: 2;
width: 55px;
height: 55px;
transition: all .25s ease-in .25s;
color: transparent;
font-size: .75rem;
line-height: 25px;
border: 2px solid #33333326;
box-shadow: #0000000f 0 0px 1px 1px;
border-radius: 3em;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
&:hover {
cursor: pointer;
&:focus {
cursor: text;
}
+ span {
background: rgba(255,255,255,0.2);
}
}
&:focus {
width: 200px;
padding: 0 10px;
outline: none;
color: black;
background:none;
@media(max-width: $screen-xs){
width: 100px;
}
+ span {
width: 200px;
&::before {
width:2px;
opacity:1;
transition: all .25s ease-in;
}
}
}
}
.kenspan{
z-index: 1;
position: absolute;
font-size: 1.8em;
top: 8px;
right: 21px;
width: 25px;
height: 25px;
transition: all .25s ease-in .25s;
border-radius: 25px;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
}
}