Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion site/filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
{
"name": "Ginza",
"is_done": false,
"is_done": true,
"usage": "ginza"
},
{
Expand Down
44 changes: 44 additions & 0 deletions source/css/ginza.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
*
* Ginza
*
*/

.ginza {
position: relative;
-webkit-filter: sepia(0.2) contrast(1.2) brightness(1.05) saturate(1.2);
filter: sepia(0.2) contrast(1.2) brightness(1.05) saturate(1.2); }

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

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

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

.ginza::after {
background: rgba(0, 70, 150, 0.4);
mix-blend-mode: lighten; }

.ginza::before {
background: rgba(247, 176, 153, 0.56);
mix-blend-mode: darken; }
3 changes: 2 additions & 1 deletion source/scss/cssgram.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
@import 'brannan';
@import 'valencia';
@import 'kelvin';
@import 'maven';
@import 'maven';
@import 'ginza';
47 changes: 47 additions & 0 deletions source/scss/ginza.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
*
* Ginza
*
*/

@import 'shared';

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

&::after {
background: rgba(0, 70, 150, .4);
mix-blend-mode: lighten;
}

&::before {
background: rgba(247, 176, 153, .56);
mix-blend-mode: darken;
}

@content;
}

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