signal-desktop/stylesheets/components/CallingStatusIndicator.scss

68 lines
1.5 KiB
SCSS
Raw Normal View History

// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
.CallingStatusIndicator {
$size: 28px;
display: flex;
align-items: center;
justify-content: center;
height: $size;
min-width: $size;
width: $size;
2024-11-15 23:09:31 +00:00
z-index: variables.$z-index-base;
border-radius: calc($size / 2);
2024-11-15 23:09:31 +00:00
background: rgba(variables.$color-gray-80, 0.7);
&::after {
content: '';
$icon-size: 16px;
width: $icon-size;
height: $icon-size;
}
}
2023-12-06 21:52:29 +00:00
.CallingStatusIndicator--HandRaised {
2024-11-15 23:09:31 +00:00
background: variables.$color-white;
2023-12-06 21:52:29 +00:00
}
.CallingStatusIndicator--HandRaised::after {
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
2023-12-06 21:52:29 +00:00
'../images/icons/v3/raise_hand/raise_hand-light.svg',
2024-11-15 23:09:31 +00:00
variables.$color-black
2023-12-06 21:52:29 +00:00
);
}
.CallingStatusIndicator--Video::after {
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
'../images/icons/v3/video/video-slash-fill-light.svg',
2024-11-15 23:09:31 +00:00
variables.$color-white
);
}
2023-12-06 21:52:29 +00:00
.module-ongoing-call__footer__local-preview .CallingStatusIndicator {
position: absolute;
2024-11-15 23:09:31 +00:00
z-index: variables.$z-index-base;
2023-12-06 21:52:29 +00:00
}
.module-ongoing-call__footer__local-preview .CallingStatusIndicator--Video {
top: 6px;
inset-inline-start: 6px;
2023-12-06 21:52:29 +00:00
}
.module-ongoing-call__footer__local-preview
.CallingStatusIndicator--HandRaised {
bottom: 6px;
inset-inline-start: 6px;
}
.module-ongoing-call__participants__grid
.module-ongoing-call__group-call-remote-participant--hand-raised
.CallingStatusIndicator--HandRaised {
margin-block: 1px;
margin-inline-start: 5px;
}