fix incorrect style in some old browsers

This commit is contained in:
MaysWind 2021-02-16 12:36:16 +08:00
parent 2a3748d2d4
commit ba8176e150

View file

@ -109,17 +109,19 @@ td {
padding: 6px 5px 6px 41px; padding: 6px 5px 6px 41px;
} }
@media screen and (orientation: landscape) { @supports (padding-left: max(15px, 0px)) {
.main-sidebar ul.sidebar-menu > li.header { @media screen and (orientation: landscape) {
padding-left: max(15px, env(safe-area-inset-left)); .main-sidebar ul.sidebar-menu > li.header {
} padding-left: max(15px, env(safe-area-inset-left));
}
.main-sidebar ul.sidebar-menu > li > a { .main-sidebar ul.sidebar-menu > li > a {
padding-left: max(15px, env(safe-area-inset-left)); padding-left: max(15px, env(safe-area-inset-left));
} }
.main-sidebar ul.sidebar-menu > li.treeview > ul.treeview-menu > li > a { .main-sidebar ul.sidebar-menu > li.treeview > ul.treeview-menu > li > a {
padding-left: max(41px, calc(26px + env(safe-area-inset-left))); padding-left: max(41px, calc(26px + env(safe-area-inset-left)));
}
} }
} }