Skip to content

Commit 1ed6936

Browse files
committed
Core: Progressbar fix inset position with statusbar enabled
1 parent 00eaf69 commit 1ed6936

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/core/components/progressbar/progressbar.less

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,27 @@ body, .view, .views, .page, .panel, .popup, .framework7-root {
1515
border-radius: 0 !important;
1616
transform-origin: center top !important;
1717
}
18-
html.with-statusbar.device-ios &, html.with-statusbar.ios:not(.device-ios):not(.device-android) & {
18+
}
19+
.with-statusbar.device-ios,
20+
.with-statusbar.ios:not(.device-ios):not(.device-android) {
21+
body, .framework7-root {
1922
> .progressbar, > .progressbar-infinite {
2023
top: 20px;
2124
}
2225
}
23-
html.with-statusbar.device-android &, html.with-statusbar.md:not(.device-ios):not(.device-android) & {
26+
}
27+
.with-statusbar.device-android,
28+
.with-statusbar.md:not(.device-ios):not(.device-android) {
29+
body, .framework7-root {
2430
> .progressbar, > .progressbar-infinite {
2531
top: 24px;
2632
}
2733
}
2834
}
35+
2936
.with-statusbar {
3037
.safe-areas({
31-
body, .view, .views, .page, .panel, .popup, .framework7-root {
38+
body, .framework7-root {
3239
> .progressbar, > .progressbar-infinite {
3340
top: constant(safe-area-inset-top);
3441
top: env(safe-area-inset-top);

0 commit comments

Comments
 (0)