bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/user-avatar/styles.scss

110 lines
2.1 KiB
SCSS
Raw Normal View History

@import "/imports/ui/stylesheets/variables/palette";
/* Variables
* ==========
*/
$user-avatar-border: $color-gray-light;
$user-avatar-text: $color-white;
2017-10-05 22:43:08 +08:00
$user-indicators-offset: -5px;
2017-07-28 21:43:39 +08:00
$user-indicator-presenter-bg: $color-primary;
$user-indicator-voice-bg: $color-success;
$user-indicator-muted-bg: $color-danger;
2017-11-09 00:42:13 +08:00
$user-list-bg: $color-off-white;
2017-07-28 21:43:39 +08:00
.avatar {
2016-07-05 04:44:29 +08:00
position: relative;
2017-07-28 21:43:39 +08:00
width: 100%;
height: 0;
padding-bottom: 100%;
border-radius: 50%;
text-align: center;
text-transform: capitalize;
2017-07-28 21:43:39 +08:00
transition: .3s ease-in-out;
2017-10-05 22:43:08 +08:00
font-size: .85rem;
2017-07-28 21:43:39 +08:00
&:after, &:before {
content: "";
position: absolute;
width: 0;
height: 0;
padding: .5rem;
color: inherit;
top: auto;
left: auto;
2017-10-05 22:43:08 +08:00
bottom: $user-indicators-offset;
2017-07-28 21:43:39 +08:00
right: $user-indicators-offset;
2017-10-05 22:43:08 +08:00
border: 1.5px solid $user-list-bg;
2017-07-28 21:43:39 +08:00
border-radius: 50%;
background-color: $user-indicator-voice-bg;
color: $user-avatar-text;
opacity: 0;
transition: .3s ease-in-out;
font-family: 'bbb-icons';
font-size: .65rem;
line-height: 0;
text-align: center;
vertical-align: middle;
letter-spacing: -.65rem;
}
}
2017-07-28 21:43:39 +08:00
.talking {
box-shadow: 0 0 0 1px $user-list-bg, 0 0 0 3px;
}
2016-07-05 04:44:29 +08:00
.moderator {
2017-07-28 21:43:39 +08:00
border-radius: 5px;
}
2016-07-05 04:44:29 +08:00
.presenter {
2017-07-28 21:43:39 +08:00
&:before {
content: "\00a0\e90b\00a0";
opacity: 1;
2017-10-05 22:43:08 +08:00
top: $user-indicators-offset;
2017-07-28 21:43:39 +08:00
left: $user-indicators-offset;
bottom: auto;
right: auto;
border-radius: 5px;
background-color: $user-indicator-presenter-bg;
padding: .425rem;
}
}
2016-07-05 04:44:29 +08:00
2017-07-28 21:43:39 +08:00
.voice {
&:after {
content: "\00a0\e931\00a0";
background-color: $user-indicator-voice-bg;
opacity: 1;
}
}
.muted {
&:after {
content: "\00a0\e932\00a0";
background-color: $user-indicator-muted-bg;
opacity: 1;
}
2016-07-09 03:09:16 +08:00
}
2017-07-28 21:43:39 +08:00
.listenOnly {
&:after {
content: "\00a0\e90c\00a0";
opacity: 1;
}
2016-07-09 03:09:16 +08:00
}
2017-07-28 21:43:39 +08:00
.content {
color: $user-avatar-text;
top: 50%;
position: absolute;
text-align: center;
left: 0;
right: 0;
font-size: 110%;
text-transform: capitalize;
&, & > * {
line-height: 0; // to keep centralized vertically
}
2016-07-05 04:44:29 +08:00
}