Browse Source

Multiselect scss optimisation

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
tags/v12.0.0beta1
John Molakvoæ (skjnldsv) 7 years ago
parent
commit
8317a71fee
No account linked to committer's email address
1 changed files with 24 additions and 31 deletions
  1. 24
    31
      core/css/multiselect.scss

+ 24
- 31
core/css/multiselect.scss View File

/* 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 { ul.multiselectoptions {
background-color: #fff; background-color: #fff;
} }
} }
} }
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; display: inline-block;
max-width: 200px; max-width: 200px;
min-width: 150px !important; min-width: 150px !important;
} }


select.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; height: 30px;
min-width: 113px; min-width: 113px;
} }


/* To make a select look like a multiselect until it's initialized */ /* To make a select look like a multiselect until it's initialized */

div.multiselect { div.multiselect {
&.active { &.active {
background-color: #fff; background-color: #fff;
} }
} }
} }

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;
}
}
}

Loading…
Cancel
Save