-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added stinson filter * adds the stinson filter import * heightens brightness and adds a before pseudo for a warmer hue
- Loading branch information
Showing
4 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,7 +162,7 @@ | |
}, | ||
{ | ||
"name": "Stinson", | ||
"is_done": false, | ||
"is_done": true, | ||
"usage": "stinson" | ||
}, | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* | ||
* Stinson | ||
* | ||
*/ | ||
|
||
.stinson { | ||
position: relative; | ||
-webkit-filter: contrast(0.75) saturate(0.85) brightness(1.15); | ||
filter: contrast(0.75) saturate(0.85) brightness(1.15); } | ||
|
||
.stinson img { | ||
width: 100%; | ||
z-index: 1; } | ||
|
||
.stinson:before { | ||
content: ''; | ||
display: block; | ||
height: 100%; | ||
width: 100%; | ||
top: 0; | ||
left: 0; | ||
position: absolute; | ||
pointer-events: none; | ||
z-index: 2; } | ||
|
||
.stinson:after { | ||
content: ''; | ||
display: block; | ||
height: 100%; | ||
width: 100%; | ||
top: 0; | ||
left: 0; | ||
position: absolute; | ||
pointer-events: none; | ||
z-index: 3; } | ||
|
||
&::before { | ||
background: rgba(240, 149, 128, .2); | ||
mix-blend-mode: soft-light; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,5 @@ | |
@import 'brannan'; | ||
@import 'valencia'; | ||
@import 'kelvin'; | ||
@import 'maven'; | ||
@import 'maven'; | ||
@import 'stinson'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* | ||
* Stinson | ||
* | ||
*/ | ||
|
||
@import 'shared'; | ||
|
||
// mixin to extend stinson filter | ||
// @mixin stinson | ||
// @param $filters... {filter} - Zero to many css filters to be added | ||
// @example | ||
// img { | ||
// @include stinson; | ||
// } | ||
// or | ||
// img { | ||
// @include stinson(blur(2px)); | ||
// } | ||
// or | ||
// img { | ||
// @include stinson(blur(2px)) { | ||
// /*...*/ | ||
// }; | ||
// } | ||
@mixin stinson($filters...) { | ||
@include filter-base; | ||
filter: contrast(0.75) saturate(0.85) brightness(1.15) $filters; | ||
|
||
&::before { | ||
background: rgba(240, 149, 128, .2); | ||
mix-blend-mode: soft-light; | ||
} | ||
|
||
@content; | ||
} | ||
|
||
// stinson Instagram filter | ||
%stinson, | ||
.stinson { | ||
@include stinson; | ||
} |