Skip to content

Commit cb79eb8

Browse files
committed
docs: benchmark page updates
1 parent 01237f3 commit cb79eb8

2 files changed

Lines changed: 210 additions & 180 deletions

File tree

docs/src/pages/benchmark.module.css

Lines changed: 63 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.page {
2+
overflow-x: hidden;
23
padding: 3rem 0 4rem;
34
}
45

@@ -63,7 +64,7 @@
6364
.summaryGrid {
6465
display: grid;
6566
gap: 1rem;
66-
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
67+
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
6768
margin: 2rem 0 3rem;
6869
}
6970

@@ -72,7 +73,7 @@
7273
border: 1px solid rgba(15, 23, 42, 0.08);
7374
border-radius: 20px;
7475
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
75-
padding: 1.25rem;
76+
padding: 1.3rem;
7677
}
7778

7879
.summaryLabel {
@@ -89,6 +90,7 @@
8990
display: block;
9091
font-size: 2rem;
9192
font-weight: 800;
93+
font-variant-numeric: tabular-nums;
9294
letter-spacing: -0.04em;
9395
margin-top: 0.45rem;
9496
}
@@ -104,27 +106,30 @@
104106
.contentGrid {
105107
display: grid;
106108
gap: 1.5rem;
109+
min-width: 0;
107110
}
108111

109112
.card {
110113
background: white;
111114
border: 1px solid rgba(15, 23, 42, 0.08);
112115
border-radius: 24px;
113116
box-shadow: 0 20px 44px rgba(15, 23, 42, 0.06);
117+
min-width: 0;
114118
overflow: hidden;
115119
}
116120

117121
.cardBody {
118-
padding: 1.5rem;
122+
min-width: 0;
123+
padding: 1.6rem;
119124
}
120125

121126
.cardTitle {
122127
color: #0f172a;
123-
font-size: 1.3rem;
128+
font-size: 1.32rem;
124129
font-weight: 800;
125130
letter-spacing: -0.03em;
126131
line-height: 1.2;
127-
margin-top: 1.5rem;
132+
margin-top: 1.75rem;
128133
}
129134

130135
.cardTitle:first-child {
@@ -148,7 +153,7 @@
148153
.signalList + .note,
149154
.cardText + .signalList,
150155
.note + .signalList {
151-
margin-top: 0.5rem;
156+
margin-top: 0.85rem;
152157
}
153158

154159
.signalList {
@@ -167,13 +172,19 @@
167172
}
168173

169174
.tableWrap {
175+
border: 1px solid rgba(15, 23, 42, 0.08);
176+
border-radius: 18px;
177+
display: block;
170178
overflow-x: auto;
179+
overflow-y: hidden;
180+
width: 100%;
181+
max-width: 100%;
171182
}
172183

173184
.table {
174185
border-collapse: collapse;
175-
min-width: 1380px;
176-
width: 100%;
186+
min-width: 1450px;
187+
width: max-content;
177188
}
178189

179190
.table thead th {
@@ -190,8 +201,29 @@
190201
text-transform: uppercase;
191202
}
192203

193-
.table thead th:first-child {
194-
min-width: 86px;
204+
.countColumn {
205+
background: #f1f5f9 !important;
206+
}
207+
208+
.mountGroup {
209+
background: rgba(14, 165, 233, 0.08) !important;
210+
}
211+
212+
.unmountGroup {
213+
background: rgba(148, 163, 184, 0.12) !important;
214+
}
215+
216+
.memoryGroup {
217+
background: rgba(16, 185, 129, 0.08) !important;
218+
}
219+
220+
.samplesColumn {
221+
background: #f8fafc !important;
222+
}
223+
224+
.table thead th:first-child,
225+
.countCell {
226+
min-width: 92px;
195227
}
196228

197229
.table tbody td {
@@ -205,14 +237,31 @@
205237
white-space: nowrap;
206238
}
207239

208-
.table tbody td:first-child {
209-
min-width: 86px;
210-
}
211-
212240
.table tbody tr:last-child td {
213241
border-bottom: 1px solid rgba(15, 23, 42, 0.08);
214242
}
215243

244+
.table tbody tr:nth-child(even) td {
245+
background: rgba(248, 250, 252, 0.5);
246+
}
247+
248+
.metricCell,
249+
.samplesCell,
250+
.countCell {
251+
font-variant-numeric: tabular-nums;
252+
}
253+
254+
.countCell {
255+
background: #fcfdff;
256+
color: #0f172a;
257+
font-weight: 700;
258+
}
259+
260+
.samplesCell {
261+
color: #475569;
262+
font-weight: 600;
263+
}
264+
216265
.positive {
217266
color: #047857;
218267
font-weight: 700;

0 commit comments

Comments
 (0)