Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readded Stinson filter #250

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions site/filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
},
{
"name": "Stinson",
"is_done": false,
"is_done": true,
"usage": "stinson"
},
{
Expand Down Expand Up @@ -203,4 +203,4 @@
],

"images": ["atx", "bike", "cacti", "lakegeneva", "tahoe"]
}
}
3 changes: 2 additions & 1 deletion source/scss/cssgram.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
@import 'willow';
@import 'rise';
@import 'slumber';
@import 'stinson';
@import 'brannan';
@import 'valencia';
@import 'kelvin';
@import 'kelvin';
41 changes: 41 additions & 0 deletions source/scss/stinson.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
*
* 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: brightness(1.15) contrast(.8) saturate(.85) sepia(.1) $filters;

&::after {
background: rgba(240, 149, 128, .2);
mix-blend-mode: soft-light;
}

@content;
}

// stinson Instagram filter
%stinson,
.stinson {
@include stinson;
}