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 fcc12bd commit e8088b8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
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
1 change: 1 addition & 0 deletions source/scss/cssgram.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@
@import 'valencia';
@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 e8088b8

Please sign in to comment.