Skip to content

Commit

Permalink
Merge pull request #193 from Praseetha-KR/valencia
Browse files Browse the repository at this point in the history
Valencia filter
  • Loading branch information
una committed Oct 3, 2016
2 parents ff119c3 + 9787865 commit 655b8c9
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
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
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
@@ -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 655b8c9

Please sign in to comment.