2021-08-05 23:31:34 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
.IncomingCallBar {
|
|
|
|
&__container {
|
2023-07-18 21:31:15 +00:00
|
|
|
-webkit-app-region: no-drag;
|
2021-08-05 23:31:34 +00:00
|
|
|
animation: IncomingCallBar--animation 0.2s forwards ease-out;
|
|
|
|
position: fixed;
|
2022-11-23 20:13:13 +00:00
|
|
|
top: 22px;
|
2023-07-18 21:31:15 +00:00
|
|
|
user-select: none;
|
2021-08-05 23:31:34 +00:00
|
|
|
width: 100%;
|
2023-07-21 22:12:23 +00:00
|
|
|
z-index: $z-index-calling;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 1rem;
|
2021-08-05 23:31:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__bar {
|
2023-07-18 21:31:15 +00:00
|
|
|
-webkit-app-region: no-drag;
|
2021-08-05 23:31:34 +00:00
|
|
|
align-items: center;
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
border-radius: 8px;
|
|
|
|
display: flex;
|
|
|
|
height: 70px;
|
|
|
|
justify-content: space-between;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-block: 0;
|
|
|
|
margin-inline: auto;
|
2021-08-05 23:31:34 +00:00
|
|
|
max-width: 600px;
|
2023-07-18 21:31:15 +00:00
|
|
|
user-select: none;
|
2021-08-05 23:31:34 +00:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2021-08-20 16:06:15 +00:00
|
|
|
&__conversation {
|
2021-08-05 23:31:34 +00:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
min-width: 0;
|
|
|
|
|
|
|
|
&--avatar {
|
|
|
|
margin-bottom: 8px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 16px;
|
2021-08-05 23:31:34 +00:00
|
|
|
margin-top: 8px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--name {
|
|
|
|
align-items: stretch;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-start: 12px;
|
2021-08-05 23:31:34 +00:00
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--name-header {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
color: #ffffff;
|
|
|
|
overflow-x: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--message-text {
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
@include font-body-2;
|
|
|
|
color: #ffffff;
|
|
|
|
display: -webkit-box;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__actions {
|
|
|
|
display: flex;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 16px;
|
2021-08-05 23:31:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 40px;
|
|
|
|
border: none;
|
|
|
|
display: flex;
|
|
|
|
height: 40px;
|
|
|
|
justify-content: center;
|
|
|
|
outline: none;
|
|
|
|
width: 40px;
|
|
|
|
|
2023-07-18 21:31:15 +00:00
|
|
|
&__container {
|
|
|
|
border-radius: 40px;
|
|
|
|
height: 40px;
|
|
|
|
margin-inline: 12px;
|
|
|
|
width: 40px;
|
|
|
|
}
|
|
|
|
|
2021-08-05 23:31:34 +00:00
|
|
|
&--accept-video-as-audio {
|
|
|
|
background-color: $color-gray-45;
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
box-shadow: 0px 0px 0px 4px $color-ultramarine;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include mouse-mode {
|
|
|
|
&:hover {
|
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
div {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/video/video-slash-fill.svg',
|
2021-08-05 23:31:34 +00:00
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--accept-video {
|
|
|
|
background-color: $color-accent-green;
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
box-shadow: 0px 0px 0px 4px $color-ultramarine;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include mouse-mode {
|
|
|
|
&:hover {
|
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
div {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/video/video-fill.svg',
|
2021-08-05 23:31:34 +00:00
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--accept-audio {
|
|
|
|
background-color: $color-accent-green;
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
box-shadow: 0px 0px 0px 4px $color-ultramarine;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include mouse-mode {
|
|
|
|
&:hover {
|
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
div {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/phone/phone-fill.svg',
|
2021-08-05 23:31:34 +00:00
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--decline {
|
|
|
|
background-color: $color-accent-red;
|
|
|
|
|
|
|
|
@include keyboard-mode {
|
|
|
|
&:focus {
|
|
|
|
box-shadow: 0px 0px 0px 4px $color-ultramarine;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include mouse-mode {
|
|
|
|
&:hover {
|
|
|
|
box-shadow: 0px 0px 0px 2px $color-ultramarine;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
div {
|
|
|
|
@include color-svg(
|
2023-05-04 18:04:22 +00:00
|
|
|
'../images/icons/v3/phone/phone-down-fill.svg',
|
2021-08-05 23:31:34 +00:00
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes IncomingCallBar--animation {
|
|
|
|
from {
|
2022-11-23 20:13:13 +00:00
|
|
|
transform: translateY(-100px);
|
2021-08-05 23:31:34 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
to {
|
2022-11-23 20:13:13 +00:00
|
|
|
transform: translateY(0px);
|
2021-08-05 23:31:34 +00:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|