From 52d9ae146bab0a490f2670a3d1774333ce66f6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 18 Sep 2018 13:15:54 +0200 Subject: [PATCH] scss: add support for new widget properties to (#26516) --- static/includes/_forms.scss | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/static/includes/_forms.scss b/static/includes/_forms.scss index 2e7214c6..c8690610 100644 --- a/static/includes/_forms.scss +++ b/static/includes/_forms.scss @@ -239,30 +239,47 @@ div.select2-container, span.select2-container { min-width: 20em; margin: 0.2em 0; + padding-bottom: 1px; a.select2-choice { padding: 0.2ex 0.7em; } span.select2-selection--single, a.select2-choice, a.select2-choice div { - background: white; + box-sizing: content-box; + padding: 0.3ex 0 0.3ex 0; + background: $widget-background; border-radius: 0; + border: $widget-border; + } + &.select2-container--focus, + &.select2-container--open { + span.select2-selection--single, + a.select2-choice, + a.select2-choice div { + background: $widget-focus-background; + border: $widget-focus-border; + } } .select2-choices, .select2-choice { box-shadow: none; } + .select2-search--dropdown input, + .select2-search--dropdown input:active, + .select2-search--dropdown input:focus { + background: white; + border: 1px solid #ccc; + } + .select2-selection--single .select2-selection__arrow { + top: 0.5rem; + } } + div.select2-container.select2-drop-above .select2-choice { background: white; border-radius: 0; } -div.select2-container-active { - a.select2-choices, - a.select2-choice { - border: 1px solid #AAA; - } -} div.select2-drop { box-shadow: none; -- 2.19.0