Skip to content

Commit

Permalink
added maven filter (#252)
Browse files Browse the repository at this point in the history
* added maven filter

* adds the maven filter import
  • Loading branch information
Caryn Humphreys authored and una committed Nov 3, 2016
1 parent a093342 commit a0d1f6b
Show file tree
Hide file tree
Showing 4 changed files with 85 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 @@ -112,7 +112,7 @@
},
{
"name": "Maven",
"is_done": false,
"is_done": true,
"usage": "maven"
},
{
Expand Down
40 changes: 40 additions & 0 deletions source/css/maven.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
*
* Maven
*
*/

.maven {
position: relative;
-webkit-filter: sepia(0.25) brightness(0.95) contrast(0.95) saturate(1.5);
filter: sepia(0.25) brightness(0.95) contrast(0.95) saturate(1.5); }

.maven img {
width: 100%;
z-index: 1; }

.maven:before {
content: '';
display: block;
height: 100%;
width: 100%;
top: 0;
left: 0;
position: absolute;
pointer-events: none;
z-index: 2; }

.maven:after {
content: '';
display: block;
height: 100%;
width: 100%;
top: 0;
left: 0;
position: absolute;
pointer-events: none;
z-index: 3; }

.maven:after {
background: rgba(3,230,26,0.20);
mix-blend-mode: hue; }
3 changes: 2 additions & 1 deletion source/scss/cssgram.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@
@import 'slumber';
@import 'brannan';
@import 'valencia';
@import 'kelvin';
@import 'kelvin';;
@import 'maven';
42 changes: 42 additions & 0 deletions source/scss/maven.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
*
* Maven
*
*/

@import 'shared';

// mixin to extend maven filter
// @mixin maven
// @param $filters... {filter} - Zero to many css filters to be added
// @example
// img {
// @include maven;
// }
// or
// img {
// @include maven(blur(2px));
// }
// or
// img {
// @include maven(blur(2px)) {
// /*...*/
// };
// }
@mixin maven($filters...) {
@include filter-base;
filter: sepia(.25) brightness(.95) contrast(.95) saturate(1.5) $filters;

&:after{
background: rgba(3,230,26,0.20);
mix-blend-mode: hue;
}

@content;
}

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

0 comments on commit a0d1f6b

Please sign in to comment.