Skip to content

Commit

Permalink
Adds Valencia filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Praseetha-KR committed Oct 1, 2016
1 parent a6f9b3b commit 9787865
Show file tree
Hide file tree
Showing 3 changed files with 45 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 @@ -177,7 +177,7 @@
},
{
"name": "Valencia",
"is_done": false,
"is_done": true,
"usage": "valencia"
},
{
Expand Down
3 changes: 2 additions & 1 deletion source/scss/cssgram.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
@import 'willow';
@import 'rise';
@import 'slumber';
@import 'brannan'
@import 'brannan';
@import 'valencia';
42 changes: 42 additions & 0 deletions source/scss/valencia.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
*
* Valencia
*
*/
@import 'shared';

// mixin to extend valencia filter
// @mixin valencia
// @param $filters... {filter} - Zero to many css filters to be added
// @example
// img {
// @include valencia;
// }
// or
// img {
// @include valencia(blur(2px));
// }
// or
// img {
// @include valencia(blur(2px)) {
// /*...*/
// };
// }
@mixin valencia($filters...) {
@extend %filter-base;
filter: contrast(1.08) brightness(1.08) sepia(0.08) $filters;

&::after {
background: rgb(58, 3, 57);
mix-blend-mode: exclusion;
opacity: .5;
}

@content;
}

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

0 comments on commit 9787865

Please sign in to comment.