Summary Files Commits Branches @commit @diff @stats
path: root / tools / resizer / assets / css
diff options
context:
space:
mode:
Commitc1122d68a0f5fbe1cd3379218ff9a075d1741e88 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-05-11 15:34:36 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-05-11 15:34:36 +0800
Files89dbae37635f4f394544c0d62ce607c3b642b0c8 /tools/resizer/assets/css
Spectre-Dark-Gruvbox-c1122d68a0f5fbe1cd3379218ff9a075d1741e88.tar
Spectre-Dark-Gruvbox-c1122d68a0f5fbe1cd3379218ff9a075d1741e88.tar.gz
Spectre-Dark-Gruvbox-c1122d68a0f5fbe1cd3379218ff9a075d1741e88.zip
Parent7e921edf29182feda7bf4bfc2b2d936f4f3af49f (diff)
change to Zepto and fix size issue on iOS
1 files changed, 12 insertions, 11 deletions
-rw-r--r--tools/resizer/assets/css/app.css23
diff --git a/tools/resizer/assets/css/app.css b/tools/resizer/assets/css/app.css
index 88493ef..47d1e2f 100644
--- a/tools/resizer/assets/css/app.css
+++ b/tools/resizer/assets/css/app.css
@@ -20,20 +20,16 @@
font-size: 14px;
margin: 0;
}
-.device {
- height: 80vh;
- margin: 10vh auto;
- transform: scale(1, 1);
- transition: width .216s ease;
- width: 80vw;
-}
.browser {
background: #fff;
border-radius: 3px;
display: flex;
flex-direction: column;
height: 80vh;
- width: 100%;
+ margin: 10vh auto;
+ transform: scale(1, 1);
+ transition: width .216s ease;
+ width: 80vw;
}
.browser .browser-header {
background: #f8f8f8;
@@ -46,7 +42,7 @@
.browser .navbar-section {
flex: 1 0 33.33%;
}
-.mobile .browser .navbar-section-btns {
+.mobile .navbar-section-btns {
display: none;
}
.browser .browser-header .btn-refresh {
@@ -84,14 +80,19 @@
border-top-left-radius: 0;
border-top-right-radius: 0;
flex: 1 1 auto;
- height: auto;
+ height: 100%;
+ overflow-y: auto;
position: relative;
width: 100%;
+ -webkit-overflow-scrolling: touch;
}
.browser .browser-body iframe {
bottom: 0;
- height: 100%;
left: 0;
+ max-height: 100%;
+ max-width: 100%;
+ min-height: 100%;
+ min-width: 100%;
position: absolute;
right: 0;
top: 0;