2017-01-11 16:22:19 +03:00
|
|
|
/**
|
2017-01-25 16:13:28 +03:00
|
|
|
* @copyright Copyright (c) 2016, John Molakvoæ <skjnldsv@protonmail.com>
|
|
|
|
* @copyright Copyright (c) 2016, Julius Haertl <jus@bitgrid.net>
|
|
|
|
* @copyright Copyright (c) 2016, Sergio Bertolín <sbertolin@solidgear.es>
|
|
|
|
* @copyright Copyright (c) 2015, Hendrik Leppelsack <hendrik@leppelsack.de>
|
|
|
|
* @copyright Copyright (c) 2014, Vincent Petry <pvince81@owncloud.com>
|
|
|
|
* @copyright Copyright (c) 2013, Vincent Petry <pvince81@owncloud.com>
|
|
|
|
* @copyright Copyright (c) 2013, raghunayyar <me@iraghu.com>
|
|
|
|
* @copyright Copyright (c) 2013, Victor Dubiniuk <victor.dubiniuk@gmail.com>
|
|
|
|
* @copyright Copyright (c) 2013, kondou <kondou@ts.unde.re>
|
|
|
|
* @copyright Copyright (c) 2012, Thomas Tanghus <thomas@tanghus.net>
|
|
|
|
* @copyright Copyright (c) 2012, Lukas Reschke <lukas@statuscode.ch>
|
|
|
|
* @copyright Copyright (c) 2012, Jan-Christoph Borchardt <hey@jancborchardt.net>
|
2017-01-11 16:22:19 +03:00
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
*/
|
2016-12-22 13:17:39 +03:00
|
|
|
|
|
|
|
ul.multiselectoptions {
|
2017-02-19 21:49:39 +03:00
|
|
|
background-color: $color-main-background;
|
|
|
|
border: 1px solid $color-primary;
|
2016-12-22 13:17:39 +03:00
|
|
|
border-top: none;
|
2017-02-19 21:49:39 +03:00
|
|
|
box-shadow: 0 1px 10px $color-box-shadow;
|
2016-12-22 13:17:39 +03:00
|
|
|
padding-top: 8px;
|
|
|
|
position: absolute;
|
|
|
|
max-height: 20em;
|
|
|
|
overflow-y: auto;
|
2017-12-21 14:06:18 +03:00
|
|
|
z-index: 149;
|
2016-12-22 13:17:39 +03:00
|
|
|
&.down {
|
2017-02-19 21:49:39 +03:00
|
|
|
border-bottom-left-radius: 3px;
|
|
|
|
border-bottom-right-radius: 3px;
|
2016-12-22 13:17:39 +03:00
|
|
|
width: 100%;
|
|
|
|
/* do not cut off group names */
|
2017-02-19 21:49:39 +03:00
|
|
|
box-shadow: 0 1px 10px $color-box-shadow;
|
2016-12-22 13:17:39 +03:00
|
|
|
}
|
|
|
|
&.up {
|
2017-02-19 21:49:39 +03:00
|
|
|
border-top-left-radius: 3px;
|
|
|
|
border-top-right-radius: 3px;
|
2016-12-22 13:17:39 +03:00
|
|
|
}
|
|
|
|
> li {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
margin-left: 7px;
|
|
|
|
input[type='checkbox'] {
|
|
|
|
+ label {
|
|
|
|
font-weight: normal;
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 5px 27px;
|
|
|
|
margin-left: -27px;
|
|
|
|
/* to have area around checkbox clickable as well */
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
&:checked + label {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-01-11 16:22:19 +03:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
2016-12-22 13:17:39 +03:00
|
|
|
}
|
|
|
|
|
2018-05-18 17:39:34 +03:00
|
|
|
/* TODO drop old legacy multiselect! */
|
|
|
|
div.multiselect:not(.multiselect-vue),
|
|
|
|
select.multiselect:not(.multiselect-vue) {
|
2016-12-22 13:17:39 +03:00
|
|
|
display: inline-block;
|
|
|
|
max-width: 200px;
|
|
|
|
min-width: 150px !important;
|
|
|
|
padding-right: 10px;
|
|
|
|
min-height: 20px;
|
|
|
|
position: relative;
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
|
|
|
|
select.multiselect {
|
|
|
|
height: 30px;
|
|
|
|
min-width: 113px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* To make a select look like a multiselect until it's initialized */
|
|
|
|
div.multiselect {
|
|
|
|
&.active {
|
2017-02-19 21:49:39 +03:00
|
|
|
background-color: $color-main-background;
|
2016-12-22 13:17:39 +03:00
|
|
|
position: relative;
|
2017-12-21 14:06:18 +03:00
|
|
|
z-index: 150;
|
2016-12-22 13:17:39 +03:00
|
|
|
}
|
|
|
|
&.up {
|
|
|
|
border-top: 0 none;
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
|
|
|
&.down {
|
|
|
|
border-bottom: none;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
> span {
|
|
|
|
&:first-child {
|
|
|
|
float: left;
|
|
|
|
margin-right: 32px;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
width: 90%;
|
|
|
|
white-space: nowrap;
|
2017-12-21 14:06:18 +03:00
|
|
|
line-height: 20px;
|
2016-12-22 13:17:39 +03:00
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
position: absolute;
|
|
|
|
right: 8px;
|
|
|
|
top: 8px;
|
2017-12-21 14:06:18 +03:00
|
|
|
padding: 0 !important;
|
|
|
|
min-width: 16px;
|
|
|
|
min-height: 16px;
|
|
|
|
background-position: center;
|
2016-12-22 13:17:39 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|