-
Notifications
You must be signed in to change notification settings - Fork 0
/
alert.css
101 lines (88 loc) · 1.56 KB
/
alert.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
.v-flex-centered {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
#alert-mask {
display: none;
flex-direction: column;
width: 100vw;
height: 100vh;
z-index: 10000000;
background: rgba(0, 0, 0, 0.315);
position: absolute;
top: 0;
left: 0;
box-sizing: border-box;
overflow: hidden;
}
#alert {
width: 35%;
min-height: 30%;
background: #c1c1c1;
border: inset white;
flex-direction: column;
padding-bottom: 1em;
font-size: 1.2em;
}
#alert-header,
#alert-footer {
width: 90%;
min-height: 10%;
}
#alert-header {
padding: 0.2em;
padding-bottom: 0.5em;
box-sizing: border-box;
text-align: left;
font-size: 1em;
background-image: linear-gradient(to right, navy, blue);
width: 100%;
color: white;
}
#alert-body {
width: 90%;
height: 80%;
text-align: left;
padding: 1.3em;
}
#alert-footer {
display: flex;
align-items: center;
justify-content: flex-end;
margin-top: 1em;
margin-right: 0;
}
@media only screen and (max-aspect-ratio: 5/3) {
#alert {
width: 45%;
}
}
@media only screen and (max-aspect-ratio: 9/14) {
#alert {
width: 60%;
}
}
@media only screen and (max-aspect-ratio: 9/16) {
#alert {
width: 80%;
height: auto;
}
}
@keyframes pop {
from {
transform: scale(0);
}
to {
transform: scale(1);
}
}
@keyframes fade-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
}