Skip to content

Commit 2f25cff

Browse files
committed
DOC-5527 Changed fix for table/mini-ToC overlap from standard CSS to mostly Tailwind CSS for consistency
1 parent 3705dd0 commit 2f25cff

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

assets/css/index.css

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -581,27 +581,21 @@ html {
581581

582582
/* Make tables responsive to avoid TOC overlap */
583583
@media (min-width: 1280px) {
584-
/* On XL screens where TOC is visible, make tables horizontally scrollable */
584+
/* On XL screens where TOC is visible, make tables horizontally scrollable when needed*/
585585
.docs .prose table {
586-
display: block;
587-
overflow-x: auto;
588-
white-space: nowrap;
586+
@apply block overflow-x-auto whitespace-nowrap;
589587
max-width: calc(100vw - 400px); /* Account for TOC + nav + margins */
590588
}
591589

592590
.docs .prose table thead,
593591
.docs .prose table tbody,
594592
.docs .prose table tr {
595-
display: table;
596-
width: 100%;
597-
table-layout: fixed;
593+
@apply table w-full table-fixed;
598594
}
599595

600596
.docs .prose table td,
601597
.docs .prose table th {
602-
white-space: normal;
603-
word-wrap: break-word;
604-
padding: 0.5rem;
598+
@apply whitespace-normal break-words p-2;
605599
}
606600
}
607601

0 commit comments

Comments
 (0)