Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings_tables: Set variables for header colors.

Karl Stolleye5a00b316396
diff --git a/web/styles/app_components.css b/web/styles/app_components.css
index 457e48cdf27..e112323e778 100644
--- a/web/styles/app_components.css
+++ b/web/styles/app_components.css
@@ -772,7 +772,7 @@ input.settings_text_input {
& thead th {
color: inherit;
- background-color: hsl(0deg 0% 100%);
+ background-color: var(--color-background-table-header);
word-break: normal;
.table-sortable-arrow {
@@ -803,7 +803,9 @@ input.settings_text_input {
&[data-sort]:hover {
cursor: pointer;
- background-color: hsl(0deg 0% 95%) !important;
+ background-color: var(
+ --color-background-table-header-sortable-hover
+ ) !important;
transition: background-color 100ms ease-in-out;
}
}
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index fb79492b366..09fb94689b6 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -1462,6 +1462,14 @@
);
/* Settings table colors */
+ --color-background-table-header: light-dark(
+ hsl(0deg 0% 100%),
+ hsl(0deg 0% 0%)
+ );
+ --color-background-table-header-sortable-hover: light-dark(
+ hsl(0deg 0% 95%),
+ hsl(211deg 29% 14%)
+ );
--color-border-table-striped: light-dark(
hsl(0deg 0% 87%),
hsl(0deg 0% 0% / 20%)
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css
index 5ca78304edd..03ce257160f 100644
--- a/web/styles/dark_theme.css
+++ b/web/styles/dark_theme.css
@@ -51,14 +51,6 @@
}
}
- & table.table-striped thead.table-sticky-headers th {
- background-color: hsl(0deg 0% 0%);
-
- &[data-sort]:hover {
- background-color: hsl(211deg 29% 14%) !important;
- }
- }
-
/* Extend the 'light-border' TippyJS theme, which is intended for
popovers/menus that should use default background colors, to use
our dark theme colors in Zulip's dark theme.
@@ -365,11 +357,6 @@
border-color: hsl(0deg 0% 0% / 60%);
}
- .table-striped thead th {
- background-color: hsl(0deg 0% 0% / 50%);
- border-color: hsl(0deg 0% 0% / 90%);
- }
-
& input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,