@@ -146,94 +146,6 @@ limitations under the License.
146146 }
147147}
148148
149- .mx_InviteDialog_roomTile {
150- cursor : pointer ;
151- padding : 5px 10px ;
152-
153- & :hover {
154- background-color : $header-panel-bg-color ;
155- border-radius : 4px ;
156- }
157-
158- * {
159- vertical-align : middle ;
160- }
161-
162- .mx_InviteDialog_roomTile_avatarStack {
163- display : inline-block ;
164- position : relative ;
165- width : 36px ;
166- height : 36px ;
167-
168- & > * {
169- position : absolute ;
170- top : 0 ;
171- left : 0 ;
172- }
173- }
174-
175- .mx_InviteDialog_roomTile_selected {
176- width : 36px ;
177- height : 36px ;
178- border-radius : 36px ;
179- background-color : $username-variant1-color ;
180- display : inline-block ;
181- position : relative ;
182-
183- & ::before {
184- content : " " ;
185- width : 24px ;
186- height : 24px ;
187- grid-column : 1 ;
188- grid-row : 1 ;
189- mask-image : url (" $(res)/img/feather-customised/check.svg" );
190- mask-size : 100% ;
191- mask-repeat : no-repeat ;
192- position : absolute ;
193- top : 6px ; // 50%
194- left : 6px ; // 50%
195- background-color : #ffffff ; // this is fine without a var because it's for both themes
196- }
197- }
198-
199- .mx_InviteDialog_roomTile_nameStack {
200- display : inline-block ;
201- overflow : hidden ;
202- }
203-
204- .mx_InviteDialog_roomTile_name {
205- font-weight : 600 ;
206- font-size : $font-14px ;
207- color : $primary-content ;
208- margin-left : 7px ;
209- }
210-
211- .mx_InviteDialog_roomTile_userId {
212- font-size : $font-12px ;
213- color : $muted-fg-color ;
214- margin-left : 7px ;
215- }
216-
217- .mx_InviteDialog_roomTile_name ,
218- .mx_InviteDialog_roomTile_userId {
219- overflow : hidden ;
220- text-overflow : ellipsis ;
221- white-space : nowrap ;
222- }
223-
224- .mx_InviteDialog_roomTile_time {
225- text-align : right ;
226- font-size : $font-12px ;
227- color : $muted-fg-color ;
228- float : right ;
229- line-height : $font-36px ; // Height of the avatar to keep the time vertically aligned
230- }
231-
232- .mx_InviteDialog_roomTile_highlight {
233- font-weight : 900 ;
234- }
235- }
236-
237149// Many of these styles are stolen from mx_UserPill, but adjusted for the invite dialog.
238150.mx_InviteDialog_userTile {
239151 margin-right : 8px ;
@@ -414,43 +326,132 @@ limitations under the License.
414326 mask-image : url (' $(res)/img/voip/tab-dialpad.svg' );
415327}
416328
329+ .mx_InviteDialog_tile {
330+ cursor : pointer ;
331+ display : grid ;
332+ gap : $spacing-8 $spacing-12 ;
333+ align-items : center ;
334+
335+ & .mx_InviteDialog_tile--room {
336+ grid-template-columns : min-content auto auto ; // mx_InviteDialog_tile_avatarStack, mx_InviteDialog_tile_nameStack, time
337+ padding : $spacing-4 $spacing-8 ;
338+
339+ & :hover {
340+ background-color : $header-panel-bg-color ;
341+ border-radius : 4px ;
342+ }
343+
344+ .mx_InviteDialog_tile--room_selected {
345+ border-radius : 36px ;
346+ background-color : $username-variant1-color ;
347+
348+ & ::before {
349+ content : " " ;
350+ width : 24px ;
351+ height : 24px ;
352+ grid-column : 1 ;
353+ grid-row : 1 ;
354+ mask-image : url (" $(res)/img/feather-customised/check.svg" );
355+ mask-size : 100% ;
356+ mask-repeat : no-repeat ;
357+ position : absolute ;
358+ top : 6px ; // 50%
359+ left : 6px ; // 50%
360+ background-color : #ffffff ; // this is fine without a var because it's for both themes
361+ }
362+ }
363+
364+ .mx_InviteDialog_tile--room_time {
365+ margin-inline-start : auto ;
366+ width : max-content ;
367+ font-size : $font-12px ;
368+ color : $muted-fg-color ;
369+ }
370+
371+ .mx_InviteDialog_tile--room_highlight {
372+ font-weight : 900 ;
373+ }
374+ }
375+
376+ & .mx_InviteDialog_tile--inviterError {
377+ grid-template-columns : max-content auto ; // max-content = avatar width
378+ margin-bottom : $spacing-24 ;
379+
380+ & :last-child {
381+ margin-bottom : 0 ;
382+ }
383+
384+ .mx_InviteDialog_tile--inviterError_errorText {
385+ grid-row-start : 2 ;
386+ grid-column-start : 2 ;
387+
388+ font-size : $font-15px ;
389+ color : $alert ;
390+ }
391+ }
392+
393+ * {
394+ vertical-align : middle ;
395+ }
396+
397+ .mx_InviteDialog_tile_avatarStack ,
398+ .mx_InviteDialog_tile--room_selected {
399+ width : 36px ;
400+ height : 36px ;
401+ display : inline-block ;
402+ position : relative ;
403+ }
404+
405+ .mx_InviteDialog_tile_avatarStack {
406+ grid-row-start : 1 ;
407+ grid-column-start : 1 ;
408+
409+ & > * {
410+ position : absolute ;
411+ top : 0 ;
412+ left : 0 ;
413+ }
414+ }
415+
416+ .mx_InviteDialog_tile_nameStack {
417+ grid-row-start : 1 ;
418+ grid-column-start : 2 ;
419+
420+ display : flex ;
421+ flex-flow : column ;
422+ align-self : center ;
423+ align-items : baseline ;
424+ gap : 2px 0 ;
425+ overflow : hidden ;
426+
427+ .mx_InviteDialog_tile_nameStack_name ,
428+ .mx_InviteDialog_tile_nameStack_userId {
429+ overflow : hidden ;
430+ text-overflow : ellipsis ;
431+ white-space : nowrap ;
432+ max-width : 100% ;
433+ }
434+
435+ .mx_InviteDialog_tile_nameStack_name {
436+ font-size : $font-15px ;
437+ font-weight : $font-semi-bold ;
438+ color : $primary-content ;
439+ }
440+
441+ .mx_InviteDialog_tile_nameStack_userId {
442+ font-size : $font-12px ;
443+ color : $muted-fg-color ;
444+ }
445+ }
446+ }
447+
417448.mx_InviteDialog_multiInviterError {
418449 > h4 {
419450 font-size : $font-15px ;
420451 line-height : $font-24px ;
421452 color : $secondary-content ;
422453 font-weight : normal ;
423454 }
424-
425- > div {
426- .mx_InviteDialog_multiInviterError_entry {
427- margin-bottom : 24px ;
428-
429- .mx_InviteDialog_multiInviterError_entry_userProfile {
430- .mx_InviteDialog_multiInviterError_entry_name {
431- margin-left : 6px ;
432- font-size : $font-15px ;
433- line-height : $font-24px ;
434- font-weight : $font-semi-bold ;
435- color : $primary-content ;
436- }
437-
438- .mx_InviteDialog_multiInviterError_entry_userId {
439- margin-left : 6px ;
440- font-size : $font-12px ;
441- line-height : $font-15px ;
442- color : $tertiary-content ;
443- }
444- }
445-
446- .mx_InviteDialog_multiInviterError_entry_error {
447- margin-left : 32px ;
448- font-size : $font-15px ;
449- line-height : $font-24px ;
450- color : $alert ;
451- }
452- }
453- }
454455}
455456
456457.mx_InviteDialog_identityServer {
0 commit comments