-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.css
79 lines (69 loc) · 1.32 KB
/
demo.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
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
html, body {
width: 100%;
height: 100%;
}
body {
border: 0;
margin: 0;
font-family: sans-serif;
}
a {
color: #00f;
font-weight: bold;
text-decoration: none;
cursor: pointer;
}
.demo, .popup-wrap {
display: flex;
align-items: center;
justify-content: center;
}
.popup-wrap {
position: fixed;
top: 0;
width: 100%;
height: 100%;
background:
radial-gradient(rgba(0,0,0,0), rgba(0,0,0,0.5)),
rgba(0,0,0,0.25);
z-index: 1;
opacity: 0;
visibility: hidden;
transition: opacity 0.2s linear, visibility 0s;
transition-delay: 0s, 0.2s;
}
body.popup-active .popup-wrap {
opacity: 1;
visibility: visible;
transition-delay: 0s, 0s;
}
.popup {
width: 400px;
padding: 1em;
text-align: center;
background:
rgba(255,255,255,0.9);
border-radius: 0.5em;
font-size: 16px;
line-height: 1.25em;
}
.popup strong {
font-size: 24px;
}
.demo {
width: 100%;
height: 100%;
text-align: center;
overflow: hidden;
}
@media screen and (max-width:800px) {
.dg.ac { display:none; }
.popup-wrap { display: none; }
}
@media screen and (min-width:801px) {
body.popup-active > :not(.popup-wrap) {
-webkit-filter: blur(2px);
filter(5px);
transform: translateZ(0);
}
}