Skip to content

Commit 7f8d4ac

Browse files
authored
Revert "Implemented a single columned list for the kubernetes metrics reference page (#42823)"
This reverts commit 71cd6ca.
1 parent 82a9d87 commit 7f8d4ac

File tree

2 files changed

+3054
-3065
lines changed

2 files changed

+3054
-3065
lines changed

assets/scss/_custom.scss

Lines changed: 33 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -392,63 +392,52 @@ footer {
392392
}
393393

394394
main {
395-
396-
/* SCSS Related to the Metrics list */
397-
398-
div.metric:nth-of-type(odd) { // Look & Feel , Aesthetics
399-
background-color: $light-grey;
395+
.td-content table code,
396+
.td-content>table td {
397+
word-break: break-word;
400398
}
401399

402-
div.metrics {
400+
/* SCSS Related to the Metrics Table */
401+
402+
@media (max-width: 767px) { // for mobile devices, Display the names, Stability levels & types
403403

404-
.metric {
405-
div:empty{
404+
table.metrics {
405+
th:nth-child(n + 4),
406+
td:nth-child(n + 4) {
406407
display: none;
407408
}
408409

409-
display: flex;
410-
flex-direction: column;
411-
flex-wrap: wrap;
412-
gap: .75em;
413-
padding:.75em .75em .75em .75em;
414-
415-
.metric_name{
416-
font-size: large;
417-
font-weight: bold;
418-
word-break: break-word;
410+
td.metric_type{
411+
min-width: 7em;
419412
}
420-
421-
label{
422-
font-weight: bold;
423-
margin-right: .5em;
413+
td.metric_stability_level{
414+
min-width: 6em;
424415
}
425-
ul {
426-
li:empty{
427-
display: none;
416+
}
417+
}
418+
419+
table.metrics tbody{ // Tested dimensions to improve overall aesthetic of the table
420+
tr {
421+
td {
422+
font-size: smaller;
428423
}
429-
display: flex;
430-
flex-direction: column;
431-
gap: .75em;
432-
flex-wrap: wrap;
433-
li.metric_labels_varying{
434-
span{
435-
display: inline-block;
436-
background-color: rgb(240, 239, 239);
437-
padding: 0 0.5em;
438-
margin-right: .35em;
439-
font-family: monospace;
440-
border: 1px solid rgb(230 , 230 , 230);
441-
border-radius: 5%;
442-
margin-bottom: .35em;
443-
}
424+
td.metric_labels_varying{
425+
min-width: 9em;
444426
}
445-
427+
td.metric_type{
428+
min-width: 9em;
429+
}
430+
td.metric_description{
431+
min-width: 10em;
432+
}
433+
446434
}
447-
448435
}
449436

450-
451-
}
437+
table.no-word-break td,
438+
table.no-word-break code {
439+
word-break: normal;
440+
}
452441
}
453442

454443
// blockquotes and callouts

0 commit comments

Comments
 (0)