Skip to content

Commit

Permalink
adds helena filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Caryn Humphreys committed Oct 27, 2016
1 parent d736911 commit f89e96f
Show file tree
Hide file tree
Showing 4 changed files with 86 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 @@ -72,7 +72,7 @@
},
{
"name": "Helena",
"is_done": false,
"is_done": true,
"usage": "helena"
},
{
Expand Down
41 changes: 41 additions & 0 deletions source/css/helena.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
*
* Helena
*
*/

.helena {
position: relative;
-webkit-filter: hue-rotate(-18deg) sepia(0.3) saturate(1.3);
filter: hue-rotate(-18deg) sepia(0.3) saturate(1.3); }

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

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

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

.helena::after {
background: #007ccc;
mix-blend-mode: soft-light;
opacity: .3; }
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 'helena';
42 changes: 42 additions & 0 deletions source/scss/helena.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
*
* Helena
*
*/
@import 'shared';

// mixin to extend helena filter
// @mixin helena
// @param $filters... {filter} - Zero to many css filters to be added
// @example
// img {
// @include helena;
// }
// or
// img {
// @include helena(blur(2px));
// }
// or
// img {
// @include helena(blur(2px)) {
// /*...*/
// };
// }
@mixin helena($filters...) {
@include filter-base;
filter: hue-rotate(-18deg) sepia(0.3) saturate(1.3) $filters;

&::after {
background: #007ccc;
mix-blend-mode: soft-light;
opacity: .3;
}

@content;
}

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

0 comments on commit f89e96f

Please # to comment.