Skip to content

Commit

Permalink
Add filter Juno
Browse files Browse the repository at this point in the history
  • Loading branch information
milacarrera committed Oct 6, 2016
1 parent 4615b1b commit 60cfd3b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
4 changes: 2 additions & 2 deletions site/filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
},
{
"name": "Juno",
"is_done": false,
"is_done": true,
"usage": "juno"
},
{
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 @@ -22,4 +22,5 @@
@import 'slumber';
@import 'brannan';
@import 'valencia';
@import 'kelvin';
@import 'kelvin';
@import 'juno';
38 changes: 38 additions & 0 deletions source/scss/juno.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Juno
*
*/
@import 'shared';
// mixin to extend juno filter
// @mixin juno
// @param $filters... {filter} - Zero to many css filters to be added
// @example
// img {
// @include juno;
// }
// or
// img {
// @include juno(blur(2px));
// }
// or
// img {
// @include juno(blur(2px)) {
// /*...*/
// };
// }
@mixin juno($filters...) {
@extend %filter-base;
filter: contrast(1.2) saturate(0.8) $filters;
&:before {
background: linear-gradient(to bottom,rgba(255,255,255,0.2), rgba(74, 195, 111, 0.2), transparent);
mix-blend-mode: overlay;
}

@content;
}

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

0 comments on commit 60cfd3b

Please sign in to comment.