mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 22:33:55 +08:00
ae27beb01a
Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
80 lines
1.5 KiB
SCSS
80 lines
1.5 KiB
SCSS
.chat-channel-row {
|
|
margin: 0;
|
|
border-radius: 0;
|
|
border-bottom: 1px solid var(--primary-low);
|
|
transition: height 0.25s ease-in-out, opacity 0.25s ease-out;
|
|
transform-origin: top center;
|
|
will-change: height, opacity, left;
|
|
height: 4em;
|
|
position: relative;
|
|
|
|
&.-fade-out {
|
|
.chat-channel-row__content {
|
|
background-color: var(--danger-low);
|
|
}
|
|
|
|
height: 0 !important;
|
|
overflow: hidden;
|
|
opacity: 0.5 !important;
|
|
}
|
|
|
|
&__content {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
padding-inline: 1.5rem;
|
|
z-index: 2;
|
|
background: var(--primary-very-low);
|
|
box-sizing: border-box;
|
|
height: 100%;
|
|
transition: border-radius 0.25s ease-in-out;
|
|
|
|
&.-animate-reset {
|
|
transition: margin-right 0.15s ease-out;
|
|
margin-right: 0px !important;
|
|
}
|
|
}
|
|
|
|
&__action-btn {
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
position: absolute;
|
|
top: 0px;
|
|
bottom: 0px;
|
|
right: 0px;
|
|
left: 0px;
|
|
background: var(--danger);
|
|
color: var(--primary-very-low);
|
|
|
|
.d-icon {
|
|
transform-origin: 50% 50%;
|
|
transform-box: fill-box;
|
|
transition: scale 0.2s ease-out;
|
|
margin: 0 1rem 0 auto;
|
|
padding-left: 1rem;
|
|
}
|
|
|
|
&.-not-at-threshold {
|
|
.d-icon {
|
|
scale: 0.7;
|
|
}
|
|
}
|
|
|
|
&.-at-threshold {
|
|
.d-icon {
|
|
scale: 1.5;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat-channel-metadata {
|
|
.chat-channel-unread-indicator {
|
|
font-size: var(--font-down-2);
|
|
margin-top: 0.25rem;
|
|
}
|
|
&__date {
|
|
font-size: var(--font-down-2);
|
|
}
|
|
}
|
|
}
|