Skip to content

Commit

Permalink
Remove polyfill, add fallback background-color
Browse files Browse the repository at this point in the history
  • Loading branch information
alexchrysovergis committed Aug 3, 2024
1 parent 8e71baf commit 8e07ff4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 56 deletions.
2 changes: 1 addition & 1 deletion docs/dist/css/styles.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/dist/js/scripts.min.js

Large diffs are not rendered by default.

24 changes: 0 additions & 24 deletions src/js/blur-polyfill.js

This file was deleted.

15 changes: 15 additions & 0 deletions src/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,15 @@ h1, h2, h3 {
background: transparent;
color: $white;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}

@supports not (backdrop-filter: blur(10px)) {
.cc-nb-main-container, .cc-pc-container {
background-color: rgba(18,43,49,.7882352941);
}
}

#cc-nb-title {
display: none;
}
Expand Down Expand Up @@ -343,6 +350,14 @@ div.termsfeed-com---pc-dialog {

#termsfeed-com---preferences-center {
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);

@supports not (backdrop-filter: blur(10px)) {
#termsfeed-com---preferences-center {
background-color: rgba(18,43,49,.7882352941);
}
}

.cc-pc-head, .cc-pc-container, .cc-cp-body-content, .cc-cp-body-content-entry, .cc-cp-body, .cc-cp-foot {
background: transparent !important;
font-family: map-get($map: $asty, $key: 'Asty-Book');
Expand Down
29 changes: 0 additions & 29 deletions src/ts/blur-polyfill.ts

This file was deleted.

0 comments on commit 8e07ff4

Please sign in to comment.