From 21c4e38eec9a9374eb1b8e52fa963a204c37e870 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 29 Aug 2017 14:31:03 +0200 Subject: [PATCH] clean select-box css --- .../common/components/select-box.scss | 48 +++---------------- 1 file changed, 6 insertions(+), 42 deletions(-) diff --git a/app/assets/stylesheets/common/components/select-box.scss b/app/assets/stylesheets/common/components/select-box.scss index cce6232fbe7..8c93b34c186 100644 --- a/app/assets/stylesheets/common/components/select-box.scss +++ b/app/assets/stylesheets/common/components/select-box.scss @@ -82,7 +82,9 @@ cursor: pointer; outline: none; display: flex; - align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; justify-content: space-between; &.is-focused { @@ -100,12 +102,15 @@ } .select-box-row { + margin: 5px; + min-height: 1px; cursor: pointer; outline: none; padding: 5px; display: -webkit-box; display: -ms-flexbox; display: flex; + align-items: center; -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; @@ -218,9 +223,6 @@ } .select-box .select-box-row { - margin: 5px; - min-height: 1px; - .text { margin: 0; } @@ -281,41 +283,3 @@ left: 0px; top: 0px; } - -.select-box.discourse { - .select-box-header { - border: 1px solid dark-light-diff($primary, $secondary, 90%, -60%); - border-radius: 3px; - - &.is-focused { - border: 1px solid $tertiary; - border-radius: 3px; - box-shadow: $tertiary 0px 0px 6px 0px; - } - } - - &.is-expanded { - .select-box-header { - border-radius: 3px 3px 0 0; - } - - .select-box-body, .collection, { - border-radius: 0 0 3px 3px; - } - - .select-box-wrapper { - border: 1px solid $tertiary; - border-radius: 3px; - box-shadow: $tertiary 0px 0px 6px 0px; - } - } - - .select-box-row { - margin: 5px; - } - - &.is-highlighted .select-box-header { - border: 1px solid $tertiary; - box-shadow: $tertiary 0px 0px 6px 0px; - } -}