table.repr.table.table-hover.table-striped.table-sm.table-responsive.small { /* Don't make rows wider than they need to be. */ display: inline; } table > tbody > tr.repr-element > td { /* Apply a tighter layout to the table cells. */ padding-top: 0.1rem; padding-bottom: 0.1rem; padding-right: 1rem; } table > tbody > tr > td.repr-section-toggle-col { /* Remove background and border of the first cell in every row (this row is only used for the collapse / uncollapse caret) TODO: Need to find a good solution for VS Code that works in both light and dark mode. */ border-color: transparent; --bs-table-accent-bg: transparent; } tr.repr-section-header { /* Remove stripes from section header rows */ background-color: transparent; border-color: transparent; --bs-table-striped-bg: transparent; cursor: pointer; } tr.repr-section-header > th { text-align: left !important; vertical-align: middle; } .repr-element, tr.repr-element > td { opacity: 1; text-align: left !important; } .repr-element-faded { transition: 0.3s ease; opacity: 0.2; } .repr-element-collapsed { display: none; } /* Collapse / uncollapse button and the caret it contains. */ .repr-section-toggle-col button { cursor: pointer; width: 1rem; background-color: transparent; border-color: transparent; } span.collapse-uncollapse-caret { width: 1rem; height: 1rem; display: block; background-repeat: no-repeat; background-position: left; background-size: contain; } /* The collapse / uncollapse carets were copied from the free Font Awesome collection and adjusted. */ /* Default to black carets for light mode */ .repr-section-toggle-col > button.collapsed > span.collapse-uncollapse-caret { background-image: url('data:image/svg+xml;charset=utf8,'); } .repr-section-toggle-col > button:not(.collapsed) > span.collapse-uncollapse-caret { background-image: url('data:image/svg+xml;charset=utf8,'); } /* Use white carets for dark mode */ @media (prefers-color-scheme: dark) { .repr-section-toggle-col > button.collapsed > span.collapse-uncollapse-caret { background-image: url('data:image/svg+xml;charset=utf8,'); } .repr-section-toggle-col > button:not(.collapsed) > span.collapse-uncollapse-caret { background-image: url('data:image/svg+xml;charset=utf8,'); } } .channel-names-btn { padding: 0; border: none; background: none; text-decoration: underline; text-decoration-style: dashed; cursor: pointer; color: #0d6efd; } .channel-names-btn:hover { color: #0a58ca; }