UNPKG

4.1 kBCSSView Raw
1@charset "UTF-8";
2/**
3 * @author zhixin wen <wenzhixin2010@gmail.com>
4 */
5.ms-offscreen {
6 clip: rect(0 0 0 0) !important;
7 width: 1px !important;
8 height: 1px !important;
9 border: 0 !important;
10 margin: 0 !important;
11 padding: 0 !important;
12 overflow: hidden !important;
13 position: absolute !important;
14 outline: 0 !important;
15 left: auto !important;
16 top: auto !important;
17}
18
19.ms-parent {
20 display: inline-block;
21 position: relative;
22 vertical-align: middle;
23}
24
25.ms-choice {
26 display: block;
27 width: 100%;
28 height: 26px;
29 padding: 0;
30 overflow: hidden;
31 cursor: pointer;
32 border: 1px solid #aaa;
33 text-align: left;
34 white-space: nowrap;
35 line-height: 26px;
36 color: #444;
37 text-decoration: none;
38 border-radius: 4px;
39 background-color: #fff;
40}
41
42.ms-choice.disabled {
43 background-color: #f4f4f4;
44 background-image: none;
45 border: 1px solid #ddd;
46 cursor: default;
47}
48
49.ms-choice > span {
50 position: absolute;
51 top: 0;
52 left: 0;
53 right: 20px;
54 white-space: nowrap;
55 overflow: hidden;
56 text-overflow: ellipsis;
57 display: block;
58 padding-left: 8px;
59}
60
61.ms-choice > span.placeholder {
62 color: #999;
63}
64
65.ms-choice > div.icon-close {
66 position: absolute;
67 top: 0px;
68 right: 16px;
69 height: 100%;
70 width: 16px;
71}
72
73.ms-choice > div.icon-close:before {
74 content: '×';
75 color: #888;
76 font-weight: bold;
77}
78
79.ms-choice > div.icon-close:hover:before {
80 color: #333;
81}
82
83.ms-choice > div.icon-caret {
84 position: absolute;
85 width: 0;
86 height: 0;
87 top: 50%;
88 right: 8px;
89 margin-top: -2px;
90 border-color: #888 transparent transparent transparent;
91 border-style: solid;
92 border-width: 5px 4px 0 4px;
93}
94
95.ms-choice > div.icon-caret.open {
96 border-color: transparent transparent #888 transparent;
97 border-width: 0 4px 5px 4px;
98}
99
100.ms-drop {
101 width: auto;
102 min-width: 100%;
103 overflow: hidden;
104 display: none;
105 margin-top: -1px;
106 padding: 0;
107 position: absolute;
108 z-index: 1000;
109 background: #fff;
110 color: #000;
111 border: 1px solid #aaa;
112 border-radius: 4px;
113}
114
115.ms-drop.bottom {
116 top: 100%;
117 box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
118}
119
120.ms-drop.top {
121 bottom: 100%;
122 box-shadow: 0 -4px 5px rgba(0, 0, 0, 0.15);
123}
124
125.ms-search {
126 display: inline-block;
127 margin: 0;
128 min-height: 26px;
129 padding: 2px;
130 position: relative;
131 white-space: nowrap;
132 width: 100%;
133 z-index: 10000;
134 box-sizing: border-box;
135}
136
137.ms-search input {
138 width: 100%;
139 height: auto !important;
140 min-height: 24px;
141 padding: 0 5px;
142 margin: 0;
143 outline: 0;
144 font-family: sans-serif;
145 border: 1px solid #aaa;
146 border-radius: 5px;
147 box-shadow: none;
148}
149
150.ms-drop ul {
151 overflow: auto;
152 margin: 0;
153 padding: 0;
154}
155
156.ms-drop ul > li {
157 list-style: none;
158 display: list-item;
159 background-image: none;
160 position: static;
161 padding: .25rem 8px;
162}
163
164.ms-drop ul > li .disabled {
165 font-weight: normal !important;
166 opacity: .35;
167 filter: Alpha(Opacity=35);
168 cursor: default;
169}
170
171.ms-drop ul > li.multiple {
172 display: block;
173 float: left;
174}
175
176.ms-drop ul > li.group {
177 clear: both;
178}
179
180.ms-drop ul > li.multiple label {
181 width: 100%;
182 display: block;
183 white-space: nowrap;
184 overflow: hidden;
185 text-overflow: ellipsis;
186}
187
188.ms-drop ul > li label {
189 position: relative;
190 padding-left: 1.25rem;
191 margin-bottom: 0;
192 font-weight: normal;
193 display: block;
194 white-space: nowrap;
195 cursor: pointer;
196}
197
198.ms-drop ul > li label.optgroup {
199 font-weight: bold;
200}
201
202.ms-drop ul > li.hide-radio {
203 padding: 0;
204}
205
206.ms-drop ul > li.hide-radio:focus, .ms-drop ul > li.hide-radio:hover {
207 background-color: #f8f9fa;
208}
209
210.ms-drop ul > li.hide-radio.selected {
211 color: #fff;
212 background-color: #007bff;
213}
214
215.ms-drop ul > li.hide-radio label {
216 margin-bottom: 0;
217 padding: 5px 8px;
218}
219
220.ms-drop ul > li.hide-radio input {
221 display: none;
222}
223
224.ms-drop ul > li.option-level-1 label {
225 padding-left: 28px;
226}
227
228.ms-drop ul > li.option-divider {
229 padding: 0;
230 border-top: 1px solid #e9ecef;
231}
232
233.ms-drop input[type="radio"], .ms-drop input[type="checkbox"] {
234 position: absolute;
235 margin-top: .3rem;
236 margin-left: -1.25rem;
237}
238
239.ms-drop .ms-no-results {
240 display: none;
241}