Просмотр исходного кода

fix(iOS): top padding issue for iPhone

leizhe 4 лет назад
Родитель
Сommit
d0c1839aa0
1 измененных файлов с 7 добавлено и 19 удалено
  1. 7 19
      src/main/frontend/components/header.css

+ 7 - 19
src/main/frontend/components/header.css

@@ -203,8 +203,12 @@ html.is-native-iphone,
 html.is-native-iphone-without-notch,
 html.is-native-iphone-without-notch,
 html.is-native-ipad {
 html.is-native-ipad {
 
 
-    #main-container {
-        padding-top: 20px;
+     #main-container {
+        padding-top: 0px;
+    }
+
+    #main-content-container {
+        padding-top: 0px;
     }
     }
     
     
     .cp__header > .r {
     .cp__header > .r {
@@ -215,14 +219,6 @@ html.is-native-ipad {
 html.is-native-ipad {
 html.is-native-ipad {
     --ls-headbar-inner-top-padding: 0px;
     --ls-headbar-inner-top-padding: 0px;
     --ls-headbar-height: 4rem;
     --ls-headbar-height: 4rem;
-
-    #main-container {
-        padding-top: 0px;
-    }
-
-    #main-container-content {
-        padding-top: 0px;
-    }
     
     
     .cp__header {
     .cp__header {
       background-color: transparent !important;
       background-color: transparent !important;
@@ -282,11 +278,7 @@ html.is-native-iphone {
             padding-bottom: 12px;
             padding-bottom: 12px;
         }
         }
     }
     }
-
-    #main-container {
-        padding-top: 83px;
-    }
-
+    
     @media (orientation: landscape) {
     @media (orientation: landscape) {
         --ls-headbar-inner-top-padding: 8px;
         --ls-headbar-inner-top-padding: 8px;
         --ls-headbar-height: 2.5rem;
         --ls-headbar-height: 2.5rem;
@@ -294,10 +286,6 @@ html.is-native-iphone {
         .cp__header {
         .cp__header {
             @apply shadow z-10;
             @apply shadow z-10;
         }
         }
-
-        #main-container {
-            padding-top: 45px;
-        }
     }
     }
 }
 }