-
Notifications
You must be signed in to change notification settings - Fork 0
/
micro-modal.css
38 lines (37 loc) · 880 Bytes
/
micro-modal.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.modal {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
height: 100%;
visibility: hidden;
opacity: 0;
cursor: pointer;
z-index: 1000;
-webkit-transition: opacity 0.25s ease;
-ms-transition: opacity 0.25s ease;
transition: opacity 0.25s ease; }
.modal.modal-open {
visibility: visible;
opacity: 1; }
.modal.modal-backdrop {
background: rgba(0, 0, 0, 0.25); }
.modal.modal-vertical {
-webkit-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
transform-style: preserve-3d; }
.modal-dialog {
position: relative;
margin: 0 auto;
width: 95%;
max-height: 95%;
background-color: #fff;
overflow: auto;
cursor: auto;
z-index: 1001; }
.modal-vertical .modal-dialog {
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%); }