mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 20:25:33 +08:00
7b173e883f
Direct messages on mobile will now display the last message in the channels list.
137 lines
2.3 KiB
SCSS
137 lines
2.3 KiB
SCSS
.chat-channel-row {
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
cursor: pointer;
|
|
color: var(--primary);
|
|
|
|
@media (hover: none) {
|
|
&:hover,
|
|
&:focus {
|
|
background: transparent;
|
|
}
|
|
|
|
&:active {
|
|
background: var(--primary-low);
|
|
}
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
&:hover,
|
|
&.active {
|
|
background: var(--primary-very-low);
|
|
}
|
|
|
|
&.can-leave:hover {
|
|
.toggle-channel-membership-button.-leave {
|
|
display: block;
|
|
|
|
> * {
|
|
pointer-events: auto;
|
|
}
|
|
}
|
|
|
|
.chat-channel__metadata {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:hover,
|
|
&.active {
|
|
.chat-channel-name {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.d-icon-lock {
|
|
background-color: var(--primary-low);
|
|
}
|
|
}
|
|
|
|
&:visited {
|
|
color: var(--primary);
|
|
}
|
|
|
|
&.muted {
|
|
opacity: 0.65;
|
|
}
|
|
|
|
&__content {
|
|
display: flex;
|
|
max-width: 100%;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
gap: 0.75rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
&__info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-channel {
|
|
&__user-info,
|
|
&__channel-info {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
@include ellipsis;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
&__metadata {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
flex-direction: column;
|
|
margin-left: 0.5em;
|
|
|
|
.chat-channel-unread-indicator {
|
|
@include chat-unread-indicator;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 8px;
|
|
height: 8px;
|
|
|
|
&.-urgent {
|
|
width: auto;
|
|
height: auto;
|
|
min-width: 0.6em;
|
|
padding: 0.3em 0.5em;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__metadata-date {
|
|
color: var(--primary-high);
|
|
font-size: var(--font-down-2);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.user-status-message {
|
|
display: inline-block;
|
|
font-size: var(--font-down-2);
|
|
margin-right: 0.5rem;
|
|
|
|
&-description {
|
|
color: var(--primary-medium);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.unfollowing {
|
|
opacity: 0;
|
|
}
|
|
|
|
.toggle-channel-membership-button.-leave {
|
|
display: none;
|
|
margin-left: auto;
|
|
}
|
|
}
|