-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodal.css
More file actions
91 lines (91 loc) · 1.59 KB
/
modal.css
File metadata and controls
91 lines (91 loc) · 1.59 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#main[aria-hidden="true"],
.modal[aria-hidden="true"] {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
#main {
position: relative;
z-index: 0;
}
.modal {
word-spacing: 0;
font-size: 0;
z-index: 1;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: auto;
text-align: center;
-webkit-overflow-scrolling: touch;
transition: .2s opacity, .4s visibility, .6s background;
}
.modal:focus {
outline: none;
}
.modal[hidden] {
display: block;
opacity: 0;
visibility: hidden;
pointer-events: none;
background: rgba(0,0,0,0);
}
.modal, .modal:target {
visibility: visible;
opacity: 1;
pointer-events: auto;
background: rgba(0,0,0,0.6);
}
.modal:after {
content: '';
display: inline-block;
vertical-align: middle;
height: 100%;
width: 0;
}
.modal .window {
text-align: left;
position: relative;
display: inline-block;
vertical-align: middle;
box-sizing: border-box;
max-width: 80%;
width: 600px;
padding: 18px;
margin: 18px 0;
background: #fff;
box-shadow: 0 0 50px rgba(0,0,0,0.8);
word-spacing: initial;
font-size: initial;
}
.modal .close-stick {
position: fixed;
margin-top: -18px;
left: 50%;
margin-left: 300px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
@media (max-width: 750px) {
.modal .close-stick {
margin-left: 40%;
}
}
@media print {
body {
overflow: none !important;
}
.modal {
position: relative;
}
#main[aria-hidden="true"],
.modal[aria-hidden="true"] {
display: none;
}
.close-stick {
display: none;
}
}