Skip to content

Commit

Permalink
Removing duplicate utilities for luminosity, reduced number of backgr…
Browse files Browse the repository at this point in the history
…ound utilities to reduce CSS file by 15%.
  • Loading branch information
adamglenn committed Feb 5, 2019
1 parent 9b2766c commit 0e5c7ae
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 35 deletions.
2 changes: 1 addition & 1 deletion public/css/styles.css

Large diffs are not rendered by default.

20 changes: 0 additions & 20 deletions scss/utilities/_wvu-bg-blend-mode.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,6 @@
@include wvu-bg-blend-mode(lighten);
}

$i: 90;
@while $i > 0 {
.wvu-bg-blend-mode-luminosity-#{$i} {
background-blend-mode: luminosity !important;
background-size: cover !important;
position: relative;
&:before {
background-color: inherit !important;
bottom: 0 !important;
content: '' !important;
left: 0 !important;
opacity: $i * .01 !important;
position: absolute !important;
right: 0 !important;
top: 0 !important;
}
}
$i: $i - 10;
}

$i: 90;
@while $i > 0 {
.wvu-bg-blend-mode-luminosity--#{$i} {
Expand Down
2 changes: 1 addition & 1 deletion scss/utilities/_wvu-bg-position.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $i: 100;
}
}
}
$i: $i - 5;
$i: $i - 10;
}

@each $bg-class, $bg-property in (center-left, center left),
Expand Down
13 changes: 1 addition & 12 deletions scss/utilities/_wvu-bg-vignetting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@include wvu-bg-vignetting($wvu-vignetting-opacity, left);
}

.wvu-bg-vignetting-right {
.wvu-bg-vignetting--right {
@include wvu-bg-vignetting($wvu-vignetting-opacity, right);
}

Expand All @@ -16,14 +16,3 @@ $i: 90;
}
$i: $i - 10;
}

$i: 90;
@while $i > 0 {
.wvu-bg-vignetting-right--#{$i} {
@include wvu-bg-vignetting($wvu-vignetting-opacity, right);
&:before {
opacity: $i * .01 !important;
}
}
$i: $i - 10;
}
2 changes: 1 addition & 1 deletion stylesheets/styles.css

Large diffs are not rendered by default.

0 comments on commit 0e5c7ae

Please sign in to comment.