Blame view
sources/core/css/multiselect.css
2.45 KB
|
31b7f2792
|
1 2 3 |
/* 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. */ |
|
03e52840d
|
4 |
|
|
31b7f2792
|
5 6 7 8 9 |
ul.multiselectoptions {
background-color: #fff;
border: 1px solid #ddd;
border-top: none;
box-shadow: 0 1px 1px #ddd;
|
|
6d9380f96
|
10 |
padding-top: 8px; |
|
31b7f2792
|
11 12 13 14 15 |
position: absolute; max-height: 20em; overflow-y: auto; z-index: 49; } |
|
03e52840d
|
16 |
|
|
31b7f2792
|
17 |
ul.multiselectoptions.down {
|
|
6d9380f96
|
18 19 |
border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; |
|
31b7f2792
|
20 21 22 23 24 |
width: 100%; /* do not cut off group names */ -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); } |
|
03e52840d
|
25 |
|
|
31b7f2792
|
26 |
ul.multiselectoptions.up {
|
|
6d9380f96
|
27 28 |
border-top-left-radius: 8px; border-top-right-radius: 8px; |
|
31b7f2792
|
29 |
} |
|
03e52840d
|
30 |
|
|
31b7f2792
|
31 32 33 34 |
ul.multiselectoptions>li {
overflow: hidden;
white-space: nowrap;
}
|
|
03e52840d
|
35 |
|
|
31b7f2792
|
36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
ul.multiselectoptions > li > input[type="checkbox"] {
margin: 10px 7px;
vertical-align: middle;
}
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;
}
|
|
03e52840d
|
50 |
|
|
a293d369c
|
51 |
div.multiselect, select.multiselect {
|
|
31b7f2792
|
52 |
display: inline-block; |
|
6d9380f96
|
53 |
max-width: 200px; |
|
31b7f2792
|
54 |
min-width: 150px; |
|
6d9380f96
|
55 |
padding-right: 10px; |
|
31b7f2792
|
56 |
min-height: 20px; |
|
31b7f2792
|
57 58 59 |
position: relative; vertical-align: bottom; } |
|
03e52840d
|
60 |
|
|
a293d369c
|
61 62 63 64 65 |
/* To make a select look like a multiselect until it's initialized */
select.multiselect {
height: 30px;
min-width: 113px;
}
|
|
31b7f2792
|
66 67 68 69 70 |
div.multiselect.active {
background-color: #fff;
position: relative;
z-index: 50;
}
|
|
03e52840d
|
71 |
|
|
31b7f2792
|
72 73 74 75 76 |
div.multiselect.up {
border-top: 0 none;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
|
|
03e52840d
|
77 |
|
|
31b7f2792
|
78 79 80 81 82 |
div.multiselect.down {
border-bottom: none;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
|
|
03e52840d
|
83 |
|
|
31b7f2792
|
84 85 |
div.multiselect>span:first-child {
float: left;
|
|
6d9380f96
|
86 |
margin-right: 32px; |
|
31b7f2792
|
87 88 89 90 91 92 93 |
overflow: hidden;
text-overflow: ellipsis;
width: 90%;
}
div.multiselect>span:last-child {
position: absolute;
|
|
6d9380f96
|
94 |
right: 13px; |
|
31b7f2792
|
95 96 97 |
}
ul.multiselectoptions input.new {
|
|
6d9380f96
|
98 99 |
padding-bottom: 3px; padding-top: 3px; |
|
31b7f2792
|
100 101 102 103 104 105 106 107 108 109 110 111 |
margin: 0;
}
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;
}
|
|
03e52840d
|
112 |
|
|
03e52840d
|
113 114 115 116 117 |
.ie8 div.multiselect span:first-child {
display:block;
position:relative;
width: 90%;
margin-right:-1px;
|
|
31b7f2792
|
118 |
} |