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

150 lines
2.0 KiB
SCSS
Raw Normal View History

2016-10-10 10:57:39 +02:00
header {
background: $main2;
background: linear-gradient(to right, $main1, $main2);
width: 100%;
padding: 25px 0;
@include media(5) {
padding: 15px 0;
}
.dark & {
opacity: .9;
}
.open-modal & {
padding: 25px 16px 25px 0;
}
2016-10-10 10:57:39 +02:00
}
.logo {
float: left;
@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;
.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;
2016-10-10 10:57:39 +02:00
}
.icon-sort-star {
background: url(../../../public/assets/img/sort-star.png) no-repeat;
2016-10-10 10:57:39 +02:00
}
.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;
}
}
2016-10-14 12:15:54 +02:00
}
.site-nav,
.site-nav-second {
float: left;
margin: 7px 0 0 40px;
list-style: none;
padding: 0;
2016-10-14 12:15:54 +02:00
@include media(4) {
clear: left;
2016-10-14 12:15:54 +02:00
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;
2016-10-14 13:25:52 +02:00
font-size: 16px;
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(5) {
font-size: 14px;
}
2016-10-14 12:15:54 +02:00
}
}
.site-nav-second {
float: right;
2016-11-29 15:20:42 +01:00
margin: 7px 40px 0 0;
@include media(4) {
clear: none;
float: left;
margin: 20px 0 0 15px;
}
2016-10-10 10:57:39 +02:00
}