Skip to content

Commit c818b27

Browse files
authored
Merge pull request #42394 from Gauravpadam/metrics-change
Improved the current styling of the metrics table
2 parents 580c2a5 + 7e7571b commit c818b27

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

assets/scss/_custom.scss

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,12 +354,48 @@ main {
354354
word-break: break-word;
355355
}
356356

357+
/* SCSS Related to the Metrics Table */
358+
359+
@media (max-width: 767px) { // for mobile devices, Display the names, Stability levels & types
360+
361+
table.metrics {
362+
th:nth-child(n + 4),
363+
td:nth-child(n + 4) {
364+
display: none;
365+
}
366+
367+
td.metric_type{
368+
min-width: 7em;
369+
}
370+
td.metric_stability_level{
371+
min-width: 6em;
372+
}
373+
}
374+
}
375+
376+
table.metrics tbody{ // Tested dimensions to improve overall aesthetic of the table
377+
tr {
378+
td {
379+
font-size: smaller;
380+
}
381+
td.metric_labels_varying{
382+
min-width: 9em;
383+
}
384+
td.metric_type{
385+
min-width: 9em;
386+
}
387+
td.metric_description{
388+
min-width: 10em;
389+
}
390+
391+
}
392+
}
393+
357394
table.no-word-break td,
358395
table.no-word-break code {
359396
word-break: normal;
360-
}
361397
}
362-
398+
}
363399

364400
// blockquotes and callouts
365401

0 commit comments

Comments
 (0)