UNPKG

3.24 kBCSSView Raw
1/**
2 * @author zhixin wen <wenzhixin2010@gmail.com>
3 */
4.ms-parent {
5 display: inline-block;
6 position: relative;
7 vertical-align: middle;
8}
9
10.ms-choice {
11 display: block;
12 width: 100%;
13 height: 26px;
14 padding: 0;
15 overflow: hidden;
16 cursor: pointer;
17 border: 1px solid #aaa;
18 text-align: left;
19 white-space: nowrap;
20 line-height: 26px;
21 color: #444;
22 text-decoration: none;
23 border-radius: 4px;
24 background-color: #fff;
25}
26.ms-choice.disabled {
27 background-color: #f4f4f4;
28 background-image: none;
29 border: 1px solid #ddd;
30 cursor: default;
31}
32.ms-choice > span {
33 position: absolute;
34 top: 0;
35 left: 0;
36 right: 20px;
37 white-space: nowrap;
38 overflow: hidden;
39 text-overflow: ellipsis;
40 display: block;
41 padding-left: 8px;
42}
43.ms-choice > span.placeholder {
44 color: #999;
45}
46.ms-choice > div {
47 position: absolute;
48 width: 0;
49 height: 0;
50 top: 50%;
51 right: 8px;
52 margin-top: -2px;
53 border-color: #888 transparent transparent transparent;
54 border-style: solid;
55 border-width: 5px 4px 0 4px;
56}
57.ms-choice > div.open {
58 border-color: transparent transparent #888 transparent;
59 border-width: 0 4px 5px 4px;
60}
61
62.ms-drop {
63 width: auto;
64 min-width: 100%;
65 overflow: hidden;
66 display: none;
67 margin-top: -1px;
68 padding: 0;
69 position: absolute;
70 z-index: 1000;
71 background: #fff;
72 color: #000;
73 border: 1px solid #aaa;
74 border-radius: 4px;
75}
76.ms-drop.bottom {
77 top: 100%;
78 box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
79}
80.ms-drop.top {
81 bottom: 100%;
82 box-shadow: 0 -4px 5px rgba(0, 0, 0, 0.15);
83}
84
85.ms-search {
86 display: inline-block;
87 margin: 0;
88 min-height: 26px;
89 padding: 2px;
90 position: relative;
91 white-space: nowrap;
92 width: 100%;
93 z-index: 10000;
94 box-sizing: border-box;
95}
96.ms-search input {
97 width: 100%;
98 height: auto !important;
99 min-height: 24px;
100 padding: 0 5px;
101 margin: 0;
102 outline: 0;
103 font-family: sans-serif;
104 border: 1px solid #aaa;
105 border-radius: 5px;
106 box-shadow: none;
107}
108
109.ms-drop ul {
110 overflow: auto;
111 margin: 0;
112 padding: 5px 0;
113}
114.ms-drop ul > li {
115 list-style: none;
116 display: list-item;
117 background-image: none;
118 position: static;
119 padding: 0 8px;
120}
121.ms-drop ul > li .disabled {
122 opacity: 0.35;
123 filter: Alpha(Opacity=35);
124}
125.ms-drop ul > li.multiple {
126 display: block;
127 float: left;
128}
129.ms-drop ul > li.group {
130 clear: both;
131}
132.ms-drop ul > li.multiple label {
133 width: 100%;
134 display: block;
135 white-space: nowrap;
136 overflow: hidden;
137 text-overflow: ellipsis;
138}
139.ms-drop ul > li label {
140 font-weight: normal;
141 display: block;
142 white-space: nowrap;
143 cursor: pointer;
144}
145.ms-drop ul > li label.optgroup {
146 font-weight: bold;
147}
148.ms-drop ul > li.hide-radio {
149 padding: 0;
150}
151.ms-drop ul > li.hide-radio:focus, .ms-drop ul > li.hide-radio:hover {
152 background-color: #f8f9fa;
153}
154.ms-drop ul > li.hide-radio.selected {
155 color: #fff;
156 background-color: #007bff;
157}
158.ms-drop ul > li.hide-radio label {
159 margin-bottom: 0;
160 padding: 5px 8px;
161}
162.ms-drop ul > li.hide-radio input {
163 display: none;
164}
165.ms-drop ul > li.option-level-1 label {
166 padding-left: 28px;
167}
168.ms-drop input[type=radio], .ms-drop input[type=checkbox] {
169 margin: 5px;
170}
171.ms-drop .ms-no-results {
172 display: none;
173}
174
175/*# sourceMappingURL=multiple-select.css.map */