Skip to content
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

Added a new filter Pink by vincent #298

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
Binary file added .vs/CSSgram/v16/.suo
Binary file not shown.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
7 changes: 7 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\C:\\Users\\LocalAdmin\\Desktop\\vincent\\CSSgram",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
3 changes: 3 additions & 0 deletions site/.vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
11 changes: 11 additions & 0 deletions site/.vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ExpandedNodes": [
"",
"\\img",
"\\scss",
"\\test",
"\\test\\css",
"\\twig"
],
"PreviewInSolutionExplorer": false
}
Binary file added site/.vs/site/v16/.suo
Binary file not shown.
Binary file added site/.vs/slnx.sqlite
Binary file not shown.
44 changes: 44 additions & 0 deletions site/css/demo-site.css
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,51 @@
background: -webkit-radial-gradient(circle, transparent 70%, #222222 150%);
background: radial-gradient(circle, transparent 70%, #222222 150%);
mix-blend-mode: multiply; }
/*
*
* Pink
*
*/

.pink-filter {
position: relative;
-webkit-filter: contrast(1.1) brightness(2.1) saturate(1.3);
filter: contrast(1.1) brightness(2.1) saturate(1.3);
}

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

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

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

.pink-filter:after {
background: rgba(243, 106, 188, 0.3);
mix-blend-mode: screen;
}
/*
* 1977
*
Expand Down
6 changes: 6 additions & 0 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ <h2 class="title--top-sub">A tiny (&lt;1kb gzipped!) library for recreating <a h
<figcaption>#nofilter</figcaption>
</figure>
</li>
<li class="demo__item">
<figure class="pink-filter">
<img>
<figcaption>Pink</figcaption>
</figure>
</li>
<li class="demo__item">
<figure class="_1977">
<img>
Expand Down
1 change: 1 addition & 0 deletions site/scss/demo-site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
@import 'vars';
@import 'mixins';
@import 'home';
@import 'pink';