1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 06:32:34 +01:00
flox/client/resources/sass/components/_header.scss

177 lines
2.4 KiB
SCSS
Raw Normal View History

2017-12-29 23:24:20 +01:00
.header-wrap {
position: fixed;
z-index: 200;
width: 100%;
.subpage-open & {
position: absolute;
}
}
2016-10-10 10:57:39 +02:00
header {
background: $main2;
background: $gradient;
2016-10-10 10:57:39 +02:00
width: 100%;
padding: 25px 0;
position: relative;
z-index: 20;
opacity: 0;
2016-10-10 10:57:39 +02:00
2017-12-29 23:24:20 +01:00
.active & {
transition: opacity .7s ease .1s, padding-top .2s ease 0s, padding-bottom .2s ease 0s;
opacity: 1;
}
.sticky & {
padding: 10px 0;
opacity: .97;
}
.subpage-open & {
background: none;
2017-12-29 23:24:20 +01:00
padding: 25px 0;
}
.mobile-open & {
background: $gradient;
}
2017-12-29 23:24:20 +01:00
.open-modal & {
padding-right: 17px;
}
2016-10-10 10:57:39 +02:00
}
.logo {
float: left;
opacity: .9;
cursor: pointer;
user-select: none;
2017-12-29 23:24:20 +01:00
img {
@include transition(width, height);
.sticky & {
//width: 90px;
//height: auto;
}
}
2016-10-10 10:57:39 +02:00
@include media(5) {
//width: 80px;
//height: auto;
//margin: 7px 0 0 0;
2016-10-10 10:57:39 +02:00
img {
//width: 100%;
//height: auto;
2016-10-10 10:57:39 +02:00
}
}
}
.site-nav,
.site-nav-second {
float: left;
margin: 7px 0 0 40px;
list-style: none;
padding: 0;
opacity: .9;
2016-10-14 12:15:54 +02:00
@include media(3) {
clear: left;
2016-10-14 12:15:54 +02:00
float: left;
margin: 20px 0 0 0;
}
@include media(5) {
display: none;
margin: 0;
width: 100%;
.mobile-open & {
display: block;
}
}
2016-10-14 12:15:54 +02:00
li {
float: left;
margin: 0 20px 0 0;
&:last-child {
margin: 0;
}
@include media(5) {
width: 33%;
margin: 0;
}
@include media(6) {
width: 100%;
}
2016-10-14 12:15:54 +02:00
}
a {
color: #fff;
text-decoration: none;
text-transform: uppercase;
2016-10-14 13:25:52 +02:00
font-size: 16px;
float: left;
2016-10-14 12:15:54 +02:00
border-bottom: 2px solid transparent;
&.router-link-active {
border-bottom: 2px solid #fff;
}
&:active {
opacity: .6;
}
2016-10-14 13:25:52 +02:00
@include media(3) {
2016-10-14 13:25:52 +02:00
font-size: 14px;
}
@include media(5) {
padding: 8px 0;
}
}
}
.site-nav-first {
@include media(5) {
margin: 15px 0 0 0;
2016-10-14 12:15:54 +02:00
}
}
.site-nav-second {
float: right;
margin: 7px 0 0 0;
@include media(3) {
clear: none;
float: left;
margin: 20px 0 0 15px;
}
@include media(5) {
margin: 0;
}
}
.icon-hamburger {
background: url(../../../public/assets/img/hamburger.png);
width: 31px;
height: 23px;
float: right;
display: none;
margin: 6px 0 0 0;
cursor: pointer;
&:active {
opacity: .6;
}
@include media(5) {
display: block;
}
2017-12-29 23:24:20 +01:00
}