mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
27f7bd4273
context: https://meta.discourse.org/t/user-is-typing-misaligned-and-mixed-with-reply-choices-with-rtl/127963 This commit adds a temporary fix for presence avatar overlap in the composer for RTL. More context on TMP here: https://meta.discourse.org/t/moving-the-voting-box-to-the-right-side-of-the-screen/126752
97 lines
1.4 KiB
SCSS
97 lines
1.4 KiB
SCSS
.presence-users {
|
|
background-color: $secondary;
|
|
color: $primary-medium;
|
|
display: flex;
|
|
|
|
span.presence-text {
|
|
margin-left: 5px;
|
|
margin-right: 2px;
|
|
flex: 0 0 auto;
|
|
padding-top: 3px;
|
|
}
|
|
|
|
.presence-avatars {
|
|
display: flex;
|
|
overflow: hidden;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.wave {
|
|
flex: 0 0 auto;
|
|
|
|
.dot {
|
|
display: inline-block;
|
|
animation: wave 1.8s linear infinite;
|
|
|
|
&:nth-child(2) {
|
|
animation-delay: -1.6s;
|
|
}
|
|
|
|
&:nth-child(3) {
|
|
animation-delay: -1.4s;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes wave {
|
|
0%,
|
|
60%,
|
|
100% {
|
|
transform: initial;
|
|
}
|
|
|
|
30% {
|
|
transform: translateY(-0.2em);
|
|
}
|
|
}
|
|
}
|
|
|
|
.composer-fields .presence-users {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 95px;
|
|
@media screen and (max-width: $small-width) {
|
|
max-width: 318px;
|
|
.presence-avatars {
|
|
flex-wrap: nowrap;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mobile-view {
|
|
.presence-users {
|
|
font-size: $font-down-1;
|
|
}
|
|
.composer-fields .presence-users {
|
|
top: 7px;
|
|
right: 65px;
|
|
max-width: 70px;
|
|
.presence-avatars {
|
|
flex-wrap: nowrap;
|
|
}
|
|
.description {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
// TMP: RTL overrides
|
|
.rtl {
|
|
span.presence-text {
|
|
margin-left: 2px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.composer-fields .presence-users {
|
|
right: unset;
|
|
left: 95px;
|
|
}
|
|
|
|
&.mobile-view {
|
|
.composer-fields .presence-users {
|
|
right: unset;
|
|
left: 65px;
|
|
}
|
|
}
|
|
}
|