Skip to content

Commit

Permalink
css: Add new app variable css for rendered markdown tables.
Browse files Browse the repository at this point in the history
Add a css rule in app_variable.css to be used in
rendered_markdown.css specifically for table borders.
This change makes it easier to manage style of tables in
messages / chat.

Fixes zulip#29856.
  • Loading branch information
PieterCK committed Apr 30, 2024
1 parent 2457a8b commit f33acad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions web/styles/app_variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@
--color-background-emoji-picker-emoji-reacted: hsl(195deg 50% 95%);
--color-border-emoji-picker-emoji-reacted: hsl(195deg 52% 79%);
--color-background-emoji-picker-emoji-reacted-focus: hsl(195deg 55% 88%);

/* Rendered markdown table color */
--border-rendered-markdown-tr-th-td: 1px solid hsl(0deg 0% 80%);
}

%dark-theme {
Expand Down
4 changes: 2 additions & 2 deletions web/styles/rendered_markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@
}

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

& tr td {
border: 1px solid hsl(0deg 0% 80%);
border: var(--border-rendered-markdown-tr-th-td);
padding: 4px;
}

Expand Down

0 comments on commit f33acad

Please sign in to comment.