settings_tables: Set variables for header colors.

This commit is contained in:
Karl Stolley
2025-04-03 15:46:15 -05:00
committed by Tim Abbott
parent e2e0c72a80
commit e5a00b3163
3 changed files with 12 additions and 15 deletions

View File

@@ -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;
}
}

View File

@@ -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%)

View File

@@ -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,