diff --git a/site/filters.json b/site/filters.json index de5138e..22aedf7 100644 --- a/site/filters.json +++ b/site/filters.json @@ -92,7 +92,7 @@ }, { "name": "Kelvin", - "is_done": false, + "is_done": true, "usage": "kelvin" }, { diff --git a/source/scss/cssgram.scss b/source/scss/cssgram.scss index aee0b81..3ecc989 100644 --- a/source/scss/cssgram.scss +++ b/source/scss/cssgram.scss @@ -21,4 +21,5 @@ @import 'rise'; @import 'slumber'; @import 'brannan'; -@import 'valencia'; \ No newline at end of file +@import 'valencia'; +@import 'kelvin'; \ No newline at end of file diff --git a/source/scss/kelvin.scss b/source/scss/kelvin.scss new file mode 100644 index 0000000..26bee35 --- /dev/null +++ b/source/scss/kelvin.scss @@ -0,0 +1,48 @@ +/* + * Kelvin + * + */ +@import 'shared'; + +// mixin to extend kelvin filter +// @mixin kelvin +// @param $filters... {filter} - Zero to many css filters to be added +// @example +// img { +// @include kelvin; +// } +// or +// img { +// @include kelvin(blur(2px)); +// } +// or +// img { +// @include kelvin(blur(2px)) { +// /*...*/ +// }; +// } +@mixin kelvin($filters...) { + @extend %filter-base; + + @if length($filters) > 0 { + filter: $filters; + } + + &::after{ + background: rgb(183, 125, 33); + mix-blend-mode: overlay; + } + + &::before { + background: rgb(56, 44, 52); + mix-blend-mode: color-dodge; + } + + @content; +} + +// kelvin Instagram filter +%kelvin, +.kelvin { + @include kelvin; +}