2013-06-11 16:02:30 +00:00
|
|
|
/* Copyright (c) 2011, Jan-Christoph Borchardt, http: //jancborchardt.net
|
2013-06-11 16:01:50 +00:00
|
|
|
This file is licensed under the Affero General Public License version 3 or later.
|
|
|
|
See the COPYING-README file. */
|
2012-04-23 12:19:03 +00:00
|
|
|
|
2013-06-11 16:01:50 +00:00
|
|
|
ul.multiselectoptions {
|
2013-06-11 16:02:30 +00:00
|
|
|
background-color: #fff;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-top: none;
|
|
|
|
box-shadow: 0 1px 1px #ddd;
|
2013-10-06 18:31:29 +00:00
|
|
|
padding-top: 8px;
|
2013-06-11 16:02:30 +00:00
|
|
|
position: absolute;
|
|
|
|
max-height: 20em;
|
|
|
|
overflow-y: auto;
|
|
|
|
z-index: 49;
|
2013-06-11 16:01:50 +00:00
|
|
|
}
|
2012-10-24 11:09:05 +00:00
|
|
|
|
2013-06-11 16:01:50 +00:00
|
|
|
ul.multiselectoptions.down {
|
2013-10-06 18:31:29 +00:00
|
|
|
border-bottom-left-radius: 8px;
|
|
|
|
border-bottom-right-radius: 8px;
|
2013-06-11 16:04:11 +00:00
|
|
|
width: 100%; /* do not cut off group names */
|
2013-06-11 16:04:33 +00:00
|
|
|
-webkit-box-shadow: 0px 0px 20px rgba(29,45,68,.4);
|
|
|
|
-moz-box-shadow: 0px 0px 20px rgba(29,45,68,.4);
|
|
|
|
box-shadow: 0px 0px 20px rgba(29,45,68,.4);
|
2013-06-11 16:01:50 +00:00
|
|
|
}
|
2012-12-03 17:56:15 +00:00
|
|
|
|
2013-06-11 16:01:50 +00:00
|
|
|
ul.multiselectoptions.up {
|
2013-10-06 18:31:29 +00:00
|
|
|
border-top-left-radius: 8px;
|
|
|
|
border-top-right-radius: 8px;
|
2013-06-11 16:01:50 +00:00
|
|
|
}
|
2012-12-03 17:56:15 +00:00
|
|
|
|
2013-06-11 16:01:50 +00:00
|
|
|
ul.multiselectoptions>li {
|
2013-06-11 16:02:30 +00:00
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
2013-06-11 16:01:50 +00:00
|
|
|
}
|
2012-10-24 11:09:05 +00:00
|
|
|
|
2015-09-22 14:00:14 +00:00
|
|
|
ul.multiselectoptions > li > input[type="checkbox"]+label:before {
|
|
|
|
margin-left: 7px;
|
2013-06-11 16:08:47 +00:00
|
|
|
}
|
|
|
|
ul.multiselectoptions > li 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 */
|
|
|
|
}
|
|
|
|
ul.multiselectoptions > li input[type='checkbox']:checked+label {
|
|
|
|
font-weight: bold;
|
2013-06-11 16:01:50 +00:00
|
|
|
}
|
2013-04-23 13:34:16 +00:00
|
|
|
|
2014-02-03 17:00:39 +00:00
|
|
|
div.multiselect, select.multiselect {
|
2013-06-11 16:02:30 +00:00
|
|
|
display: inline-block;
|
2014-05-09 09:09:31 +00:00
|
|
|
max-width: 200px;
|
2015-05-01 17:51:01 +00:00
|
|
|
min-width: 150px !important;
|
2013-10-06 18:31:29 +00:00
|
|
|
padding-right: 10px;
|
2013-11-14 13:26:48 +00:00
|
|
|
min-height: 20px;
|
2013-06-11 16:02:30 +00:00
|
|
|
position: relative;
|
|
|
|
vertical-align: bottom;
|
2013-06-11 16:01:50 +00:00
|
|
|
}
|
2012-10-24 11:09:05 +00:00
|
|
|
|
2014-02-03 17:00:39 +00:00
|
|
|
/* To make a select look like a multiselect until it's initialized */
|
|
|
|
select.multiselect {
|
|
|
|
height: 30px;
|
|
|
|
min-width: 113px;
|
|
|
|
}
|
|
|
|
|
2013-06-11 16:01:50 +00:00
|
|
|
div.multiselect.active {
|
2013-06-11 16:02:30 +00:00
|
|
|
background-color: #fff;
|
|
|
|
position: relative;
|
|
|
|
z-index: 50;
|
2013-06-11 16:01:50 +00:00
|
|
|
}
|
2012-12-03 17:56:15 +00:00
|
|
|
|
2013-06-11 16:01:50 +00:00
|
|
|
div.multiselect.up {
|
2013-06-11 16:02:30 +00:00
|
|
|
border-top: 0 none;
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
2013-06-11 16:01:50 +00:00
|
|
|
}
|
2012-12-03 17:56:15 +00:00
|
|
|
|
2013-06-11 16:01:50 +00:00
|
|
|
div.multiselect.down {
|
2013-06-11 16:02:30 +00:00
|
|
|
border-bottom: none;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
2013-06-11 16:01:50 +00:00
|
|
|
}
|
2012-10-24 11:09:05 +00:00
|
|
|
|
2013-06-11 16:01:50 +00:00
|
|
|
div.multiselect>span:first-child {
|
2013-06-11 16:02:30 +00:00
|
|
|
float: left;
|
2013-10-06 18:31:29 +00:00
|
|
|
margin-right: 32px;
|
2013-06-11 16:02:30 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
width: 90%;
|
2015-05-12 13:39:18 +00:00
|
|
|
white-space: nowrap;
|
2013-06-11 16:01:50 +00:00
|
|
|
}
|
2012-10-24 11:09:05 +00:00
|
|
|
|
2013-06-11 16:01:50 +00:00
|
|
|
div.multiselect>span:last-child {
|
2013-06-11 16:02:30 +00:00
|
|
|
position: absolute;
|
2015-09-02 22:27:07 +00:00
|
|
|
right: 8px;
|
|
|
|
top: 8px;
|
2013-06-11 16:01:50 +00:00
|
|
|
}
|
2012-10-24 11:09:05 +00:00
|
|
|
|
2013-06-11 16:01:50 +00:00
|
|
|
ul.multiselectoptions input.new {
|
2013-10-06 18:31:29 +00:00
|
|
|
padding-bottom: 3px;
|
|
|
|
padding-top: 3px;
|
2013-06-11 16:02:30 +00:00
|
|
|
margin: 0;
|
2013-06-11 16:01:50 +00:00
|
|
|
}
|
2013-06-11 16:21:13 +00:00
|
|
|
|
|
|
|
ul.multiselectoptions > li.creator {
|
|
|
|
padding: 10px;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
ul.multiselectoptions > li.creator > input {
|
|
|
|
width: 95% !important; /* do not constrain size of text input */
|
|
|
|
padding: 5px;
|
|
|
|
margin: -5px;
|
|
|
|
}
|
2013-08-01 16:59:32 +00:00
|
|
|
|
|
|
|
.ie8 div.multiselect span:first-child {
|
|
|
|
display:block;
|
|
|
|
position:relative;
|
|
|
|
width: 90%;
|
|
|
|
margin-right:-1px;
|
|
|
|
}
|