summaryrefslogtreecommitdiffstats
path: root/core/css/multiselect.scss
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-01-11 14:22:19 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-01-11 14:22:19 +0100
commit8317a71feecd913c2c2c0249b8c382769e52a860 (patch)
tree76891ef841e897b08347c65b44e2c3adedf650d4 /core/css/multiselect.scss
parentc4e51fd0557728a18a689d1160e00a09dfc6e789 (diff)
downloadnextcloud-server-8317a71feecd913c2c2c0249b8c382769e52a860.tar.gz
nextcloud-server-8317a71feecd913c2c2c0249b8c382769e52a860.zip
Multiselect scss optimisation
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/css/multiselect.scss')
-rw-r--r--core/css/multiselect.scss55
1 files changed, 24 insertions, 31 deletions
diff --git a/core/css/multiselect.scss b/core/css/multiselect.scss
index ea7a481f360..024e5818a40 100644
--- a/core/css/multiselect.scss
+++ b/core/css/multiselect.scss
@@ -1,6 +1,9 @@
-/* Copyright (c) 2011, Jan-Christoph Borchardt, http: //jancborchardt.net
-This file is licensed under the Affero General Public License version 3 or later.
-See the COPYING-README file. */
+/**
+ * @copyright Copyright (c) 2011, Jan-Christoph Borchardt <hey@jancborchardt.net>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ */
ul.multiselectoptions {
background-color: #fff;
@@ -45,9 +48,26 @@ ul.multiselectoptions {
}
}
}
+ input.new {
+ padding-bottom: 3px;
+ padding-top: 3px;
+ margin: 0;
+ }
+ > li.creator {
+ padding: 10px;
+ margin: 0;
+ font-weight: bold;
+ > input {
+ width: 95% !important;
+ /* do not constrain size of text input */
+ padding: 5px;
+ margin: -5px;
+ }
+ }
}
-div.multiselect {
+div.multiselect,
+select.multiselect {
display: inline-block;
max-width: 200px;
min-width: 150px !important;
@@ -58,19 +78,11 @@ div.multiselect {
}
select.multiselect {
- display: inline-block;
- max-width: 200px;
- min-width: 150px !important;
- padding-right: 10px;
- min-height: 20px;
- position: relative;
- vertical-align: bottom;
height: 30px;
min-width: 113px;
}
/* To make a select look like a multiselect until it's initialized */
-
div.multiselect {
&.active {
background-color: #fff;
@@ -103,22 +115,3 @@ div.multiselect {
}
}
}
-
-ul.multiselectoptions {
- input.new {
- padding-bottom: 3px;
- padding-top: 3px;
- margin: 0;
- }
- > li.creator {
- padding: 10px;
- margin: 0;
- font-weight: bold;
- > input {
- width: 95% !important;
- /* do not constrain size of text input */
- padding: 5px;
- margin: -5px;
- }
- }
-}