2017-07-18 02:56:05 +08:00
|
|
|
@import "/imports/ui/stylesheets/variables/palette";
|
2018-06-14 00:27:30 +08:00
|
|
|
@import "/imports/ui/stylesheets/variables/general";
|
|
|
|
@import "/imports/ui/stylesheets/mixins/_indicators";
|
2016-06-01 04:25:42 +08:00
|
|
|
|
|
|
|
/* Variables
|
|
|
|
* ==========
|
|
|
|
*/
|
2018-10-19 04:37:14 +08:00
|
|
|
:root {
|
|
|
|
--user-avatar-border: var(--color-gray-light);
|
|
|
|
--user-avatar-text: var(--color-white);
|
|
|
|
--user-indicator-voice-bg: var(--color-success);
|
|
|
|
--user-indicator-muted-bg: var(--color-danger);
|
|
|
|
--user-list-bg: var(--color-off-white);
|
|
|
|
--user-color: currentColor; //picks the current color reference in the class
|
|
|
|
}
|
2016-06-01 04:25:42 +08:00
|
|
|
|
2017-07-28 21:43:39 +08:00
|
|
|
.avatar {
|
2016-07-05 04:44:29 +08:00
|
|
|
position: relative;
|
2019-04-10 22:59:25 +08:00
|
|
|
padding-bottom: 2rem;
|
2016-06-01 04:25:42 +08:00
|
|
|
border-radius: 50%;
|
2016-11-15 06:18:25 +08:00
|
|
|
text-align: center;
|
2017-10-05 22:43:08 +08:00
|
|
|
font-size: .85rem;
|
2019-04-10 22:59:25 +08:00
|
|
|
border: 2px solid transparent;
|
2017-07-28 21:43:39 +08:00
|
|
|
|
2019-04-11 23:04:10 +08:00
|
|
|
:global(.animationsEnabled) & {
|
2019-03-05 10:46:37 +08:00
|
|
|
transition: .3s ease-in-out;
|
|
|
|
}
|
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
&:after,
|
|
|
|
&:before {
|
2017-07-28 21:43:39 +08:00
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
padding: .5rem;
|
|
|
|
color: inherit;
|
|
|
|
top: auto;
|
|
|
|
left: auto;
|
2018-10-19 04:37:14 +08:00
|
|
|
bottom: var(--user-indicators-offset);
|
|
|
|
right: var(--user-indicators-offset);
|
|
|
|
border: 1.5px solid var(--user-list-bg);
|
2017-07-28 21:43:39 +08:00
|
|
|
border-radius: 50%;
|
2018-10-19 04:37:14 +08:00
|
|
|
background-color: var(--user-indicator-voice-bg);
|
|
|
|
color: var(--user-avatar-text);
|
2017-07-28 21:43:39 +08:00
|
|
|
opacity: 0;
|
|
|
|
font-family: 'bbb-icons';
|
|
|
|
font-size: .65rem;
|
|
|
|
line-height: 0;
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
|
|
|
letter-spacing: -.65rem;
|
2018-08-04 00:31:58 +08:00
|
|
|
z-index: 1;
|
2019-03-05 10:46:37 +08:00
|
|
|
|
2019-04-11 23:04:10 +08:00
|
|
|
:global(.animationsEnabled) & {
|
2019-02-24 07:11:06 +08:00
|
|
|
transition: .3s ease-in-out;
|
2019-03-05 10:46:37 +08:00
|
|
|
}
|
2017-07-28 21:43:39 +08:00
|
|
|
}
|
2016-11-15 06:18:25 +08:00
|
|
|
}
|
|
|
|
|
2017-07-28 21:43:39 +08:00
|
|
|
.talking {
|
2018-08-04 00:31:58 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2018-10-19 04:37:14 +08:00
|
|
|
background-color: var(--user-color);
|
2018-08-04 00:31:58 +08:00
|
|
|
border-radius: inherit;
|
2019-01-25 00:16:23 +08:00
|
|
|
|
2019-04-11 23:04:10 +08:00
|
|
|
:global(.animationsEnabled) & {
|
2019-03-05 10:46:37 +08:00
|
|
|
animation: pulse 1s infinite ease-in;
|
|
|
|
}
|
2019-01-25 00:16:23 +08:00
|
|
|
|
2019-02-24 07:11:06 +08:00
|
|
|
&::before {
|
2019-04-11 23:04:10 +08:00
|
|
|
:global(.animationsDisabled) & {
|
2019-02-24 07:11:06 +08:00
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
background-color: var(--user-color);
|
|
|
|
border-radius: inherit;
|
|
|
|
box-shadow: 0 0 0 4px var(--user-color);
|
|
|
|
opacity: .5;
|
|
|
|
}
|
|
|
|
}
|
2018-06-01 01:16:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes pulse {
|
|
|
|
0% {
|
2018-08-04 00:31:58 +08:00
|
|
|
opacity: 1;
|
|
|
|
transform: scale(1);
|
2018-06-01 01:16:39 +08:00
|
|
|
}
|
|
|
|
100% {
|
2018-08-04 00:31:58 +08:00
|
|
|
opacity: 0;
|
|
|
|
transform: scale(1.5);
|
2018-06-01 01:16:39 +08:00
|
|
|
}
|
2016-06-01 04:25:42 +08:00
|
|
|
}
|
|
|
|
|
2016-07-05 04:44:29 +08:00
|
|
|
.moderator {
|
2017-07-28 21:43:39 +08:00
|
|
|
border-radius: 5px;
|
2016-06-01 04:25:42 +08:00
|
|
|
}
|
|
|
|
|
2016-07-05 04:44:29 +08:00
|
|
|
.presenter {
|
2017-07-28 21:43:39 +08:00
|
|
|
&:before {
|
|
|
|
content: "\00a0\e90b\00a0";
|
|
|
|
}
|
2018-06-14 00:27:30 +08:00
|
|
|
@include presenterIndicator();
|
2016-06-01 04:25:42 +08:00
|
|
|
}
|
2016-07-05 04:44:29 +08:00
|
|
|
|
2017-07-28 21:43:39 +08:00
|
|
|
.voice {
|
|
|
|
&:after {
|
|
|
|
content: "\00a0\e931\00a0";
|
2018-10-19 04:37:14 +08:00
|
|
|
background-color: var(--user-indicator-voice-bg);
|
2018-05-30 00:40:50 +08:00
|
|
|
top: 1.375rem;
|
|
|
|
left: 1.375rem;
|
2017-07-28 21:43:39 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-23 02:10:47 +08:00
|
|
|
.noVoice {
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
background-color: var(--color-off-white);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-28 21:43:39 +08:00
|
|
|
.muted {
|
|
|
|
&:after {
|
|
|
|
content: "\00a0\e932\00a0";
|
2018-10-19 04:37:14 +08:00
|
|
|
background-color: var(--user-indicator-muted-bg);
|
2017-07-28 21:43:39 +08:00
|
|
|
}
|
2016-07-09 03:09:16 +08:00
|
|
|
}
|
|
|
|
|
2017-07-28 21:43:39 +08:00
|
|
|
.listenOnly {
|
|
|
|
&:after {
|
|
|
|
content: "\00a0\e90c\00a0";
|
2018-06-08 01:51:00 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
.listenOnly,
|
|
|
|
.muted,
|
2019-03-23 02:10:47 +08:00
|
|
|
.voice,
|
|
|
|
.noVoice {
|
2018-06-14 00:27:30 +08:00
|
|
|
@include indicatorStyles();
|
2016-07-09 03:09:16 +08:00
|
|
|
}
|
|
|
|
|
2017-07-28 21:43:39 +08:00
|
|
|
.content {
|
2018-10-19 04:37:14 +08:00
|
|
|
color: var(--user-avatar-text);
|
2017-07-28 21:43:39 +08:00
|
|
|
top: 50%;
|
|
|
|
position: absolute;
|
|
|
|
text-align: center;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
font-size: 110%;
|
|
|
|
text-transform: capitalize;
|
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
&,
|
|
|
|
& > * {
|
2017-07-28 21:43:39 +08:00
|
|
|
line-height: 0; // to keep centralized vertically
|
|
|
|
}
|
2016-07-05 04:44:29 +08:00
|
|
|
}
|