Skip to content

Commit f89e96f

Browse files
author
Caryn Humphreys
committed
adds helena filter
1 parent d736911 commit f89e96f

4 files changed

Lines changed: 86 additions & 2 deletions

File tree

site/filters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
},
7373
{
7474
"name": "Helena",
75-
"is_done": false,
75+
"is_done": true,
7676
"usage": "helena"
7777
},
7878
{

source/css/helena.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
*
3+
* Helena
4+
*
5+
*/
6+
7+
.helena {
8+
position: relative;
9+
-webkit-filter: hue-rotate(-18deg) sepia(0.3) saturate(1.3);
10+
filter: hue-rotate(-18deg) sepia(0.3) saturate(1.3); }
11+
12+
.helena img {
13+
width: 100%;
14+
z-index: 1; }
15+
16+
.helena:before {
17+
content: '';
18+
display: block;
19+
height: 100%;
20+
width: 100%;
21+
top: 0;
22+
left: 0;
23+
position: absolute;
24+
pointer-events: none;
25+
z-index: 2; }
26+
27+
.helena:after {
28+
content: '';
29+
display: block;
30+
height: 100%;
31+
width: 100%;
32+
top: 0;
33+
left: 0;
34+
position: absolute;
35+
pointer-events: none;
36+
z-index: 3; }
37+
38+
.helena::after {
39+
background: #007ccc;
40+
mix-blend-mode: soft-light;
41+
opacity: .3; }

source/scss/cssgram.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@
2121
@import 'slumber';
2222
@import 'brannan';
2323
@import 'valencia';
24-
@import 'kelvin';
24+
@import 'kelvin';
25+
@import 'helena';

source/scss/helena.scss

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
*
3+
* Helena
4+
*
5+
*/
6+
@import 'shared';
7+
8+
// mixin to extend helena filter
9+
// @mixin helena
10+
// @param $filters... {filter} - Zero to many css filters to be added
11+
// @example
12+
// img {
13+
// @include helena;
14+
// }
15+
// or
16+
// img {
17+
// @include helena(blur(2px));
18+
// }
19+
// or
20+
// img {
21+
// @include helena(blur(2px)) {
22+
// /*...*/
23+
// };
24+
// }
25+
@mixin helena($filters...) {
26+
@include filter-base;
27+
filter: hue-rotate(-18deg) sepia(0.3) saturate(1.3) $filters;
28+
29+
&::after {
30+
background: #007ccc;
31+
mix-blend-mode: soft-light;
32+
opacity: .3;
33+
}
34+
35+
@content;
36+
}
37+
38+
// helena Instagram filter
39+
%helena,
40+
.helena {
41+
@include helena;
42+
}

0 commit comments

Comments
 (0)