mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 18:08:33 +08:00
8823b5e504
* UX: fix missing overflow ellipsis * cleanup double declaration * UX: add missing border-radius *UX: delete icon animation tweak
82 lines
1.6 KiB
SCSS
82 lines
1.6 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 {
|
|
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;
|
|
}
|
|
&:not(.-animate-reset) {
|
|
border-top-right-radius: 0.25rem;
|
|
border-bottom-right-radius: 0.25rem;
|
|
}
|
|
}
|
|
|
|
&__action-btn {
|
|
z-index: 1;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
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-inline: 0 1.5rem;
|
|
}
|
|
|
|
&.-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);
|
|
}
|
|
}
|
|
}
|