UNPKG

vuepress-theme-system

Version:
76 lines (62 loc) 1.23 kB
/* Table ------------------------------- */ table { width: 100%; border-collapse: collapse; border-spacing: 0; border: none; } th { text-align: left; font-weight: 700; typescale: -1 1; color: var(--color-neutral); } tr { border-bottom-color: var(--border-color); border-bottom-width: var(--unit-line); border-bottom-style: dotted; } .table-striped tr:nth-child(even) { background-color: var(--color-alt); } .table-sans tr { border-bottom: var(--unit-line) dotted var(--border-color); } td, th { vertical-align: top; overflow-wrap: break-word; padding-bottom: var(--unit-s); padding-top: calc(var(--unit-s) - var(--unit-line)); } td:not(:first-child) , th:not(:first-child) { padding-left: var(--unit-s); } td:not(:last-child) , th:not(:last-child) { padding-right: var(--unit-s); } .table-xs td, .table-xs th { padding-top: var(--unit-xs); padding-bottom: calc(var(--unit-xs) - var(--unit-line)); } .table-xxs td, .table-xxs th { padding-top: var(--unit-xxs); padding-bottom: calc(var(--unit-xxs) - var(--unit-line)); } .table-fixed { display: table; table-layout: fixed; } .tr-link { cursor: pointer; } .tr-link:hover { background-color: var(--color-alt); }