Blame view

sources/core/css/multiselect.css 2.31 KB
31b7f2792   Kload   Upgrade to ownclo...
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   Kload   Init
4

31b7f2792   Kload   Upgrade to ownclo...
5
6
7
8
9
10
11
12
13
14
15
  ul.multiselectoptions {
  	background-color: #fff;
  	border: 1px solid #ddd;
  	border-top: none;
  	box-shadow: 0 1px 1px #ddd;
  	padding-top: .5em;
  	position: absolute;
  	max-height:  20em;
  	overflow-y:  auto;
  	z-index: 49;
  }
03e52840d   Kload   Init
16

31b7f2792   Kload   Upgrade to ownclo...
17
18
19
20
21
22
23
24
  ul.multiselectoptions.down {
  	border-bottom-left-radius: .5em;
  	border-bottom-right-radius: .5em;
  	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   Kload   Init
25

31b7f2792   Kload   Upgrade to ownclo...
26
27
28
29
  ul.multiselectoptions.up {
  	border-top-left-radius: .5em;
  	border-top-right-radius: .5em;
  }
03e52840d   Kload   Init
30

31b7f2792   Kload   Upgrade to ownclo...
31
32
33
34
  ul.multiselectoptions>li {
  	overflow: hidden;
  	white-space: nowrap;
  }
03e52840d   Kload   Init
35

31b7f2792   Kload   Upgrade to ownclo...
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   Kload   Init
50

31b7f2792   Kload   Upgrade to ownclo...
51
52
53
54
55
56
57
58
59
  div.multiselect {
  	display: inline-block;
  	max-width: 400px;
  	min-width: 150px;
  	min-height: 20px;
  	padding-right: .6em;
  	position: relative;
  	vertical-align: bottom;
  }
03e52840d   Kload   Init
60

31b7f2792   Kload   Upgrade to ownclo...
61
62
63
64
65
  div.multiselect.active {
  	background-color: #fff;
  	position: relative;
  	z-index: 50;
  }
03e52840d   Kload   Init
66

31b7f2792   Kload   Upgrade to ownclo...
67
68
69
70
71
  div.multiselect.up {
  	border-top: 0 none;
  	border-top-left-radius: 0;
  	border-top-right-radius: 0;
  }
03e52840d   Kload   Init
72

31b7f2792   Kload   Upgrade to ownclo...
73
74
75
76
77
  div.multiselect.down {
  	border-bottom: none;
  	border-bottom-left-radius: 0;
  	border-bottom-right-radius: 0;
  }
03e52840d   Kload   Init
78

31b7f2792   Kload   Upgrade to ownclo...
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
  div.multiselect>span:first-child {
  	float: left;
  	margin-right: 2em;
  	overflow: hidden;
  	text-overflow: ellipsis;
  	width: 90%;
  }
  
  div.multiselect>span:last-child {
  	position: absolute;
  	right: .8em;
  }
  
  ul.multiselectoptions input.new {
  	padding-bottom: .2em;
  	padding-top: .2em;
  	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   Kload   Init
107

03e52840d   Kload   Init
108
109
110
111
112
  .ie8 div.multiselect span:first-child {
  	display:block;
  	position:relative;
  	width: 90%;
  	margin-right:-1px;
31b7f2792   Kload   Upgrade to ownclo...
113
  }