2021-05-29 21:22:58 +02:00
|
|
|
/*
|
|
|
|
Copyright 2021 Šimon Brandner <simon.bra.ag@gmail.com>
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_wrapper {
|
2021-05-29 21:22:58 +02:00
|
|
|
display: flex;
|
2021-08-05 11:47:58 +02:00
|
|
|
width: 100%;
|
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent {
|
2021-08-05 11:47:58 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2022-04-14 22:27:29 +02:00
|
|
|
flex-wrap: wrap;
|
2021-08-05 11:47:58 +02:00
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2022-04-14 22:27:29 +02:00
|
|
|
gap: $spacing-4 0;
|
2021-08-05 11:47:58 +02:00
|
|
|
|
2022-04-14 22:27:29 +02:00
|
|
|
position: relative;
|
|
|
|
margin: $spacing-4 0;
|
|
|
|
padding: $spacing-12 $spacing-24;
|
|
|
|
box-sizing: border-box;
|
2021-08-05 11:47:58 +02:00
|
|
|
background-color: $dark-panel-bg-color;
|
|
|
|
border-radius: 8px;
|
2021-08-13 10:59:59 +02:00
|
|
|
width: 65%;
|
2022-04-14 22:27:29 +02:00
|
|
|
height: fit-content;
|
2021-08-05 11:47:58 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_iconButton {
|
2021-08-05 11:47:58 +02:00
|
|
|
display: inline-flex;
|
|
|
|
|
|
|
|
&::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2021-08-05 11:47:58 +02:00
|
|
|
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2021-08-24 08:57:12 +02:00
|
|
|
background-color: $secondary-content;
|
2021-08-05 11:47:58 +02:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-position: center;
|
|
|
|
}
|
2021-07-08 14:19:02 +02:00
|
|
|
}
|
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_silence::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/voip/silence.svg");
|
2021-07-08 14:19:02 +02:00
|
|
|
}
|
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_unSilence::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/voip/un-silence.svg");
|
2021-07-08 14:19:02 +02:00
|
|
|
}
|
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
&.mx_LegacyCallEvent_voice {
|
|
|
|
.mx_LegacyCallEvent_type_icon::before,
|
|
|
|
.mx_LegacyCallEvent_content_button_callBack span::before,
|
|
|
|
.mx_LegacyCallEvent_content_button_answer span::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/call/voice-call.svg");
|
2021-08-05 11:47:58 +02:00
|
|
|
}
|
2022-04-14 22:27:29 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
&.mx_LegacyCallEvent_rejected,
|
|
|
|
&.mx_LegacyCallEvent_noAnswer {
|
|
|
|
.mx_LegacyCallEvent_type_icon::before {
|
2023-01-04 05:44:38 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/call/hangup.svg");
|
2022-04-14 22:27:29 +02:00
|
|
|
}
|
|
|
|
}
|
2021-08-05 11:47:58 +02:00
|
|
|
}
|
2021-07-25 08:37:25 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
&.mx_LegacyCallEvent_video {
|
|
|
|
.mx_LegacyCallEvent_type_icon::before,
|
|
|
|
.mx_LegacyCallEvent_content_button_callBack span::before,
|
|
|
|
.mx_LegacyCallEvent_content_button_answer span::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/call/video-call.svg");
|
2021-08-05 11:47:58 +02:00
|
|
|
}
|
2021-07-25 08:37:25 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
&.mx_LegacyCallEvent_rejected,
|
|
|
|
&.mx_LegacyCallEvent_noAnswer {
|
|
|
|
.mx_LegacyCallEvent_type_icon::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/voip/declined-video.svg");
|
2022-04-14 22:27:29 +02:00
|
|
|
}
|
|
|
|
}
|
2021-08-05 11:47:58 +02:00
|
|
|
}
|
2021-06-01 07:55:55 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
&.mx_LegacyCallEvent_missed {
|
|
|
|
&.mx_LegacyCallEvent_voice {
|
|
|
|
.mx_LegacyCallEvent_type_icon::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/voip/missed-voice.svg");
|
2022-04-14 22:27:29 +02:00
|
|
|
}
|
|
|
|
}
|
2021-08-13 11:37:17 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
&.mx_LegacyCallEvent_video {
|
|
|
|
.mx_LegacyCallEvent_type_icon::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/voip/missed-video.svg");
|
2022-04-14 22:27:29 +02:00
|
|
|
}
|
|
|
|
}
|
2021-08-13 11:37:17 +02:00
|
|
|
}
|
2021-06-17 16:33:00 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_info {
|
2021-08-05 11:47:58 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2022-04-14 22:27:29 +02:00
|
|
|
width: fit-content;
|
|
|
|
max-width: 100%;
|
2021-06-17 16:33:00 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_info_basic {
|
2021-06-17 17:55:18 +02:00
|
|
|
display: flex;
|
2021-08-05 11:47:58 +02:00
|
|
|
flex-direction: column;
|
2022-04-14 22:27:29 +02:00
|
|
|
gap: $spacing-4;
|
2022-08-30 21:13:39 +02:00
|
|
|
margin-left: 10px; /* To match mx_LegacyCallEvent */
|
2022-04-14 22:27:29 +02:00
|
|
|
margin-right: 10px;
|
2021-08-16 10:08:16 +02:00
|
|
|
min-width: 0;
|
2021-08-05 11:47:58 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_sender {
|
2021-08-05 11:47:58 +02:00
|
|
|
font-weight: 600;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
line-height: 1.8rem;
|
2022-04-14 22:27:29 +02:00
|
|
|
margin-bottom: $spacing-4;
|
2021-08-16 10:08:16 +02:00
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2021-08-05 11:47:58 +02:00
|
|
|
}
|
2021-06-17 17:55:18 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_type {
|
2022-04-14 22:27:29 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-08-05 11:47:58 +02:00
|
|
|
font-weight: 400;
|
2021-08-24 08:57:12 +02:00
|
|
|
color: $secondary-content;
|
2021-08-05 11:47:58 +02:00
|
|
|
font-size: 1.2rem;
|
|
|
|
line-height: $font-13px;
|
2021-06-17 17:55:18 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_type_icon {
|
2021-06-17 17:55:18 +02:00
|
|
|
height: 13px;
|
|
|
|
width: 13px;
|
2021-08-05 11:47:58 +02:00
|
|
|
margin-right: 5px;
|
|
|
|
|
|
|
|
&::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2021-08-05 11:47:58 +02:00
|
|
|
position: absolute;
|
|
|
|
height: 13px;
|
|
|
|
width: 13px;
|
2021-08-24 08:57:12 +02:00
|
|
|
background-color: $secondary-content;
|
2021-08-05 11:47:58 +02:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
}
|
2021-06-17 17:55:18 +02:00
|
|
|
}
|
|
|
|
}
|
2021-06-01 07:55:55 +02:00
|
|
|
}
|
2021-05-30 12:42:23 +02:00
|
|
|
}
|
2021-06-01 10:03:23 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_content {
|
2021-08-05 11:47:58 +02:00
|
|
|
display: flex;
|
2022-04-14 22:27:29 +02:00
|
|
|
flex-wrap: wrap;
|
2021-08-05 11:47:58 +02:00
|
|
|
align-items: center;
|
2021-08-24 08:57:12 +02:00
|
|
|
color: $secondary-content;
|
2022-08-30 21:13:39 +02:00
|
|
|
gap: $spacing-12; /* See mx_IncomingLegacyCallToast_buttons */
|
|
|
|
margin-inline-start: 42px; /* avatar (32px) + mx_LegacyCallEvent_info_basic margin (10px) */
|
2022-04-14 22:27:29 +02:00
|
|
|
word-break: break-word;
|
|
|
|
max-width: fit-content;
|
2021-06-01 11:28:45 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_content_button {
|
|
|
|
@mixin LegacyCallButton;
|
2022-04-14 22:27:29 +02:00
|
|
|
padding: 0 $spacing-12;
|
2022-04-04 08:34:39 +02:00
|
|
|
|
|
|
|
span::before {
|
|
|
|
mask-size: 16px;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
flex-shrink: 0;
|
2021-07-08 14:35:06 +02:00
|
|
|
}
|
|
|
|
}
|
2021-06-21 17:05:36 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_content_button_reject {
|
2022-04-14 22:27:29 +02:00
|
|
|
span::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/call/hangup.svg");
|
2022-04-14 22:27:29 +02:00
|
|
|
}
|
2021-08-05 11:47:58 +02:00
|
|
|
}
|
2021-06-01 14:46:41 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_content_tooltip {
|
2021-08-05 11:47:58 +02:00
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2021-06-01 14:46:41 +02:00
|
|
|
}
|
2021-06-19 20:02:51 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
&.mx_LegacyCallEvent_narrow {
|
2021-08-05 11:47:58 +02:00
|
|
|
flex-direction: column;
|
|
|
|
align-items: unset;
|
2022-04-14 22:27:29 +02:00
|
|
|
gap: $spacing-4 $spacing-16;
|
|
|
|
height: unset;
|
|
|
|
min-width: 290px;
|
2021-08-05 11:47:58 +02:00
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_iconButton {
|
2021-08-05 11:47:58 +02:00
|
|
|
position: absolute;
|
|
|
|
margin-right: 0;
|
|
|
|
top: 12px;
|
|
|
|
right: 12px;
|
2021-06-19 20:02:51 +02:00
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2021-08-05 11:47:58 +02:00
|
|
|
display: flex;
|
2021-06-19 20:02:51 +02:00
|
|
|
}
|
|
|
|
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_info {
|
2021-08-05 13:39:39 +02:00
|
|
|
align-items: unset;
|
2021-08-05 11:47:58 +02:00
|
|
|
}
|
2022-04-14 22:27:29 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile[data-layout="bubble"] {
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_EventTile_e2eIcon + .mx_LegacyCallEvent_wrapper {
|
|
|
|
.mx_LegacyCallEvent {
|
2022-04-14 22:27:29 +02:00
|
|
|
position: relative;
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* 5px (gap) + 14px (e2e icon size * mask-size) + 9px (margin-left of e2e icon) */
|
2022-04-14 22:27:29 +02:00
|
|
|
right: calc(5px + 14px + 9px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-08-05 11:47:58 +02:00
|
|
|
|
2022-04-14 22:27:29 +02:00
|
|
|
.mx_EventTile_leftAlignedBubble {
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_wrapper {
|
|
|
|
.mx_LegacyCallEvent {
|
|
|
|
&.mx_LegacyCallEvent_narrow {
|
2022-04-14 22:27:29 +02:00
|
|
|
gap: $spacing-8 $spacing-4;
|
2021-08-05 11:47:58 +02:00
|
|
|
}
|
2021-06-19 20:02:51 +02:00
|
|
|
}
|
2021-06-01 10:03:23 +02:00
|
|
|
}
|
2021-05-29 21:22:58 +02:00
|
|
|
}
|
2022-04-14 22:27:29 +02:00
|
|
|
|
|
|
|
.mx_IRCLayout {
|
2022-08-30 21:13:39 +02:00
|
|
|
.mx_LegacyCallEvent_wrapper {
|
|
|
|
.mx_LegacyCallEvent {
|
2022-07-27 15:39:29 +02:00
|
|
|
margin-inline-start: $spacing-4; /* display green line */
|
2022-04-14 22:27:29 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|