From dfee6ffaca9e2f9c09d1c3bca32b6d2649d1c110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Wed, 11 Jan 2017 14:38:35 +0100 Subject: [PATCH] Systemtags scss optimisation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/css/systemtags.scss | 50 +++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 29 deletions(-) diff --git a/core/css/systemtags.scss b/core/css/systemtags.scss index adbd36ebab..1ae2671010 100644 --- a/core/css/systemtags.scss +++ b/core/css/systemtags.scss @@ -1,10 +1,7 @@ -/* - * Copyright (c) 2016 +/** + * @copyright Copyright (c) 2017 * - * This file is licensed under the Affero General Public License version 3 - * or later. - * - * See the COPYING-README file. + * @license GNU AGPL version 3 or any later version * */ @@ -44,17 +41,16 @@ width: calc(100% - 40px); } } -} - -.systemtags-select2-container { - width: 100%; -} - -#select2-drop.systemtags-select2-dropdown .select2-results li.select2-result { - padding: 5px; -} - -.systemtags-select2-dropdown { + .label { + width: 85%; + display: -moz-inline-box; + display: inline-block; + overflow: hidden; + text-overflow: ellipsis; + &.hidden { + display: none; + } + } span { line-height: 25px; } @@ -68,17 +64,13 @@ } } -.systemtags-select2-container .select2-choices .select2-search-choice.select2-locked .label { - opacity: 0.5; -} - -.systemtags-select2-dropdown .label { - width: 85%; - display: -moz-inline-box; - display: inline-block; - overflow: hidden; - text-overflow: ellipsis; - &.hidden { - display: none; +.systemtags-select2-container { + width: 100%; + .select2-choices .select2-search-choice.select2-locked .label { + opacity: 0.5; } } + +#select2-drop.systemtags-select2-dropdown .select2-results li.select2-result { + padding: 5px; +}