1 |
|
2 |
|
3 |
|
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 | &.disabled {
|
42 | background-color: #f4f4f4;
|
43 | background-image: none;
|
44 | border: 1px solid #ddd;
|
45 | cursor: default;
|
46 | }
|
47 |
|
48 | > {
|
49 | 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 | &.placeholder {
|
61 | color: #999;
|
62 | }
|
63 | }
|
64 | div.icon-close {
|
65 | position: absolute;
|
66 | top: 0px;
|
67 | right: 16px;
|
68 | height: 100%;
|
69 | width: 16px;
|
70 |
|
71 | &:before {
|
72 | content: '×';
|
73 | color: #888;
|
74 | font-weight: bold;
|
75 | }
|
76 |
|
77 | &:hover:before {
|
78 | color: #333;
|
79 | }
|
80 | }
|
81 | div.icon-caret {
|
82 | position: absolute;
|
83 | width: 0;
|
84 | height: 0;
|
85 | top: 50%;
|
86 | right: 8px;
|
87 | margin-top: -2px;
|
88 | border-color: #888 transparent transparent transparent;
|
89 | border-style: solid;
|
90 | border-width: 5px 4px 0 4px;
|
91 |
|
92 | &.open {
|
93 | border-color: transparent transparent #888 transparent;
|
94 | border-width: 0 4px 5px 4px;
|
95 | }
|
96 | }
|
97 | }
|
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 | &.bottom {
|
115 | top: 100%;
|
116 | box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
117 | }
|
118 |
|
119 | &.top {
|
120 | bottom: 100%;
|
121 | box-shadow: 0 -4px 5px rgba(0, 0, 0, 0.15);
|
122 | }
|
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 |
|
135 | input {
|
136 | width: 100%;
|
137 | height: auto !important;
|
138 | min-height: 24px;
|
139 | padding: 0 5px;
|
140 | margin: 0;
|
141 | outline: 0;
|
142 | font-family: sans-serif;
|
143 | border: 1px solid #aaa;
|
144 | border-radius: 5px;
|
145 | box-shadow: none;
|
146 | }
|
147 |
|
148 | box-sizing: border-box;
|
149 | }
|
150 |
|
151 | .ms-drop {
|
152 | ul {
|
153 | overflow: auto;
|
154 | margin: 0;
|
155 | padding: 0;
|
156 |
|
157 | > li {
|
158 | list-style: none;
|
159 | display: list-item;
|
160 | background-image: none;
|
161 | position: static;
|
162 | padding: .25rem 8px;
|
163 |
|
164 | .disabled {
|
165 | font-weight: normal!important;
|
166 | opacity: .35;
|
167 | filter: Alpha(Opacity = 35);
|
168 | cursor: default;
|
169 | }
|
170 |
|
171 | &.multiple {
|
172 | display: block;
|
173 | float: left;
|
174 | }
|
175 |
|
176 | &.group {
|
177 | clear: both;
|
178 | }
|
179 |
|
180 | &.multiple label {
|
181 | width: 100%;
|
182 | display: block;
|
183 | white-space: nowrap;
|
184 | overflow: hidden;
|
185 | text-overflow: ellipsis;
|
186 | }
|
187 |
|
188 | 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 | &.optgroup {
|
198 | font-weight: bold;
|
199 | }
|
200 | }
|
201 |
|
202 | &.hide-radio {
|
203 | padding: 0;
|
204 |
|
205 | &:focus,
|
206 | &:hover {
|
207 | background-color: #f8f9fa;
|
208 | }
|
209 |
|
210 | &.selected {
|
211 | color: #fff;
|
212 | background-color: #007bff;
|
213 | }
|
214 |
|
215 | label {
|
216 | margin-bottom: 0;
|
217 | padding: 5px 8px;
|
218 | }
|
219 |
|
220 | input {
|
221 | display: none;
|
222 | }
|
223 | }
|
224 |
|
225 | &.option-level-1 {
|
226 | label {
|
227 | padding-left: 28px;
|
228 | }
|
229 | }
|
230 |
|
231 | &.option-divider {
|
232 | padding: 0;
|
233 | border-top: 1px solid #e9ecef;
|
234 | }
|
235 | }
|
236 | }
|
237 |
|
238 | input {
|
239 | &[type="radio"], &[type="checkbox"] {
|
240 | position: absolute;
|
241 | margin-top: .3rem;
|
242 | margin-left: -1.25rem;
|
243 | }
|
244 | }
|
245 |
|
246 | .ms-no-results {
|
247 | display: none;
|
248 | }
|
249 | }
|