summaryrefslogtreecommitdiffstats
path: root/angular-multi-select.css
blob: 1e69a3141273e29163a360a0f2c6346d7c5ab53b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
.multiSelect {             
}

.multiSelect.inlineBlock {
    display: inline-block;
}

/* button */
.multiSelect .button {
    display: block;
    position: relative;
    margin:0 auto;       
    text-align: center;
    cursor: pointer;
    border: 1px solid #c6c6c6;
    padding: 5px 8px 6px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 2px;
    color: #333;      
   -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none; 
    white-space:normal;
    background-color: #fff;
    background-image: linear-gradient(#fff, #e4e4e4);
    
}

/* button on mouse hover */
.multiSelect .button:hover {
    background-image: linear-gradient(#fff, #eee);    
}

/* helper buttons style (select all, none, reset, clear filter); */
.multiSelect .helperButton {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    cursor: pointer;
    border: 1px solid #ccc;
    padding: 2px 7px;    
    font-size: 14px;
    line-height: 1;
    border-radius: 2px;
    color: #666;    
}

.multiSelect .button > div {
    float: left;        
}

/* The checkboxes container */
.multiSelect .checkboxLayer {
    background-color: #fff;
    position: absolute;
    z-index: 999;
    border: 1px solid #cccccc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    background-clip: padding-box; 
    padding: 14px 0px 7px 14px;
    min-width:270px;
}

/* Downward pointing arrow */
.multiSelect .caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 15px !important;    
    vertical-align: middle;
    border-top: 4px solid #333;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-bottom: 0 dotted;       
}

.multiSelect.multiSelectItem {
    display: block;
    min-height: 30px;    
    color: #777;   
}

.multiSelect .vertical {
    float: none;
}

.multiSelect .horizontal {
    float: left;
}

.multiSelect .acol {
    display: table-cell;    
    line-height: 1.4;  
    min-width: 14px;
}

label.multiSelect span {
    white-space:nowrap;
    margin: 0;
    padding: 0;
    display: inline-block;
   -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;    
}

/* hide the checkbox away */
.multiSelect .checkbox {
    position: absolute;
    left: -9999px;
    cursor: pointer;
}

.multiSelect .show {
    display: inline-block;
}

.multiSelect .hide {
    display: none;
}

.multiSelect .line {   
    margin-bottom: 15px;
}

.multiSelect .helperButton + .helperButton  {
    margin-left: 1px;
}

/* On mouse over and focus */
label.multiSelect input:focus ~ span::after,
label.multiSelect span:focus::after, 
label.multiSelect span:hover::after {     
    /* Enable this if you want some arrow pointer on focus */
    /* content: ' \00AB'; */
}

label.multiSelect input:focus ~ span,
label.multiSelect span:hover {
    color: #333;
    cursor: pointer;        
    /* Enable this if you want some arrow pointer on focus */
    /* content: ' \00AB'; */
}

/* for checkboxes currently selected */
.multiSelect .checkboxSelected {
    color: #000;
    text-shadow: 1px 0px #eee;
}

/* checkboxes currently disabled */
.multiSelect.disabled, .multiSelect.disabled:hover {
    color: #ccc;
    cursor: not-allowed;
}

/* 
 * If you use images in button / checkbox label, you might want to change the image style here.
 */
.multiSelect img {
    vertical-align: middle;
    margin-bottom:0px;
    height: 22px;
    width:22px;
}