-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom-alert.css
More file actions
66 lines (57 loc) · 1.12 KB
/
custom-alert.css
File metadata and controls
66 lines (57 loc) · 1.12 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
/* 自定义弹窗样式 */
#customAlert {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 10000; /* 确保显示在最前面 */
justify-content: center;
align-items: center;
}
#customAlert.show {
display: flex;
}
#customAlert .modal-content {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
width: 90%;
max-width: 400px;
text-align: center;
}
#customAlert p {
margin-bottom: 20px;
font-size: 16px;
color: #333;
}
#customAlert .alert-buttons {
display: flex;
justify-content: center;
gap: 15px;
}
#customAlert button {
padding: 8px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: all 0.3s ease;
}
#alertConfirm {
background-color: var(--primary-color);
color: white;
}
#alertConfirm:hover {
background-color: #2980b9;
}
#alertCancel {
background-color: #e0e0e0;
color: #333;
}
#alertCancel:hover {
background-color: #ccc;
}