From 26c864a301e07c720b159062d2ceed331583b5bb Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Wed, 12 Feb 2014 14:26:39 +0100 Subject: [PATCH] Better fitting settings window when keyboard is opened on android --- less/mobile.less | 7 ------- less/styles.less | 9 +++++++++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/less/mobile.less b/less/mobile.less index 399cce8..82f17b1 100644 --- a/less/mobile.less +++ b/less/mobile.less @@ -46,11 +46,4 @@ margin: 5% 6% 1% 5%; width: 70%; } -} - -/* - SETTINGS POPUP -*/ -#popupSettings { - margin: 2% 2%; } \ No newline at end of file diff --git a/less/styles.less b/less/styles.less index 6c55ef1..1e9aa54 100644 --- a/less/styles.less +++ b/less/styles.less @@ -15,6 +15,15 @@ @import "mobile.less"; } +// TABLET +@media only screen and (max-height: 300px), + only screen and (max-width: 450px) and (min-device-pixel-ratio : 1.5), + only screen and (max-width: 450px) and (-webkit-min-device-pixel-ratio : 1.5) { + #popupSettings { + margin: 2% 2%; + } +} + // PORTRAIT @media only screen and (orientation:portrait) { @import "portrait.less";