discourse/plugins/chat/assets/stylesheets/mobile/chat-channel-row.scss
Joffrey JAFFEUX ae27beb01a
UI: improves remove channel animation (#23585)
Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
2023-09-14 18:48:29 +02:00

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);
}
}
}