Skip to content

Commit

Permalink
Move backdrop-filter to a pseudo-element. Fix #133
Browse files Browse the repository at this point in the history
  • Loading branch information
robinparisi committed Nov 9, 2019
1 parent 5dfd2fc commit 21e333c
Show file tree
Hide file tree
Showing 8 changed files with 364 additions and 375 deletions.
1 change: 1 addition & 0 deletions .csscomb.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
"-webkit-filter",
"-ms-filter",
"filter",
"backdrop-filter",
"resize",
"user-select",
"cursor",
Expand Down
19 changes: 9 additions & 10 deletions dist/tingle.css
Original file line number Diff line number Diff line change
Expand Up @@ -248,16 +248,15 @@
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
.tingle-modal {
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
}

@media (max-width : 540px) {
.tingle-modal {
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
}
.tingle-modal:before {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
content: "";
-webkit-backdrop-filter: blur(18px);
backdrop-filter: blur(18px);
}

.tingle-enabled .tingle-content-wrapper {
Expand Down
2 changes: 1 addition & 1 deletion dist/tingle.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 9 additions & 15 deletions doc/tingle/tingle.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@
bottom: 0;
left: 0;
z-index: 1000;
display: -ms-flexbox;
display: flex;
visibility: hidden;
-ms-flex-direction: column;
flex-direction: column;
-ms-flex-align: center;
align-items: center;
overflow: hidden;
-webkit-overflow-scrolling: touch;
background: rgba(0, 0, 0, .85);
opacity: 0;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
Expand Down Expand Up @@ -77,7 +73,6 @@

.tingle-modal-box {
position: relative;
-ms-flex-negative: 0;
flex-shrink: 0;
margin-top: auto;
margin-bottom: auto;
Expand Down Expand Up @@ -253,16 +248,15 @@
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
.tingle-modal {
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
}

@media (max-width : 540px) {
.tingle-modal {
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
}
.tingle-modal:before {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
content: "";
-webkit-backdrop-filter: blur(18px);
backdrop-filter: blur(18px);
}

.tingle-enabled .tingle-content-wrapper {
Expand Down
Loading

0 comments on commit 21e333c

Please sign in to comment.