UNPKG

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