]> _ Git - fluidbook-v3.git/commitdiff
WIP #672 @2
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 6 Sep 2016 14:21:51 +0000 (14:21 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 6 Sep 2016 14:21:51 +0000 (14:21 +0000)
less/002-common.less

index 48d46951d2bdb16bccc80e25cd60a5ea8e514883..d10cf89b94d93bb9aac14b56a3d29323e6b0cbab 100644 (file)
@@ -33,6 +33,19 @@ body {
        box-shadow: none;\r
 }\r
 \r
+// When the popup is open, freeze the background so it doesn't scroll\r
+// This is so we don't have problems with touch devices\r
+body.popupOpen {\r
+       position: fixed;\r
+       height: 100%;\r
+       width: 100%;\r
+       overflow: hidden;\r
+}\r
+.popupWindow {\r
+       -webkit-overflow-scrolling: touch;\r
+       background-color: #fff; // For some reason this is needed when using -webkit-overflow-scrolling or background is missing at bottom\r
+}\r
+\r
 main {\r
        background-color: #fff;\r
        max-width: @content-max-width;\r