css: Refactor css for markdown table border color.

This refactor aims to make managing css for rendered
markdown table easier by abstracting the css for table
border color into a new variable in app_variable.
This commit is contained in:
PieterCK 2024-04-26 22:15:53 +07:00 committed by Tim Abbott
parent fc2aac6baa
commit 55fe0c5c85
2 changed files with 5 additions and 2 deletions

View File

@ -377,6 +377,9 @@
--color-text-url-hover: hsl(200deg 100% 25%);
--color-text-settings-field-hint: hsl(0deg 0% 57%);
/* Markdown colors */
--color-border-rendered-markdown-table: hsl(0deg 0% 80%);
/* Markdown code colors */
--color-markdown-code-text: hsl(0deg 0% 0%);
--color-markdown-code-background: hsl(0deg 0% 0% / 6%);

View File

@ -126,13 +126,13 @@
}
& tr th {
border: 1px solid hsl(0deg 0% 80%);
border: 1px solid var(--color-border-rendered-markdown-table);
padding: 4px;
text-align: left;
}
& tr td {
border: 1px solid hsl(0deg 0% 80%);
border: 1px solid var(--color-border-rendered-markdown-table);
padding: 4px;
}