Skip to content
Closed
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
2 changes: 1 addition & 1 deletion 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
1 change: 1 addition & 0 deletions 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';
45 changes: 45 additions & 0 deletions source/scss/stinson.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
*
* 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: sepia(.2) hue-rotate(-2deg) contrast(.9) brightness(1.05) $filters;

&::before {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:D Please add a line space before the pseudo elements!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that! Added now. :)

background-color: rgba(171,148,142,.8);
mix-blend-mode: soft-light;
}

&::after {
background-color: rgba(51,42,37,1);
mix-blend-mode: lighten;
}
@content;
}

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