From b0815e8ace9f80305d42484dc9628bb770ccf699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 7 Jul 2014 17:35:52 +0200 Subject: [PATCH] BUGFIX: make sure category selector never gets focus on mobile --- app/assets/stylesheets/desktop/compose.scss | 3 --- app/assets/stylesheets/mobile/compose.scss | 15 +++++++-------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/app/assets/stylesheets/desktop/compose.scss b/app/assets/stylesheets/desktop/compose.scss index c548e5f210c..9e96e2f39d2 100644 --- a/app/assets/stylesheets/desktop/compose.scss +++ b/app/assets/stylesheets/desktop/compose.scss @@ -72,9 +72,6 @@ margin-left: 10px; } - - - #reply-control { .toggle-preview, #draft-status, #file-uploading { position: absolute; diff --git a/app/assets/stylesheets/mobile/compose.scss b/app/assets/stylesheets/mobile/compose.scss index 4f39cb769b7..e1f5410da5c 100644 --- a/app/assets/stylesheets/mobile/compose.scss +++ b/app/assets/stylesheets/mobile/compose.scss @@ -13,8 +13,6 @@ display: none; display: none; } - - #reply-control { .composer-bottom-right { position: absolute; @@ -147,7 +145,6 @@ display: none; } .reply-area { max-width: 1500px; - margin-left: auto; margin-right: auto; float: none; } @@ -196,11 +193,6 @@ display: none; @include medium-width { width: 283px; } @include small-width { width: 218px; } } - .select2-search input { - width: 378px; - @include medium-width { width: 233px; } - @include small-width { width: 168px; } - } } } .edit-reason-input, .display-edit-reason { @@ -357,3 +349,10 @@ display: none; display: none; } } + +// make sure the category selector *NEVER* gets focus by default on mobile anywhere +.select2-hidden, +.select2-search, +.select2-focusser { + display:none !important; +}