Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valencia filter #193

Merged
merged 1 commit into from Oct 3, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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;
}