Skip to content

Commit 28bc45b

Browse files
committed
align numerical values
1 parent 56f7647 commit 28bc45b

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

website/index.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,15 @@
8282
max-width: 150px;
8383
}
8484

85-
/* Numeric columns alignment */
85+
/* Numeric columns alignment - center aligned */
8686
.results-table td[data-type="number"],
8787
.results-table td:matches-text('^\\d+$'),
8888
.results-table td:matches-text('\\d+\\.\\d+%?$'),
8989
.results-table td:matches-text('^\\$\\d'),
9090
.results-table td:matches-text('^\\d+,\\d+$') {
91-
text-align: right;
91+
text-align: center;
9292
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
9393
font-weight: 500;
94-
padding-right: 1em;
9594
}
9695

9796
.results-table thead th {
@@ -173,21 +172,21 @@
173172
.product-distribution-table td:nth-child(2) {
174173
width: 10%;
175174
min-width: 60px;
176-
text-align: right;
175+
text-align: center;
177176
}
178177

179178
.product-distribution-table th:nth-child(3),
180179
.product-distribution-table td:nth-child(3) {
181180
width: 8%;
182181
min-width: 50px;
183-
text-align: right;
182+
text-align: center;
184183
}
185184

186185
.product-distribution-table th:nth-child(n+4),
187186
.product-distribution-table td:nth-child(n+4) {
188187
width: 7.125%;
189188
min-width: 50px;
190-
text-align: right;
189+
text-align: center;
191190
}
192191

193192
/* Performance Results Table Specific */
@@ -215,7 +214,7 @@
215214
.performance-table td:nth-child(n+3) {
216215
width: 12%;
217216
min-width: 80px;
218-
text-align: right;
217+
text-align: center;
219218
}
220219

221220
/* Resource Usage Table Specific */
@@ -250,7 +249,7 @@
250249
.resource-table td:nth-child(n+4) {
251250
width: 14.5%;
252251
min-width: 90px;
253-
text-align: right;
252+
text-align: center;
254253
}
255254

256255
/* Cost Table Specific */
@@ -264,24 +263,28 @@
264263
.cost-table td:nth-child(1) {
265264
width: 10%;
266265
min-width: 80px;
266+
text-align: left;
267267
}
268268

269269
.cost-table th:nth-child(2),
270270
.cost-table td:nth-child(2) {
271271
width: 18%;
272272
min-width: 140px;
273+
text-align: left;
273274
}
274275

275276
.cost-table th:nth-child(3),
276277
.cost-table td:nth-child(3) {
277278
width: 16%;
278279
min-width: 120px;
280+
text-align: left;
279281
}
280282

281283
.cost-table th:nth-child(n+4),
282284
.cost-table td:nth-child(n+4) {
283285
width: 14%;
284286
min-width: 90px;
287+
text-align: center;
285288
}
286289

287290
/* Section Headers in Tables */

0 commit comments

Comments
 (0)