Skip to content

Commit

Permalink
css: Add new css for rendered markdown table in dark mode.
Browse files Browse the repository at this point in the history
Add a new dark mode css in app_variable.css for rendered
markdown tables. This rule sets a brighter color for tables
in messages / chat to make it more visible when the user is
using dark theme.

Fixes zulip#29856.
  • Loading branch information
PieterCK committed May 4, 2024
1 parent 6359ef6 commit 1a9fdbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion web/styles/app_variables.css
Expand Up @@ -638,7 +638,8 @@

/* Markdown color */
--color-background-rendered-markdown-thead: hsl(0deg 0% 0% / 50%);

--color-border-rendered-markdown-table: hsl(0deg 0% 100% / 20%);

/* Markdown code colors */
/* Note that Markdown code-link colors are identical
to light theme, and so are not redeclared here. */
Expand Down
3 changes: 0 additions & 3 deletions web/styles/dark_theme.css
Expand Up @@ -784,9 +784,6 @@
#subscription_overlay .settings-radio-input-parent,
#settings_page .sidebar-wrapper,
#settings_page .sidebar-wrapper *,
table,
table th,
table td,
#recent_view_table table td {
border-color: hsl(0deg 0% 0% / 20%);
}
Expand Down

0 comments on commit 1a9fdbc

Please sign in to comment.