Skip to content

Commit

Permalink
Fixed background Chrome fix
Browse files Browse the repository at this point in the history
  • Loading branch information
radogado committed May 14, 2023
1 parent ea79e56 commit 323920b
Show file tree
Hide file tree
Showing 15 changed files with 1,956 additions and 1,943 deletions.
5 changes: 5 additions & 0 deletions css/niui-core.css

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

2 changes: 1 addition & 1 deletion css/niui-core.css.map

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

18 changes: 13 additions & 5 deletions css/niui-core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,31 @@ body.n-sticky-footer {
position: fixed;
object-fit: cover;
object-position: center;
inset-block-start: 0; // Safari toolbars stability
inset-block-start: 0; // Safari iPhone toolbars stability
inset-inline: 0;

@media (min-width: 600px) {
inset-block-start: auto;
inset-block-end: 0; // Safari toolbars stability
inset-block-end: 0; // Safari iPad toolbars stability
}
}
}
}

// iPad disappearing fixed background
// @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
.n-fixed-bg__backdrop img {
transform: translate3d(0, 0, 0);
}
.n-fixed-bg__backdrop img {
transform: translate3d(0, 0, 0);
}

// }

// Chrome stuck at bottom
[data-nui-chrome] .n-fixed-bg__backdrop img {
inset-block-start: auto;
inset-block-end: 0;
}

.n-fixed {
position: fixed;

Expand Down
2 changes: 1 addition & 1 deletion dist/niui.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/niui.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/niui.min.css.size
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14315
14358
2 changes: 1 addition & 1 deletion dist/niui.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/niui.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/niui.min.js.size
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12494
12542
Loading

0 comments on commit 323920b

Please sign in to comment.