Browse Source

Fix scroll for same devices, e.g. Motorola Defy

Author: Romulo Pereira (romuloccomp)
        https://github.com/romuloccomp/ratchet
pull/640/head
Romulo Pereira 11 years ago
parent
commit
5f3db70efc
  1. 17
      dist/css/ratchet.css

17
dist/css/ratchet.css vendored

@ -9,6 +9,13 @@
*/ */
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ /*! normalize.css v3.0.1 | MIT License | git.io/normalize */
/*! Changes
* Fix scroll for same devices, e.g. Motorola Defy
* Author: Romulo Pereira (romuloccomp)
* https://github.com/romuloccomp/ratchet
*/
html { html {
font-family: sans-serif; font-family: sans-serif;
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
@ -257,15 +264,20 @@ a:active {
color: #3071a9; color: #3071a9;
} }
body, .content { position: static; }
.content { .content {
position: absolute; position: static;
top: 0; top: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
left: 0; left: 0;
overflow: auto; overflow: auto;
-webkit-overflow-scrolling: touch; /*-webkit-overflow-scrolling: touch;*/
-webkit-overflow-scrolling: auto; /* @romuloccomp */
padding-top: 44px; /* @romuloccomp */
background-color: #fff; background-color: #fff;
min-height: 400px;
} }
.content > * { .content > * {
@ -449,6 +461,7 @@ p {
padding: 15px 0; padding: 15px 0;
margin-bottom: 10px; margin-bottom: 10px;
font-size: 18px; font-size: 18px;
text-align: center;
} }
input[type="submit"], input[type="submit"],

Loading…
Cancel
Save