Summary Files Commits Branches @commit @diff @stats
path: root / src / styles.css
diff options
context:
space:
mode:
Commit9ec2707249dbe40438d07fb45f331760994feadf (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-04 18:14:11 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-04 18:14:11 +0300
Files3e319617e585b9f3bff654098d75231d180cbd77 /src/styles.css
syndamia.com-9ec2707249dbe40438d07fb45f331760994feadf.tar
syndamia.com-9ec2707249dbe40438d07fb45f331760994feadf.tar.gz
syndamia.com-9ec2707249dbe40438d07fb45f331760994feadf.zip
Parentdc18126a9e9496f12642c8beb7a2fabd10b92453 (diff)
Made some table stylings not dependent upon being article children
1 files changed, 9 insertions, 9 deletions
-rw-r--r--src/styles.css18
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);
}