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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
| /* GitHub Alerts 样式 */
.alert {
position: relative;
margin: 1.5rem 0;
padding: 1rem 1.5rem;
border-left: 4px solid;
border-radius: 8px;
background: var(--card-bg);
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
}
.alert::before {
font-weight: 600;
font-size: 0.95rem;
margin-bottom: 0.5rem;
display: block;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Lato, Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.alert p {
margin: 0.5rem 0;
line-height: 1.6;
}
/* 各类型样式 */
.alert-note {
border-color: #1e88e5;
background: rgba(30, 136, 229, 0.05);
}
.alert-note::before {
content: "💡 NOTE";
color: #1e88e5;
}
.alert-warning {
border-color: #ff9800;
background: rgba(255, 152, 0, 0.08);
}
.alert-warning::before {
content: "⚠️ WARNING";
color: #ff9800;
}
.alert-tip {
border-color: #00bcd4;
background: rgba(0, 188, 212, 0.05);
}
.alert-tip::before {
content: "💡 TIP";
color: #00bcd4;
}
.alert-important {
border-color: #e91e63;
background: rgba(233, 30, 99, 0.05);
}
.alert-important::before {
content: "❗ IMPORTANT";
color: #e91e63;
}
.alert-caution {
border-color: #ff5722;
background: rgba(255, 87, 34, 0.08);
}
.alert-caution::before {
content: "🔥 CAUTION";
color: #ff5722;
}
.alert-info {
border-color: #2196f3;
background: rgba(33, 150, 243, 0.05);
}
.alert-info::before {
content: "ℹ️ INFO";
color: #2196f3;
}
.alert-success {
border-color: #4caf50;
background: rgba(76, 175, 80, 0.05);
}
.alert-success::before {
content: "✅ SUCCESS";
color: #4caf50;
}
.alert-error {
border-color: #f44336;
background: rgba(244, 67, 54, 0.08);
}
.alert-error::before {
content: "❌ ERROR";
color: #f44336;
}
/* 暗色模式适配 */
[data-theme="dark"] .alert {
background: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .alert-note {
background: rgba(30, 136, 229, 0.1);
}
[data-theme="dark"] .alert-warning {
background: rgba(255, 152, 0, 0.1);
}
[data-theme="dark"] .alert-tip {
background: rgba(0, 188, 212, 0.1);
}
[data-theme="dark"] .alert-important {
background: rgba(233, 30, 99, 0.1);
}
[data-theme="dark"] .alert-caution {
background: rgba(255, 87, 34, 0.1);
}
[data-theme="dark"] .alert-info {
background: rgba(33, 150, 243, 0.1);
}
[data-theme="dark"] .alert-success {
background: rgba(76, 175, 80, 0.1);
}
[data-theme="dark"] .alert-error {
background: rgba(244, 67, 54, 0.1);
}
/* 响应式设计 */
@media (max-width: 768px) {
.alert {
margin: 1rem 0;
padding: 0.8rem 1rem;
}
}
|