mirror of
https://github.com/Tencent/weui.git
synced 2026-03-13 08:02:03 +08:00
media query iphone x
This commit is contained in:
2
dist/example/example.css
vendored
2
dist/example/example.css
vendored
File diff suppressed because one or more lines are too long
2
dist/example/index.html
vendored
2
dist/example/index.html
vendored
@@ -2,7 +2,7 @@
|
||||
<html lang="zh-cmn-Hans">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
|
||||
<title>WeUI</title>
|
||||
<link rel="stylesheet" href="../style/weui.css"/>
|
||||
<link rel="stylesheet" href="./example.css"/>
|
||||
|
||||
2
dist/style/weui.css
vendored
2
dist/style/weui.css
vendored
File diff suppressed because one or more lines are too long
@@ -445,4 +445,16 @@ body, .page {
|
||||
|
||||
.page.slideOut {
|
||||
animation: slideOut .2s forwards;
|
||||
}
|
||||
|
||||
// iphone x
|
||||
@iphonexSafeGap:44px;
|
||||
@media only screen
|
||||
and (device-width : 375px)
|
||||
and (device-height : 812px)
|
||||
and (-webkit-device-pixel-ratio : 3)
|
||||
and (orientation : landscape) {
|
||||
.page{
|
||||
padding:0 @iphonexSafeGap;
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
<html lang="zh-cmn-Hans">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
|
||||
<title>WeUI</title>
|
||||
<link rel="stylesheet" href="../style/weui.css"/>
|
||||
<link rel="stylesheet" href="./example.css"/>
|
||||
|
||||
Reference in New Issue
Block a user