Skip to content

Commit 60cfd3b

Browse files
committed
Add filter Juno
1 parent 4615b1b commit 60cfd3b

3 files changed

Lines changed: 42 additions & 3 deletions

File tree

site/filters.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
},
8888
{
8989
"name": "Juno",
90-
"is_done": false,
90+
"is_done": true,
9191
"usage": "juno"
9292
},
9393
{
@@ -203,4 +203,4 @@
203203
],
204204

205205
"images": ["atx", "bike", "cacti", "lakegeneva", "tahoe"]
206-
}
206+
}

source/scss/cssgram.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@
2222
@import 'slumber';
2323
@import 'brannan';
2424
@import 'valencia';
25-
@import 'kelvin';
25+
@import 'kelvin';
26+
@import 'juno';

source/scss/juno.scss

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Juno
3+
*
4+
*/
5+
@import 'shared';
6+
// mixin to extend juno filter
7+
// @mixin juno
8+
// @param $filters... {filter} - Zero to many css filters to be added
9+
// @example
10+
// img {
11+
// @include juno;
12+
// }
13+
// or
14+
// img {
15+
// @include juno(blur(2px));
16+
// }
17+
// or
18+
// img {
19+
// @include juno(blur(2px)) {
20+
// /*...*/
21+
// };
22+
// }
23+
@mixin juno($filters...) {
24+
@extend %filter-base;
25+
filter: contrast(1.2) saturate(0.8) $filters;
26+
&:before {
27+
background: linear-gradient(to bottom,rgba(255,255,255,0.2), rgba(74, 195, 111, 0.2), transparent);
28+
mix-blend-mode: overlay;
29+
}
30+
31+
@content;
32+
}
33+
34+
// juno Instagram filter
35+
%juno,
36+
.juno {
37+
@include juno;
38+
}

0 commit comments

Comments
 (0)