]> git.proxmox.com Git - extjs.git/blame - extjs/classic/theme-base/sass/src/plugin/Viewport.scss
add extjs 6.0.1 sources
[extjs.git] / extjs / classic / theme-base / sass / src / plugin / Viewport.scss
CommitLineData
6527f429
DM
1.#{$prefix}viewport,\r
2.#{$prefix}viewport > .#{$prefix}body {\r
3 margin: 0;\r
4 padding: 0;\r
5 border: 0 none;\r
6 overflow: hidden;\r
7 position: static;\r
8 // For devices that have pointer events, touch-action:none prevents the default\r
9 // touch action, such as pan/zoom from occurring. This style is absolutely\r
10 // required in order for the Gesture publisher to work correctly on browsers that\r
11 // support pointer events. Without it, a pointercancel event will fire as soon as the\r
12 // touch is moved, and so pointermove will never fire while dragging a finger across\r
13 // the screen. This also prevents overflowing containers from scrolling using touch\r
14 // and so we must enable "partial" touch scrolling in IE10+ (see Ext.supports.touchScroll)\r
15 // See http://www.w3.org/TR/pointerevents/#the-touch-action-css-property\r
16 touch-action: none;\r
17 // IE10 needs the -ms prefix, IE11+ does not\r
18 -ms-touch-action: none;\r
19}\r
20\r
21.#{$prefix}viewport {\r
22 // the viewport must have an explicit height so that we can make the body fill the\r
23 // viewport height (see below)\r
24 height: 100%;\r
25}\r
26\r
27.#{$prefix}viewport > .#{$prefix}body {\r
28 // min-height ensures that the body element fills the viewport if its content is smaller\r
29 // than the viewport (when using an auto layout on the viewport), while allowing the\r
30 // body element to expand in height if the content does not fit within the viewport.\r
31 min-height: 100%;\r
32}