Skip to content

Commit a24b568

Browse files
authored
Merge pull request element-hq#2998 from vector-im/luke/css-typing-avatars
CSS for avatars that appear when users are typing
2 parents 01d4846 + afcf9de commit a24b568

1 file changed

Lines changed: 32 additions & 2 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/structures/_RoomStatusBar.scss‎

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ limitations under the License.
4040
opacity: 0.5;
4141
position: relative;
4242
top: -4px;
43-
/*
43+
/*
4444
animation-duration: 1s;
4545
animation-name: bounce;
4646
animation-direction: alternate;
4747
animation-iteration-count: infinite;
48-
*/
48+
*/
4949
}
5050

5151
.mx_RoomStatusBar_placeholderIndicator span:nth-child(1) {
@@ -70,6 +70,36 @@ limitations under the License.
7070
}
7171
}
7272

73+
.mx_RoomStatusBar_typingIndicatorAvatars {
74+
width: 52px;
75+
text-align: left;
76+
}
77+
78+
.mx_RoomStatusBar_typingIndicatorAvatars .mx_BaseAvatar_image {
79+
margin-right: -12px;
80+
border: 1px solid $primary-bg-color;
81+
}
82+
83+
.mx_RoomStatusBar_typingIndicatorAvatars .mx_BaseAvatar_initial {
84+
padding-left: 1px;
85+
padding-top: 1px;
86+
}
87+
88+
.mx_RoomStatusBar_typingIndicatorRemaining {
89+
display: inline-block;
90+
color: #acacac;
91+
background-color: #ddd;
92+
border: 1px solid $primary-bg-color;
93+
border-radius: 40px;
94+
width: 24px;
95+
height: 24px;
96+
line-height: 24px;
97+
font-size: 0.8em;
98+
vertical-align: top;
99+
text-align: center;
100+
position: absolute;
101+
}
102+
73103
.mx_RoomStatusBar_scrollDownIndicator {
74104
cursor: pointer;
75105
}

0 commit comments

Comments
 (0)