1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 14:42:31 +01:00
flox/client/resources/sass/components/_header.scss
Viktor Geringer 619e407bcd subpage design (#64)
* start with subpage design

* transitions

* transitions

* transitions, stuff

* modal for trailer

* english fallback for trailers

* slugs in url

* bit refactor

* tests and fixtures

* travis

* update production files

* move time limit to config and display error message to user

* fix import

* fix review
2017-04-11 08:45:08 +02:00

161 lines
2.2 KiB
SCSS
Vendored

header {
background: $main2;
background: linear-gradient(to right, $main1, $main2);
width: 100%;
padding: 25px 0;
position: relative;
z-index: 20;
opacity: 0;
@include media(5) {
padding: 15px 0;
}
.open-modal & {
padding: 25px 16px 25px 0;
}
.subpage-open & {
background: none;
}
&.active {
transition: opacity .7s ease .1s;
opacity: 1;
}
}
.logo {
float: left;
opacity: .9;
@include media(5) {
width: 80px;
height: auto;
margin: 7px 0 0 0;
img {
width: 100%;
height: auto;
}
}
}
.sort-wrap {
float: right;
margin: 4px 0 0 0;
width: auto;
opacity: .9;
.icon-sort-time,
.icon-sort-star {
float: left;
width: 32px;
height: 30px;
margin: 0 0 0 15px;
cursor: pointer;
opacity: .5;
@include transition(opacity);
&.active {
opacity: 1;
}
&:active {
opacity: .3;
}
&:first-child {
margin: 0;
}
}
}
.icon-sort-time {
background: url(../../../public/assets/img/sort-time.png) no-repeat;
}
.icon-sort-star {
background: url(../../../public/assets/img/sort-star.png) no-repeat;
}
.icon-constrast {
float: left;
width: 34px;
height: 34px;
margin: 0 0 0 30px;
cursor: pointer;
padding: 10px;
&:active {
opacity: .8;
}
i {
background: darken($dark, 20%);
border-radius: 100%;
width: 100%;
height: 100%;
float: left;
.dark & {
background: #fff;
}
}
}
.site-nav,
.site-nav-second {
float: left;
margin: 7px 0 0 40px;
list-style: none;
padding: 0;
opacity: .9;
@include media(4) {
clear: left;
float: left;
margin: 20px 0 0 0;
}
li {
float: left;
margin: 0 20px 0 0;
&:last-child {
margin: 0;
}
}
a {
color: #fff;
text-decoration: none;
text-transform: uppercase;
font-size: 16px;
border-bottom: 2px solid transparent;
&.router-link-active {
border-bottom: 2px solid #fff;
}
&:active {
opacity: .6;
}
@include media(5) {
font-size: 14px;
}
}
}
.site-nav-second {
float: right;
margin: 7px 40px 0 0;
@include media(4) {
clear: none;
float: left;
margin: 20px 0 0 15px;
}
}