signal-desktop/stylesheets/components/IncomingCallBar.scss
2023-07-21 15:12:23 -07:00

204 lines
3.9 KiB
SCSS

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.IncomingCallBar {
&__container {
-webkit-app-region: no-drag;
animation: IncomingCallBar--animation 0.2s forwards ease-out;
position: fixed;
top: 22px;
user-select: none;
width: 100%;
z-index: $z-index-calling;
padding-inline: 1rem;
}
&__bar {
-webkit-app-region: no-drag;
align-items: center;
background-color: $color-gray-75;
border-radius: 8px;
display: flex;
height: 70px;
justify-content: space-between;
margin-block: 0;
margin-inline: auto;
max-width: 600px;
user-select: none;
width: 100%;
}
&__conversation {
align-items: center;
display: flex;
min-width: 0;
&--avatar {
margin-bottom: 8px;
margin-inline-start: 16px;
margin-top: 8px;
position: relative;
}
&--name {
align-items: stretch;
display: flex;
flex-direction: column;
margin-inline-start: 12px;
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;
margin-inline-end: 16px;
}
&__button {
align-items: center;
border-radius: 40px;
border: none;
display: flex;
height: 40px;
justify-content: center;
outline: none;
width: 40px;
&__container {
border-radius: 40px;
height: 40px;
margin-inline: 12px;
width: 40px;
}
&--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(
'../images/icons/v3/video/video-slash-fill.svg',
$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(
'../images/icons/v3/video/video-fill.svg',
$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(
'../images/icons/v3/phone/phone-fill.svg',
$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(
'../images/icons/v3/phone/phone-down-fill.svg',
$color-white
);
height: 24px;
width: 24px;
}
}
}
}
@keyframes IncomingCallBar--animation {
from {
transform: translateY(-100px);
opacity: 0;
}
to {
transform: translateY(0px);
opacity: 1;
}
}