1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
| .markdown-rendered tbody tr:nth-child(odd) { background-color: hsla(var(--interactive-accent-hsl), 0.1); }
.theme-light { --table-background-color: rgba(248, 212, 212, 0.02); --table-thead-background-color: rgba(0, 0, 0, 0.1); --table-hover-color: rgba(0, 0, 0, 0.03); --table-hover-raw-color: rgba(0, 0, 0, 0.05); --table-hover-thead-color: var(--table-thead-background-color); --table-border-width: 0px; --table-shadow-color: rgba(0, 0, 0, 0.3); --table-border-color: black; }
.theme-dark { --table-background-color: rgba(100, 100, 100, 0.3); --table-thead-background-color: rgba(0, 0, 0, 0.5); --table-hover-color: rgba(0, 0, 0, 0.5); --table-hover-raw-color: rgba(0, 0, 0, 0.1); --table-hover-thead-color: var(--table-thead-background-color); --table-border-width: 0px; --table-shadow-color: rgba(255, 255, 255, 0.3); --table-border-color: grey; }
:is(.markdown-preview-view, .markdown-rendered, .markdown-source-view) th, :is(.markdown-preview-view, .markdown-rendered, .markdown-source-view) thead tr>th:nth-child(2n+2) { background-color: var(--table-thead-background-color); font-family: var(--font-family-strong); font-size: 1em; }
:is(.markdown-preview-view, .markdown-rendered, .markdown-source-view) td:hover, :is(.markdown-preview-view, .markdown-rendered, .markdown-source-view) thead tr>th:hover { background-color: var(--table-hover-color); }
:is(.markdown-preview-view, .markdown-rendered, .markdown-source-view) table tbody>tr:hover { background-color: var(--table-hover-raw-color); }
:is(.markdown-preview-view, .markdown-rendered, .markdown-source-view) th:hover { background-color: var(--table-hover-thead-color); }
:is(.markdown-preview-view, .markdown-rendered, .markdown-source-view) tbody tr:nth-child(odd):hover, :is(.markdown-preview-view, .markdown-rendered, .markdown-source-view) tbody tr:hover { background: var(--table-hover-raw-color); }
:is(.markdown-preview-view, .markdown-rendered, .markdown-source-view) tbody td:hover { background: var(--table-hover-color); }
:is(.markdown-preview-view, .markdown-rendered) :is(th, td) { padding: 4px 10px; border: none; text-align: center; font-size: 1em; }
.markdown-preview-view table, .markdown-source-view.mod-cm6 table { border-collapse: collapse }
table { --table-edge-cell-padding-first: 10px; --table-edge-cell-padding-last: 10px; }
thead { border-top: 2.86px solid var(--table-border-color); border-bottom: 1.42px solid var(--table-border-color); text-align: left; }
tbody { border-bottom: 2.86px solid black; }
div:is(.markdown-preview-view, .markdown-rendered) :is(th, td) { border: var(--table-border-width) solid var(--table-border-color); }
|