Skip to content

Commit

Permalink
Filter dogpatch added
Browse files Browse the repository at this point in the history
  • Loading branch information
milacarrera committed Oct 6, 2016
1 parent 4615b1b commit d012b77
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
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;
}

0 comments on commit d012b77

Please sign in to comment.