|
@@ -161,21 +161,3 @@ input:-webkit-autofill {
|
161
|
161
|
background-color: #eee;
|
162
|
162
|
}
|
163
|
163
|
|
164
|
|
-@mixin iphonex-css {
|
165
|
|
- padding-top: constant(safe-area-inset-top); //为导航栏+状态栏的高度 88px
|
166
|
|
- padding-top: env(safe-area-inset-top); //为导航栏+状态栏的高度 88px
|
167
|
|
- padding-left: constant(safe-area-inset-left); //如果未竖屏时为0
|
168
|
|
- padding-left: env(safe-area-inset-left); //如果未竖屏时为0
|
169
|
|
- padding-right: constant(safe-area-inset-right); //如果未竖屏时为0
|
170
|
|
- padding-right: env(safe-area-inset-right); //如果未竖屏时为0
|
171
|
|
- padding-bottom: constant(safe-area-inset-bottom); //为底下圆弧的高度 34px
|
172
|
|
- padding-bottom: env(safe-area-inset-bottom); //为底下圆弧的高度 34px
|
173
|
|
-}
|
174
|
|
-
|
175
|
|
-@mixin iphonex-support {
|
176
|
|
- @supports (bottom: constant(safe-area-inset-top)) or (bottom: env(safe-area-inset-top)) {
|
177
|
|
- body.iphonex {
|
178
|
|
- @include iphonex-css;
|
179
|
|
- }
|
180
|
|
- }
|
181
|
|
-}
|