Skip to content

Commit 376d87a

Browse files
vogtnnmetulev
andauthored
RTL css for presence (#841)
Co-authored-by: Nikola Metulev <[email protected]>
1 parent ee2176d commit 376d87a

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

packages/mgt-components/src/components/mgt-person/mgt-person.scss

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,5 +421,59 @@ mgt-person .avatar-icon {
421421
margin: var($details-spacing, 0px 6px 0px 0px);
422422
}
423423
}
424+
425+
.user-presence {
426+
.presence-oof-offline svg {
427+
margin-right: calc(#{$avatar-size} * 0.07 - 2px);
428+
}
429+
.presence-offline::before {
430+
margin-right: calc(#{$avatar-size} * 0.07 - 2px);
431+
}
432+
433+
.presence-available::before {
434+
margin-right: calc(#{$avatar-size} * 0.07 - 2px);
435+
}
436+
437+
.presence-oof-available::before {
438+
margin-right: calc(#{$avatar-size} * 0.07 - 2px);
439+
}
440+
441+
.presence-away::before {
442+
margin-right: calc(#{$avatar-size} * 0.07 - 2px);
443+
}
444+
445+
.presence-dnd::before {
446+
margin-right: calc(#{$avatar-size} * 0.07 - 2px);
447+
}
448+
449+
.presence-oof-dnd::before {
450+
margin-right: calc(#{$avatar-size} * 0.07 - 2px);
451+
}
452+
}
453+
454+
&.small {
455+
& .initials-text,
456+
& .contact-icon {
457+
font-size: calc(#{$avatar-size-s} * 0.4);
458+
}
459+
.user-presence {
460+
left: calc(#{$avatar-size-s} - 8px);
461+
top: calc(#{$avatar-size-s} - 8px);
462+
width: 8px;
463+
height: 8px;
464+
465+
.presence-basic {
466+
width: 4px;
467+
height: 4px;
468+
border-radius: 4px;
469+
padding: 0;
470+
471+
& .presence-oof-offline svg {
472+
height: 0;
473+
width: 0;
474+
}
475+
}
476+
}
477+
}
424478
}
425479
}

0 commit comments

Comments
 (0)