]> source.dussan.org Git - nextcloud-server.git/commitdiff
Multiselect scss optimisation 3027/head
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Wed, 11 Jan 2017 13:22:19 +0000 (14:22 +0100)
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Wed, 11 Jan 2017 13:22:19 +0000 (14:22 +0100)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
core/css/multiselect.scss

index ea7a481f3604dd795b96236c7beb6ae32cf9c79a..024e5818a406f81f9b7fa7065b9d11f4f687fdb6 100644 (file)
@@ -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;
-               }
-       }
-}