Skip to content

Commit 3819651

Browse files
author
Caryn Humphreys
committed
added ginza filter
1 parent aaa58a1 commit 3819651

3 files changed

Lines changed: 92 additions & 1 deletion

File tree

site/filters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
},
6363
{
6464
"name": "Ginza",
65-
"is_done": false,
65+
"is_done": true,
6666
"usage": "ginza"
6767
},
6868
{

source/css/ginza.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
*
3+
* Ginza
4+
*
5+
*/
6+
7+
.ginza {
8+
position: relative;
9+
-webkit-filter: sepia(0.2) contrast(1.2) brightness(1.05) saturate(1.2);
10+
filter: sepia(0.2) contrast(1.2) brightness(1.05) saturate(1.2); }
11+
12+
.ginza img {
13+
width: 100%;
14+
z-index: 1; }
15+
16+
.ginza: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+
.ginza: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+
.ginza::after {
39+
background: rgba(0, 70, 150, 0.4);
40+
mix-blend-mode: lighten; }
41+
42+
.ginza::before {
43+
background: rgba(247, 176, 153, 0.56);
44+
mix-blend-mode: darken; }

source/scss/ginza.scss

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
*
3+
* Ginza
4+
*
5+
*/
6+
7+
@import 'shared';
8+
9+
// mixin to extend ginza filter
10+
// @mixin ginza
11+
// @param $filters... {filter} - Zero to many css filters to be added
12+
// @example
13+
// img {
14+
// @include ginza;
15+
// }
16+
// or
17+
// img {
18+
// @include ginza(blur(2px));
19+
// }
20+
// or
21+
// img {
22+
// @include ginza(blur(2px)) {
23+
// /*...*/
24+
// };
25+
// }
26+
@mixin ginza($filters...) {
27+
@include filter-base;
28+
filter: sepia(.2) contrast(1.2) brightness(1.05) saturate(1.2) $filters;
29+
30+
&::after {
31+
background: rgba(0, 70, 150, .4);
32+
mix-blend-mode: lighten;
33+
}
34+
35+
&::before {
36+
background: rgba(247, 176, 153, .56);
37+
mix-blend-mode: darken;
38+
}
39+
40+
@content;
41+
}
42+
43+
// ginza Instagram filter
44+
%ginza,
45+
.ginza {
46+
@include ginza;
47+
}

0 commit comments

Comments
 (0)