mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
app_components: Refactor table-striped border color rule.
This commit fix the regression for tables at uses the .table-striped css, which are primarily used at the settings menu. In #29859, we began organizing CSS into more specific variables and selector, which led to the deprecation of several general CSS rules that affected these tables. The fix switches the border-color value used by the .table-striped css rules to a new CSS variable that contains both dark and light theme values. Fixes #30449
This commit is contained in:
@@ -794,7 +794,7 @@ div.overlay {
|
|||||||
}
|
}
|
||||||
|
|
||||||
& td {
|
& td {
|
||||||
border-top: 1px solid hsl(0deg 0% 87%);
|
border-top: 1px solid var(--color-border-table-striped);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -388,6 +388,9 @@
|
|||||||
--color-border-rendered-markdown-table: hsl(0deg 0% 80%);
|
--color-border-rendered-markdown-table: hsl(0deg 0% 80%);
|
||||||
--color-border-informational-overlays-table: hsl(0deg 0% 87%);
|
--color-border-informational-overlays-table: hsl(0deg 0% 87%);
|
||||||
|
|
||||||
|
/* Settings table colors */
|
||||||
|
--color-border-table-striped: hsl(0deg 0% 87%);
|
||||||
|
|
||||||
/* Markdown code colors */
|
/* Markdown code colors */
|
||||||
--color-markdown-code-text: hsl(0deg 0% 0%);
|
--color-markdown-code-text: hsl(0deg 0% 0%);
|
||||||
--color-markdown-code-background: hsl(0deg 0% 0% / 6%);
|
--color-markdown-code-background: hsl(0deg 0% 0% / 6%);
|
||||||
@@ -739,11 +742,14 @@
|
|||||||
--color-text-url-hover: hsl(200deg 79% 66%);
|
--color-text-url-hover: hsl(200deg 79% 66%);
|
||||||
--color-text-settings-field-hint: hsl(0deg 0% 52%);
|
--color-text-settings-field-hint: hsl(0deg 0% 52%);
|
||||||
|
|
||||||
/* Markdown color */
|
/* Markdown colors */
|
||||||
--color-background-rendered-markdown-thead: hsl(0deg 0% 0% / 50%);
|
--color-background-rendered-markdown-thead: hsl(0deg 0% 0% / 50%);
|
||||||
--color-border-rendered-markdown-table: hsl(0deg 0% 100% / 20%);
|
--color-border-rendered-markdown-table: hsl(0deg 0% 100% / 20%);
|
||||||
--color-border-informational-overlays-table: hsl(0deg 0% 0% / 20%);
|
--color-border-informational-overlays-table: hsl(0deg 0% 0% / 20%);
|
||||||
|
|
||||||
|
/* Settings table colors */
|
||||||
|
--color-border-table-striped: hsl(0deg 0% 0% / 20%);
|
||||||
|
|
||||||
/* Markdown code colors */
|
/* Markdown code colors */
|
||||||
/* Note that Markdown code-link colors are identical
|
/* Note that Markdown code-link colors are identical
|
||||||
to light theme, and so are not redeclared here. */
|
to light theme, and so are not redeclared here. */
|
||||||
|
|||||||
Reference in New Issue
Block a user