mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 02:15:49 +08:00
0ce0bcd8ff
* add border-radius-large variable * UX: replace chat border-radius with variable
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: var(--d-border-radius);
|
|
|
|
&: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;
|
|
}
|
|
}
|