mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +00:00
css: Refactor theme colors for #recent_view.
This change moves the light and dark theme colors for `#recent_view` element to CSS variables.
This commit is contained in:
@@ -698,6 +698,14 @@
|
||||
--color-background-recent-view-unread-row-hover: hsl(210deg 100% 97%);
|
||||
--color-recent-view-link: hsl(205deg 47% 42%);
|
||||
--color-recent-view-link-hover: hsl(214deg 40% 58%);
|
||||
--color-background-recent-filters-button-focus: hsl(0deg 0% 80%);
|
||||
--color-background-recent-filters-button-disabled: hsl(0deg 0% 100%);
|
||||
--color-border-recent-filters-button-disabled: hsl(0deg 0% 80%);
|
||||
--color-recent-view-participant-overflow-text: hsl(0deg 0% 0%);
|
||||
--color-background-recent-view-participant-overflow: hsl(0deg 0% 88%);
|
||||
--color-background-recent-view-selected: hsl(0deg 11% 93%);
|
||||
--color-background-recent-view-table-thead-th: hsl(0deg 0% 100%);
|
||||
--color-background-recent-view-table-thead-sort-header: hsl(0deg 0% 95%);
|
||||
|
||||
/* Compose box colors */
|
||||
--color-compose-box-background: hsl(232deg 30% 92%);
|
||||
@@ -1458,6 +1466,14 @@
|
||||
--color-background-recent-view-unread-row-hover: hsl(212deg 30% 22% / 60%);
|
||||
--color-recent-view-link: hsl(206deg 89% 74%);
|
||||
--color-recent-view-link-hover: hsl(208deg 64% 52%);
|
||||
--color-background-recent-filters-button-focus: hsl(0deg 0% 0% / 50%);
|
||||
--color-background-recent-filters-button-disabled: hsl(0deg 0% 0% / 50%);
|
||||
--color-border-recent-filters-button-disabled: hsl(0deg 0% 0%);
|
||||
--color-recent-view-participant-overflow-text: hsl(0deg 0% 100%);
|
||||
--color-background-recent-view-participant-overflow: hsl(211deg 18% 25%);
|
||||
--color-background-recent-view-selected: hsl(228deg 11% 17%);
|
||||
--color-background-recent-view-table-thead-th: hsl(228deg 11% 17%);
|
||||
--color-background-recent-view-table-thead-sort-header: hsl(211deg 29% 14%);
|
||||
|
||||
/* Compose box colors */
|
||||
--color-compose-box-background: hsl(228deg 11% 17%);
|
||||
|
||||
@@ -496,33 +496,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.recent_view_participant_overflow {
|
||||
color: hsl(0deg 0% 100%) !important;
|
||||
background-color: hsl(211deg 18% 25%) !important;
|
||||
}
|
||||
|
||||
.recent_view_container #recent_view_table .button-recent-filters {
|
||||
&:focus {
|
||||
background-color: hsl(0deg 0% 0% / 50%) !important;
|
||||
}
|
||||
|
||||
&.fake_disabled_button {
|
||||
&:hover {
|
||||
background-color: hsl(0deg 0% 0% / 50%);
|
||||
border-color: hsl(0deg 0% 0%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.button-recent-selected,
|
||||
#recent_view_table thead th {
|
||||
background-color: hsl(228deg 11% 17%) !important;
|
||||
|
||||
&[data-sort]:hover {
|
||||
background-color: hsl(211deg 29% 14%) !important;
|
||||
}
|
||||
}
|
||||
|
||||
#recent_view_table {
|
||||
.zulip-icon-user {
|
||||
opacity: 0.7;
|
||||
|
||||
@@ -181,7 +181,9 @@
|
||||
}
|
||||
|
||||
&:focus {
|
||||
background-color: hsl(0deg 0% 80%);
|
||||
background-color: var(
|
||||
--color-background-recent-filters-button-focus
|
||||
);
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
@@ -190,14 +192,18 @@
|
||||
opacity: 0.5;
|
||||
|
||||
&:hover {
|
||||
background-color: hsl(0deg 0% 100%);
|
||||
border-color: hsl(0deg 0% 80%);
|
||||
background-color: var(
|
||||
--color-background-recent-filters-button-disabled
|
||||
);
|
||||
border-color: var(
|
||||
--color-border-recent-filters-button-disabled
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.button-recent-selected {
|
||||
background-color: hsl(0deg 11% 93%);
|
||||
background-color: var(--color-background-recent-view-selected);
|
||||
}
|
||||
|
||||
.unread_count {
|
||||
@@ -316,15 +322,16 @@
|
||||
.recent_view_participant_overflow {
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
color: hsl(0deg 0% 100%);
|
||||
color: var(--color-recent-view-participant-overflow-text);
|
||||
display: block;
|
||||
height: 24px;
|
||||
text-align: center;
|
||||
background-color: hsl(0deg 0% 88%);
|
||||
background-color: var(
|
||||
--color-background-recent-view-participant-overflow
|
||||
);
|
||||
}
|
||||
|
||||
.recent_view_participant_overflow {
|
||||
color: hsl(0deg 0% 0%);
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
@@ -356,7 +363,7 @@
|
||||
}
|
||||
|
||||
& thead th {
|
||||
background-color: hsl(0deg 0% 100%);
|
||||
background-color: var(--color-background-recent-view-table-thead-th);
|
||||
color: inherit;
|
||||
border-top: 1px solid hsl(0deg 0% 0% / 20%) !important;
|
||||
border-bottom: 1px solid hsl(0deg 0% 0% / 20%) !important;
|
||||
@@ -384,7 +391,9 @@
|
||||
|
||||
&[data-sort]:hover {
|
||||
cursor: pointer;
|
||||
background-color: hsl(0deg 0% 95%);
|
||||
background-color: var(
|
||||
--color-background-recent-view-table-thead-sort-header
|
||||
);
|
||||
transition: background-color 100ms ease-in-out;
|
||||
|
||||
&:not(.active)::after {
|
||||
|
||||
Reference in New Issue
Block a user