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 2, 2024
1 parent 6634c3c commit 683350c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions web/styles/app_variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@

/* Rendered markdown table color (dark) */
--color-background-rendered-markdown-thead: hsl(0deg 0% 0% / 20%);
--color-border-rendered-markdown-table: hsl(0deg 0% 100% / 20%);
}

@media screen {
Expand Down
3 changes: 0 additions & 3 deletions web/styles/dark_theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -785,9 +785,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 683350c

Please sign in to comment.