This repository was archived by the owner on Sep 13, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathindex.css
More file actions
209 lines (179 loc) · 3.71 KB
/
Copy pathindex.css
File metadata and controls
209 lines (179 loc) · 3.71 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
:root {
--primary: #4e73df;
--success: #1cc88a;
--warning: #f6c23e;
--danger: #e74a3b;
--secondary: #858796;
--light: #f8f9fc;
--dark: #5a5c69;
--border-radius: 0.35rem;
--box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}
body {
font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
'Helvetica Neue', Arial, sans-serif;
color: var(--dark);
background-color: var(--light);
}
.pageContainer {
background-color: white;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
padding: 2rem;
margin-bottom: 3rem;
}
.headline {
padding-bottom: 1rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
}
.reportContainer {
margin: 2rem 0;
}
.statusContainer {
border: 1px solid #e3e6f0;
border-radius: var(--border-radius);
padding: 1.5rem;
margin-bottom: 1.5rem;
transition: all 0.3s;
}
.statusContainer:hover {
transform: translateY(-2px);
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.statusStreamContainer {
display: flex;
justify-content: space-between;
margin-top: 1rem;
gap: 0.25rem;
}
.statusSquare {
border-radius: 0.2rem;
height: 2rem;
min-width: 0.5rem;
flex-grow: 1;
transition: all 0.2s;
cursor: pointer;
}
.statusSquare:hover {
opacity: 0.8;
transform: scaleY(1.1);
}
.statusTitle {
font-weight: 600;
color: var(--dark);
}
.statusHeadline {
padding: 0.25rem 0.75rem;
border-radius: 50rem;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
}
.sectionUrl {
font-size: 0.875rem;
color: var(--primary);
}
.statusUptime {
font-size: 0.875rem;
color: var(--secondary);
}
/* Status Colors */
.success {
background-color: var(--success);
color: white;
}
.failure {
background-color: var(--danger);
color: white;
}
.nodata {
background-color: #dddfeb;
color: #b7b9cc;
}
.partial {
background-color: var(--warning);
color: white;
}
/* Tooltip */
.tooltip {
position: absolute;
z-index: 1070;
background: white;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
padding: 1rem;
width: 280px;
font-size: 0.875rem;
transition: opacity 0.2s;
}
.tooltipArrow {
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
bottom: 100%;
left: 50%;
margin-left: -5px;
border-width: 0 5px 5px;
border-bottom-color: white;
}
.tooltipDateTime {
color: var(--secondary);
font-size: 0.75rem;
font-weight: 600;
}
.tooltipDescription {
color: var(--dark);
margin-top: 0.5rem;
}
.tooltipStatus {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 50rem;
font-size: 0.75rem;
font-weight: 700;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.statusHeader {
display: flex !important; /* 强制 Flex 布局 */
flex-wrap: wrap; /* 允许换行(如果太长) */
align-items: center; /* 垂直居中 */
gap: 8px; /* 元素间距 */
}
/* 调整 status 标签样式 */
.statusHeadline {
margin-left: 0 !important; /* 移除左边距 */
margin-top: 0 !important; /* 移除顶部边距 */
white-space: nowrap; /* 防止换行 */
}
/* 调整 URL 和 uptime 的布局 */
.statusSubtitle {
display: flex;
flex-direction: column;
gap: 6px;
}
/* 确保 uptime 文本换行(避免溢出) */
.statusUptime {
white-space: normal !important;
}
.pageContainer {
padding: 1.5rem;
}
.statusHeader,
.statusSubtitle {
flex-direction: column;
align-items: flex-start;
}
.statusUptime {
margin-left: 0;
margin-top: 0.5rem;
text-align: left;
}
.statusSquare {
min-width: 2px;
height: 1.5rem;
}
}