blob: 7c8bcd7c1d8dfb5755acb73496a503bff83d6af9 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001/* -----------------------------------------------------
2OVERRIDE BOOTSTRAP TO CENTER MODAL VERTICALLY.
3----------------------------------------------------- */
4.modal {
5 text-align: center;
6 padding: 0!important;
7}
8
9.modal:before {
10 content: '';
11 display: inline-block;
12 height: 100%;
13 vertical-align: middle;
14 margin-right: -4px;
15}
16
17/* -----------------------------------------------------
18MODAL SIZES
19----------------------------------------------------- */
20.modal-dialog.modal-sdc-xl {
21 width: 1200px;
22}
23
24.modal-dialog.modal-sdc-l {
25 width: 875px;
26}
27
28.modal-dialog.modal-sdc-md {
29 width: 650px;
30}
31
32.modal-dialog.modal-sdc-sm {
33 width: 552px;
34}
35
36.modal-dialog.modal-sdc-xsm {
37 width: 432px;
38}
39
40/* -----------------------------------------------------
41MODAL WRAPPER
42----------------------------------------------------- */
43.modal-dialog {
44 /*
45 margin-top: 110px;
46 width: 1000px;
47 */
48 display: inline-block;
49 text-align: left;
50 vertical-align: middle;
51}
52
53.modal-content {
54 /*.border-radius(4px);
55 background-color: #ffffff;
56 box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.5);
57 min-height: 200px;*/
58}
59
60.modal-backdrop.in {
61 // opacity: .8;
62}
63
64.modal-backdrop {
65 background-color: #111922; //TODO: Replace the color
66}
67
68/* -----------------------------------------------------
69PREVIOUS MODAL
70----------------------------------------------------- */
71/*.w-sdc-modal,
72.modal-dialog,
73.w-sdc-modal-confirmation {
74
75 .w-sdc-modal-head {
76 .s_18_r;
77 height: 48px;
78 line-height: 48px;
79 text-align: center;
80 }
81
82 .w-sdc-modal-body {
83 height: auto;
84 padding: 20px 40px 20px 40px;
85 border-bottom: solid 1px @color_a;
86 position: relative;
87 }
88
89 .w-sdc-modal-body-content {
90 .b_1;
91 padding: 10px 0 0 0;
92 }
93
94 .w-sdc-modal-icon {
95 display: inline-block;
96 }
97
98 .w-sdc-modal-icon-DEBUG { .sprite; .message-DEBUG;}
99 .w-sdc-modal-icon-INFO { .sprite; .message-INFO;}
100 .w-sdc-modal-icon-WARNING { .sprite; .message-WARNING;}
101 .w-sdc-modal-icon-ERROR { .sprite; .message-ERROR;}
102
103 .w-sdc-modal-caption {
104 .a_6;
105 display: inline-block;
106 padding: 0 0 0 25px;
107 vertical-align: top;
108 }
109
110 .w-sdc-modal-action {
111 height: 99px;
112 text-align: center;
113 vertical-align: middle;
114 line-height: 105px;
115 }
116
117 .sdc-resource-viewer-modal-head {
118 .c_2;
119 border-radius: 6px 6px 0 0;
120 height: 30px;
121 line-height: 30px;
122 text-align: center;
123 }
124
125 .w-sdc-modal-close {
126 background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAYAAACdKY9CAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkZDQUM1MUVFMDg1NDExRTVBMzdBQ0IxMzM2OTYwNjM2IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkZDQUM1MUVGMDg1NDExRTVBMzdBQ0IxMzM2OTYwNjM2Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RkNBQzUxRUMwODU0MTFFNUEzN0FDQjEzMzY5NjA2MzYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RkNBQzUxRUQwODU0MTFFNUEzN0FDQjEzMzY5NjA2MzYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4EGRD0AAAAhElEQVR42mL8/+8fAxAIAvF7BvwArIYJSKQB8V0gNsajGKEGaMMZIP4PxO+A2BhkIxpOg8qDcAdIQBCPJmTFM8HOh0pg04ShGFkDNk0YitE1wDTdRVK8Ct1P+DyINSAY8HgQa0DgDA1coYdLMc7QQ464mVgiDV0TPOLKcShG1gRWAxBgACObyGI1tr+eAAAAAElFTkSuQmCC');
127 color: #3499F7; //TODO: Replace the color, should be sprite
128 .hand;
129 position: absolute;
130 right: 20px;
131 top: 20px;
132 display: block;
133 height: 13px;
134 width: 12px;
135 border-radius: 50%;
136 }
137
138 .w-sdc-resource-viewer-modal-close {
139 color: #3499F7; //TODO: Replace the color, should be sprite
140 .hand;
141 position: absolute;
142 right: 20px;
143 top: 5px;
144 display: block;
145 line-height: normal;
146 font-size: 18px;
147 font-weight: bold;
148 }
149
150}*/
151
152/* -----------------------------------------------------
153NEW DESIGN MODAL
154----------------------------------------------------- */
155.modal-type-standard.w-sdc-classic-modal {
156 .w-sdc-modal-head {
157 border-bottom: solid 3px @main_color_a;
158 }
159}
160.modal-type-error.w-sdc-classic-modal {
161 .w-sdc-modal-head {
162 border-bottom: solid 3px @func_color_q;
163 }
164}
165.modal-type-alert.w-sdc-classic-modal {
166 .w-sdc-modal-head {
167 border-bottom: solid 3px @main_color_h;
168 }
169}
170
171.w-sdc-classic-modal {
172
173 display: flex;
174 flex-direction: column;
175 .border-radius(4px);
176 background-color: #ffffff;
177 box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.5);
178 min-height: 165px;
179 min-width: 430px;
180
181 .w-sdc-modal-head {
182 flex-grow: 1;
183 .s_18_m;
184 height: 48px;
185 line-height: 48px;
186 display: flex;
187 text-align: left;
188 border-bottom: solid 3px @main_color_a;
189 align-items: center;
190
191 .w-sdc-modal-head-text {
192 .s_18_m;
193 flex-grow: 999;
194 }
195
196 .w-sdc-modal-close {
197 flex-grow: 1;
198 .sprite;
199 .sprite.x-btn-black;
200 cursor: pointer;
201 }
202 }
203
204 .w-sdc-modal-body {
205 flex-grow: 999;
206 .m_14_r;
207 padding-top: 20px;
208 position: relative;
209 border-bottom: none;
210 }
211
212 .w-sdc-modal-footer {
213 clear: both;
214 flex-grow: 1;
215 display: flex;
216 align-items: center;
217 justify-content: flex-end;
218 border-radius: 6px;
219 background-color: #f8f8f8;
220
221 button {
222 display: block;
223 margin-right: 11px;
224 }
225
226 button:last-child {
227 margin-right: 0;
228 }
229
230 }
231
232}
233
234.w-sdc-classic-top-line-modal {
235
236 display: flex;
237 flex-direction: column;
238 background-color: #ffffff;
239 box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.5);
240 min-height: 165px;
241 min-width: 430px;
242 border-top: solid 3px @main_color_a;
243
244 .w-sdc-modal-head {
245 flex-grow: 1;
246 .s_18_r;
247 height: 48px;
248 line-height: 48px;
249 display: flex;
250 text-align: left;
251 align-items: center;
252
253 .w-sdc-modal-head-text {
254 .s_18_m;
255 flex-grow: 999;
256 }
257
258 .w-sdc-modal-close {
259 flex-grow: 1;
260 .sprite;
261 .sprite.x-btn-black;
262 cursor: pointer;
263 }
264 }
265
266 .w-sdc-modal-body {
267 flex-grow: 999;
268 .m_14_r;
269 padding-top: 10px;
270 position: relative;
271 border-bottom: none;
272 }
273
274 .w-sdc-modal-footer {
275 flex-grow: 1;
276 display: flex;
277 align-items: center;
278 justify-content: flex-end;
279
280 button {
281 display: block;
282 margin-right: 11px;
283 }
284
285 button:last-child {
286 margin-right: 0;
287 }
288
289 }
290
291}
292
293.modal-sdc-xl {
294 .w-sdc-classic-modal {
295 padding: 0 40px;
296
297 .w-sdc-modal-head {
298 .b_15;
299 height: 60px;
300 line-height: 60px;
301
302 .w-sdc-modal-head-text {
303 flex-grow: 999;
304 }
305
306 .w-sdc-modal-close {
307 top: 27px;
308 right: 41px;
309 }
310 }
311
312 .w-sdc-modal-footer {
313 height: 80px;
314 margin: 0 -40px;
315 padding: 0 40px;
316 background-color: #f2f2f2;
317 }
318
319 }
320}
321
322.modal-sdc-xl,
323.modal-sdc-l,
324.modal-sdc-md,
325.modal-sdc-sm,
326.modal-sdc-xsm {
327
328 .w-sdc-classic-top-line-modal {
329 padding: 0 30px;
330
331 .w-sdc-modal-footer {
332 margin: 0 -30px;
333 padding: 17px 30px;
334 }
335 }
336
337 .w-sdc-classic-modal {
338 padding: 0 30px;
339
340 .w-sdc-modal-head {
341 .b_19;
342 height: 50px;
343 line-height: 50px;
344
345 .w-sdc-modal-close {
346 top: 21px;
347 right: 30px;
348 }
349 }
350
351 .w-sdc-modal-footer {
352 margin: 0 -30px;
353 padding: 17px 30px;
354 }
355 }
356}