-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add juno filter #245
base: master
Are you sure you want to change the base?
Add juno filter #245
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* | ||
* Juno | ||
* | ||
*/ | ||
|
||
.juno { | ||
position: relative; | ||
-webkit-filter: contrast(1.25) brightness(0.989) saturate(1.1) grayscale(0.19); | ||
filter: contrast(1.25) brightness(0.989) saturate(1.1) grayscale(0.19); } | ||
|
||
.juno img { | ||
width: 100%; | ||
z-index: 1; } | ||
|
||
.juno:before { | ||
content: ''; | ||
display: block; | ||
height: 100%; | ||
width: 100%; | ||
top: 0; | ||
left: 0; | ||
position: absolute; | ||
pointer-events: none; | ||
z-index: 2; } | ||
|
||
.juno:after { | ||
content: ''; | ||
display: block; | ||
height: 100%; | ||
width: 100%; | ||
top: 0; | ||
left: 0; | ||
position: absolute; | ||
pointer-events: none; | ||
z-index: 3; } | ||
|
||
.juno::after { | ||
background: -webkit-radial-gradient(circle, rgba(150, 160, 150, 0.4) 100%, #c06ec9); | ||
background: radial-gradient(circle, rgba(150, 160, 150, 0.4) 100%, #c06ec9); | ||
mix-blend-mode: overlay; } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,5 @@ | |
@import 'slumber'; | ||
@import 'brannan'; | ||
@import 'valencia'; | ||
@import 'kelvin'; | ||
@import 'kelvin'; | ||
@import 'juno'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* | ||
* Juno | ||
* | ||
*/ | ||
@import 'shared'; | ||
|
||
// mixin to extend juno filter | ||
// @mixin juno | ||
// @param $filters... {filter} - Zero to many css filters to be added | ||
// @example | ||
// img { | ||
// @include juno; | ||
// } | ||
// or | ||
// img { | ||
// @include juno(blur(2px)); | ||
// } | ||
// or | ||
// img { | ||
// @include juno(blur(2px)) { | ||
// /*...*/ | ||
// }; | ||
// } | ||
@mixin juno($filters...) { | ||
@include filter-base; | ||
filter: contrast(1.25) brightness(.989) saturate(1.1) grayscale(.19) $filters; | ||
|
||
&::after { | ||
background: radial-gradient(circle, rgba(150, 160, 150, .4) 100%, rgb(192, 110, 201)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This PR looks awesome!! The only change I would make is changing this first value in the gradient from |
||
mix-blend-mode: overlay; | ||
} | ||
|
||
@content; | ||
} | ||
|
||
// juno Instagram filter | ||
%juno, | ||
.juno { | ||
@include juno; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just remove brightness, since
.989
isn't going to be making much of a difference here