diff options
Made some table stylings not dependent upon being article children
1 files changed, 9 insertions, 9 deletions
| -rw-r--r-- | src/styles.css | 18 |
diff --git a/src/styles.css b/src/styles.css index b9e641d..06c308e 100644 --- a/src/styles.css +++ b/src/styles.css @@ -256,7 +256,7 @@ h2 + p img, h3 + p img, h4 + p img, h5 + p img, h6 + p img, .file-icon { max-width: 32%; } - article > table td, article > table th { + table td, table th { word-break: normal !important; } } @@ -313,7 +313,7 @@ pre { word-wrap: normal; } -article > table { +table { line-height: 25px; border-spacing: 0; border-collapse: collapse; @@ -327,32 +327,32 @@ article > table:nth-child(5) td:first-child { width: 60%; } -article > table td:not(:empty) { +table td:not(:empty) { padding: 0.5em; word-break: break-all; } -article > table th:not(:empty) { +table th:not(:empty) { font-size: 1.1em; padding: 0.25em; font-weight: 600; } -article > table code { +table code { font-size: 0.7em; } -article > table td, -article > table th { +table td, +table th { border: 1px solid var(--td-border-color); } -article > table tr { +table tr { background-color: var(--tr-bg-color); border-top: 1px solid var(--tr-border-color); } -article > table tr:nth-child(2n) { +table tr:nth-child(2n) { background-color: var(--alternating-row-color); } |