Skip to content
This repository was archived by the owner on May 12, 2019. It is now read-only.

Commit 1beb4fe

Browse files
committed
separated background from filter
1 parent b7d8e7a commit 1beb4fe

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

assets/img/cover.jpg

-119 KB
Binary file not shown.

assets/scss/components/_aside.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
display: block;
55
width: $aside-width-collapsed;
66
height: 100%;
7-
@include background-filter;
87

98
&.animated {
109
transition: width $aside-animation-time $aside-animation;
@@ -16,6 +15,7 @@
1615
font-weight: $font-weight-thin;
1716
color: $gray-lightest;
1817
text-align: center;
18+
@include background-filter;
1919
@include center-absolute;
2020
@include font-shadow;
2121
}

assets/scss/components/_media-queries.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
}
5252
.cover {
5353
width: 16rem;
54-
background: $mobile-primary;
5554
transition: all $aside-animation-time;
5655
transform: translate3d(-16rem, 0, 0);
5756

@@ -97,7 +96,7 @@
9796
padding: .625rem 1.25rem;
9897

9998
&:hover {
100-
background-color: darken($mobile-primary, 5%);
99+
background-color: rgba($black, 0.1);
101100
}
102101
}
103102
#avatar-link {

assets/scss/modules/_mixins.scss

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@
99
}
1010

1111
@mixin background-filter {
12-
background: linear-gradient(150deg, $cover-secondary 30%, $cover-primary 70%)
13-
0 0/cover fixed,url(/assets/img/cover.jpg) center/cover no-repeat fixed;
12+
background: linear-gradient(150deg, $cover-secondary 30%, $cover-primary 70%) 0 0/cover fixed;
1413
}
14+
1515
@mixin center-absolute {
1616
display: flex;
1717
justify-content: center;
1818
align-items: center;
1919
}
20+
2021
@mixin font-shadow {
2122
text-shadow: 0 1px 1px rgba(000, 000, 000, .4);
2223
}
24+
2325
@mixin btn-cover {
2426
position: relative;
2527
display: block;

assets/scss/modules/_variables.scss

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ $secondary-color : $gray-dark;
2121
$cover-secondary : rgba(#5f2c82, .1);
2222
$cover-primary : rgba(#49a09d, .2);
2323

24-
$mobile-primary : $gray-darkest;
25-
2624
$link-color : $gray-darkest;
2725
$hover-color : $primary-color;
2826

partials/aside.hbs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<aside class="cover">
2-
1+
<aside class="cover" style="background: url({{@blog.cover}}) center/cover no-repeat fixed">
32
<div class="cover container">
43
<div class="profile">
54
{{#if @blog.logo}}

0 commit comments

Comments
 (0)