From acd39f86e00ad6a2e87d2b78eda2542d3d3b10fc Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Tue, 6 Sep 2016 14:21:51 +0000 Subject: [PATCH] WIP #672 @2 --- less/002-common.less | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/less/002-common.less b/less/002-common.less index 48d4695..d10cf89 100644 --- a/less/002-common.less +++ b/less/002-common.less @@ -33,6 +33,19 @@ body { box-shadow: none; } +// When the popup is open, freeze the background so it doesn't scroll +// This is so we don't have problems with touch devices +body.popupOpen { + position: fixed; + height: 100%; + width: 100%; + overflow: hidden; +} +.popupWindow { + -webkit-overflow-scrolling: touch; + background-color: #fff; // For some reason this is needed when using -webkit-overflow-scrolling or background is missing at bottom +} + main { background-color: #fff; max-width: @content-max-width; -- 2.39.5