|
11 | 11 | aria-modal="true" |
12 | 12 | :aria-labelledby="`dialog ${name}`" |
13 | 13 | > |
14 | | - <div class="vm2_modal-dialog vm2_settings" :class="contentSize? contentSize: ''" role="document"> |
| 14 | + <div |
| 15 | + class="vm2_modal-dialog vm2_settings" |
| 16 | + :class="`${contentSize? contentSize: ''} ${visible? 'vm2_visible': ''}`" |
| 17 | + role="document" |
| 18 | + > |
15 | 19 | <div |
16 | 20 | class="vm2_modal-content" |
17 | 21 | :id="`vm2_box_${name}`" |
@@ -159,6 +163,10 @@ export default { |
159 | 163 | return 'vm2_fullWidth' |
160 | 164 | } else if (this.modalSize === 'full-hw') { |
161 | 165 | return 'vm2_full-hw' |
| 166 | + } else if (this.modalSize == 'sidebar-r') { |
| 167 | + return 'vm2_sidebar-r' |
| 168 | + } else if (this.modalSize == 'sidebar-l') { |
| 169 | + return 'vm2_sidebar-l' |
162 | 170 | } |
163 | 171 | } |
164 | 172 | return null |
@@ -244,22 +252,47 @@ export default { |
244 | 252 | .vm2_body { |
245 | 253 | overflow-y: auto; |
246 | 254 | } |
247 | | -.vm2_full-hw .vm2_modal-content { |
| 255 | +.vm2_full-hw .vm2_modal-content, |
| 256 | +.vm2_sidebar-r .vm2_modal-content, |
| 257 | +.vm2_sidebar-l .vm2_modal-content { |
248 | 258 | display: flex; |
249 | 259 | flex-direction: column; |
250 | 260 | height: 100%; |
251 | 261 | } |
252 | | -.vm2_full-hw .vm2_body { |
| 262 | +.vm2_full-hw .vm2_body, |
| 263 | +.vm2_sidebar-r .vm2_body, |
| 264 | +.vm2_sidebar-l .vm2_body { |
253 | 265 | flex: 1 1 auto; |
254 | 266 | position: relative; |
255 | 267 | } |
256 | 268 | .vm2_full-hw.vm2_modal-dialog { |
257 | 269 | max-height: unset; |
258 | 270 | } |
259 | | -.vm2_full-hw.vm2_settings { |
| 271 | +.vm2_full-hw.vm2_settings, |
| 272 | +.vm2_sidebar-r.vm2_settings, |
| 273 | +.vm2_sidebar-l.vm2_settings { |
260 | 274 | height: unset; |
261 | | - margin: 0.3rem; |
| 275 | + margin: 0rem; |
| 276 | +} |
| 277 | +
|
| 278 | +.vm2_sidebar-r.vm2_modal-dialog { |
| 279 | + max-height: unset; |
| 280 | + left: unset; |
| 281 | + width: 100%; |
| 282 | +} |
| 283 | +.vm2_sidebar-l.vm2_modal-dialog { |
| 284 | + max-height: unset; |
| 285 | + right: unset; |
| 286 | + width: 100%; |
| 287 | +} |
| 288 | +.vm2_sidebar-r.vm2_modal-dialog { |
| 289 | + right: -10000px; |
| 290 | + transition: right .7s ease; |
262 | 291 | } |
| 292 | +.vm2_visible.vm2_sidebar-r.vm2_modal-dialog { |
| 293 | + right: 0; |
| 294 | +} |
| 295 | +
|
263 | 296 |
|
264 | 297 | @media screen and (min-width: 370px) { |
265 | 298 | .vm2_settings { |
|
0 commit comments