@@ -19,11 +19,12 @@ limitations under the License.
19
19
margin-bottom : 4px ;
20
20
padding : 4px ;
21
21
22
+ // The tile is also a flexbox row itself
23
+ display : flex ;
22
24
contain : content ; // Not strict as it will break when resizing a sublist vertically
23
25
box-sizing : border-box ;
24
26
25
- // The tile is also a flexbox row itself
26
- display : flex ;
27
+ font-size : $font-13px ;
27
28
28
29
& .mx_RoomTile_selected ,
29
30
& :hover ,
@@ -37,165 +38,138 @@ limitations under the License.
37
38
margin-right : 10px ;
38
39
}
39
40
40
- .mx_RoomTile_details {
41
+ .mx_RoomTile_titleContainer {
42
+ height : 32px ;
43
+ min-width : 0 ;
44
+ flex-basis : 0 ;
41
45
flex-grow : 1 ;
42
- min-width : 0 ; // allow flex to shrink it
46
+ margin-right : 8px ; // spacing to buttons/badges
47
+
48
+ // Create a new column layout flexbox for the title parts
43
49
display : flex ;
44
50
flex-direction : column ;
51
+ justify-content : center ;
45
52
46
- .mx_RoomTile_primaryDetails {
47
- height : 32px ;
48
- display : flex ;
49
- flex-wrap : wrap ;
50
-
51
- .mx_RoomTile_titleContainer {
52
- min-width : 0 ;
53
- flex-basis : 0 ;
54
- flex-grow : 1 ;
55
- margin-right : 8px ; // spacing to buttons/badges
56
-
57
- // Create a new column layout flexbox for the title parts
58
- display : flex ;
59
- flex-direction : column ;
60
- justify-content : center ;
61
-
62
- .mx_RoomTile_title , .mx_RoomTile_subtitle {
63
- width : 100% ;
64
-
65
- // Ellipsize any text overflow
66
- text-overflow : ellipsis ;
67
- overflow : hidden ;
68
- white-space : nowrap ;
69
- }
70
-
71
- .mx_RoomTile_title {
72
- font-size : $font-14px ;
73
- line-height : $font-18px ;
74
- }
75
-
76
- .mx_RoomTile_title.mx_RoomTile_titleHasUnreadEvents {
77
- font-weight : 600 ;
78
- }
79
-
80
- .mx_RoomTile_subtitle {
81
- font-size : $font-13px ;
82
- line-height : $font-18px ;
83
- color : $secondary-content ;
84
- }
85
-
86
- .mx_RoomTile_subtitle.mx_RoomTile_voiceIndicator {
87
- & ::before {
88
- display : inline-block ;
89
- vertical-align : text-bottom ;
90
- content : ' ' ;
91
- background-color : $secondary-content ;
92
- mask-image : url (' $(res)/img/voip/voice-room.svg' );
93
- mask-size : 16px ;
94
- width : 16px ;
95
- height : 16px ;
96
- margin-right : 4px ;
97
- }
98
-
99
- & .mx_RoomTile_voiceIndicator_active {
100
- color : $accent ;
101
-
102
- & ::before {
103
- background-color : $accent ;
104
- }
105
- }
106
- }
107
-
108
- .mx_RoomTile_titleWithSubtitle {
109
- margin-top : -3px ; // shift the title up a bit more
110
- }
111
- }
112
-
113
- .mx_RoomTile_notificationsButton {
114
- margin-left : 4px ; // spacing between buttons
115
- }
116
-
117
- .mx_RoomTile_badgeContainer {
118
- height : 16px ;
119
- // don't set width so that it takes no space when there is no badge to show
120
- margin : auto 0 ; // vertically align
53
+ .mx_RoomTile_title , .mx_RoomTile_subtitle {
54
+ width : 100% ;
121
55
122
- // Create a flexbox to make aligning dot badges easier
123
- display : flex ;
124
- align-items : center ;
56
+ // Ellipsize any text overflow
57
+ text-overflow : ellipsis ;
58
+ overflow : hidden ;
59
+ white-space : nowrap ;
60
+ }
125
61
126
- .mx_NotificationBadge {
127
- margin-right : 2 px ; // centering
128
- }
62
+ .mx_RoomTile_title {
63
+ font-size : $font-14px ;
64
+ line-height : $font-18px ;
129
65
130
- .mx_NotificationBadge_dot {
131
- // make the smaller dot occupy the same width for centering
132
- margin-left : 5px ;
133
- margin-right : 7px ;
134
- }
66
+ & .mx_RoomTile_titleHasUnreadEvents {
67
+ font-weight : 600 ;
135
68
}
69
+ }
136
70
137
- // The context menu buttons are hidden by default
138
- .mx_RoomTile_menuButton ,
139
- .mx_RoomTile_notificationsButton {
140
- width : 20px ;
141
- min-width : 20px ; // yay flex
142
- height : 20px ;
143
- margin-top : auto ;
144
- margin-bottom : auto ;
145
- position : relative ;
146
- display : none ;
71
+ .mx_RoomTile_subtitle {
72
+ line-height : $font-18px ;
73
+ color : $secondary-content ;
147
74
75
+ .mx_RoomTile_videoIndicator {
148
76
& ::before {
149
- top : 2 px ;
150
- left : 2 px ;
77
+ display : inline-block ;
78
+ vertical-align : text-bottom ;
151
79
content : ' ' ;
80
+ background-color : $secondary-content ;
81
+ mask-image : url (' $(res)/img/element-icons/call/video-call.svg' );
82
+ mask-size : 16px ;
152
83
width : 16px ;
153
84
height : 16px ;
154
- position : absolute ;
155
- mask-position : center ;
156
- mask-size : contain ;
157
- mask-repeat : no-repeat ;
158
- background : $primary-content ;
85
+ margin-right : 4px ;
159
86
}
160
- }
161
87
162
- // If the room has an overriden notification setting then we always show the notifications menu button
163
- .mx_RoomTile_notificationsButton.mx_RoomTile_notificationsButton_show {
164
- display : block ;
88
+ & .mx_RoomTile_videoIndicator_active {
89
+ color : $accent ;
90
+
91
+ & ::before {
92
+ background-color : $accent ;
93
+ }
94
+ }
165
95
}
166
96
167
- .mx_RoomTile_menuButton ::before {
168
- mask-image : url (' $(res)/img/element-icons/context-menu.svg' );
97
+ .mx_RoomTile_videoParticipants ::before {
98
+ display : inline-block ;
99
+ vertical-align : text-bottom ;
100
+ content : ' ' ;
101
+ background-color : $secondary-content ;
102
+ mask-image : url (' $(res)/img/element-icons/group-members.svg' );
103
+ mask-size : 16px ;
104
+ width : 16px ;
105
+ height : 16px ;
106
+ margin-right : 2px ;
169
107
}
170
108
}
171
109
172
- .mx_RoomTile_voiceChannel {
173
- width : 100 % ;
174
- display : flex ;
175
- align-items : center ;
110
+ .mx_RoomTile_titleWithSubtitle {
111
+ margin-top : -3 px ; // shift the title up a bit more
112
+ }
113
+ }
176
114
177
- .mx_FacePile {
178
- margin : 6 px 0 4px ;
179
- }
115
+ .mx_RoomTile_notificationsButton {
116
+ margin-left : 4px ; // spacing between buttons
117
+ }
180
118
181
- .mx_RoomTile_connectVoiceButton {
182
- font-weight : 600 ;
183
- padding-left : 10 px ;
184
- padding-right : 10 px ;
119
+ .mx_RoomTile_badgeContainer {
120
+ height : 16 px ;
121
+ // don't set width so that it takes no space when there is no badge to show
122
+ margin : auto 0 ; // vertically align
185
123
186
- & ::before {
187
- content : ' ' ;
188
- background-color : $accent ;
189
- mask-image : url (' $(res)/img/voip/voice-room.svg' );
190
- mask-size : 16px ;
191
- width : 16px ;
192
- height : 16px ;
193
- margin-right : 4px ;
194
- }
195
- }
124
+ // Create a flexbox to make aligning dot badges easier
125
+ display : flex ;
126
+ align-items : center ;
127
+
128
+ .mx_NotificationBadge {
129
+ margin-right : 2px ; // centering
130
+ }
131
+
132
+ .mx_NotificationBadge_dot {
133
+ // make the smaller dot occupy the same width for centering
134
+ margin-left : 5px ;
135
+ margin-right : 7px ;
136
+ }
137
+ }
138
+
139
+ // The context menu buttons are hidden by default
140
+ .mx_RoomTile_menuButton ,
141
+ .mx_RoomTile_notificationsButton {
142
+ width : 20px ;
143
+ min-width : 20px ; // yay flex
144
+ height : 20px ;
145
+ margin-top : auto ;
146
+ margin-bottom : auto ;
147
+ position : relative ;
148
+ display : none ;
149
+
150
+ & ::before {
151
+ top : 2px ;
152
+ left : 2px ;
153
+ content : ' ' ;
154
+ width : 16px ;
155
+ height : 16px ;
156
+ position : absolute ;
157
+ mask-position : center ;
158
+ mask-size : contain ;
159
+ mask-repeat : no-repeat ;
160
+ background : $primary-content ;
196
161
}
197
162
}
198
163
164
+ // If the room has an overriden notification setting then we always show the notifications menu button
165
+ .mx_RoomTile_notificationsButton.mx_RoomTile_notificationsButton_show {
166
+ display : block ;
167
+ }
168
+
169
+ .mx_RoomTile_menuButton ::before {
170
+ mask-image : url (' $(res)/img/element-icons/context-menu.svg' );
171
+ }
172
+
199
173
& :not (.mx_RoomTile_minimized ) {
200
174
& :hover ,
201
175
& :focus-within ,
@@ -222,10 +196,6 @@ limitations under the License.
222
196
.mx_DecoratedRoomAvatar , .mx_RoomTile_avatarContainer {
223
197
margin-right : 0 ;
224
198
}
225
-
226
- .mx_RoomTile_details {
227
- display : none ;
228
- }
229
199
}
230
200
}
231
201
0 commit comments