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

Added Dogpatch filter #218

Open
wants to merge 1 commit 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
2 changes: 1 addition & 1 deletion site/filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
{
"name": "Dogpatch",
"is_done": false,
"is_done": true,
"usage": "dogpatch"
},
{
Expand Down
4 changes: 3 additions & 1 deletion source/scss/cssgram.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@
@import 'slumber';
@import 'brannan';
@import 'valencia';
@import 'kelvin';
@import 'kelvin';
@import 'juno';
@import 'dogpatch';
34 changes: 34 additions & 0 deletions source/scss/dogpatch.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Dogpatch
*
*/
@import 'shared';
// mixin to extend dogpatch filter
// @mixin dogpatch
// @param $filters... {filter} - Zero to many css filters to be added
// @example
// img {
// @include dogpatch;
// }
// or
// img {
// @include dogpatch(blur(2px));
// }
// or
// img {
// @include dogpatch(blur(2px)) {
// /*...*/
// };
// }
@mixin dogpatch($filters...) {
@extend %filter-base;
filter: contrast(1.38) saturate(.85) brightness(1.08) $filters;

@content;
}

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