mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 00:15:48 +08:00
d40649c648
* UX: BEM fix for has-unreads * UX: small refactor for chat channel header icons * UX: refactor chat thread unread indicator * UX: channel header thread icon hover styling * DEV: Spec fixes * UX: fix font + line-height --------- Co-authored-by: Martin Brennan <martin@discourse.org>
67 lines
1.0 KiB
SCSS
67 lines
1.0 KiB
SCSS
@mixin chat-channel-header-button {
|
|
color: var(--primary-low-mid);
|
|
padding: 0.25em 0.4em;
|
|
|
|
.d-icon {
|
|
color: inherit;
|
|
}
|
|
|
|
&:visited {
|
|
color: var(--primary-low-mid);
|
|
}
|
|
|
|
&:hover {
|
|
color: var(--primary-medium);
|
|
background: var(--primary-very-low);
|
|
border-radius: 5px;
|
|
|
|
&:hover {
|
|
.d-icon {
|
|
color: inherit;
|
|
}
|
|
}
|
|
}
|
|
|
|
> * {
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
.chat-channel {
|
|
.chat-threads-list-button {
|
|
@include chat-channel-header-button;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
&.has-unreads {
|
|
color: var(--tertiary-med-or-tertiary);
|
|
gap: 0.25rem;
|
|
|
|
&:hover {
|
|
color: var(--tertiary-hover);
|
|
}
|
|
}
|
|
|
|
.d-icon {
|
|
margin-right: 0;
|
|
}
|
|
|
|
&:hover {
|
|
.discourse-touch & {
|
|
background: none !important;
|
|
}
|
|
}
|
|
|
|
&:active {
|
|
.discourse-touch & {
|
|
background: var(--secondary-very-high) !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.open-drawer-btn {
|
|
@include chat-channel-header-button;
|
|
}
|
|
}
|