2021-05-30 03:22:58 +08: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.
|
|
|
|
*/
|
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
.mx_CallEvent_wrapper {
|
2021-05-30 03:22:58 +08:00
|
|
|
display: flex;
|
2021-08-05 17:47:58 +08:00
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.mx_CallEvent {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
background-color: $dark-panel-bg-color;
|
|
|
|
border-radius: 8px;
|
2021-08-13 16:59:59 +08:00
|
|
|
width: 65%;
|
2021-08-05 17:47:58 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
height: 60px;
|
2021-08-13 16:35:31 +08:00
|
|
|
margin: 4px 0;
|
2021-08-05 17:47:58 +08:00
|
|
|
|
|
|
|
.mx_CallEvent_iconButton {
|
|
|
|
display: inline-flex;
|
|
|
|
margin-right: 8px;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2021-08-24 14:57:12 +08:00
|
|
|
background-color: $secondary-content;
|
2021-08-05 17:47:58 +08:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-position: center;
|
|
|
|
}
|
2021-07-08 20:19:02 +08:00
|
|
|
}
|
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
.mx_CallEvent_silence::before {
|
|
|
|
mask-image: url('$(res)/img/voip/silence.svg');
|
2021-07-08 20:19:02 +08:00
|
|
|
}
|
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
.mx_CallEvent_unSilence::before {
|
|
|
|
mask-image: url('$(res)/img/voip/un-silence.svg');
|
2021-07-08 20:19:02 +08:00
|
|
|
}
|
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
&.mx_CallEvent_voice {
|
|
|
|
.mx_CallEvent_type_icon::before,
|
|
|
|
.mx_CallEvent_content_button_callBack span::before,
|
|
|
|
.mx_CallEvent_content_button_answer span::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/call/voice-call.svg');
|
|
|
|
}
|
|
|
|
}
|
2021-07-25 14:37:25 +08:00
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
&.mx_CallEvent_video {
|
|
|
|
.mx_CallEvent_type_icon::before,
|
|
|
|
.mx_CallEvent_content_button_callBack span::before,
|
|
|
|
.mx_CallEvent_content_button_answer span::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/call/video-call.svg');
|
|
|
|
}
|
|
|
|
}
|
2021-07-25 14:37:25 +08:00
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
&.mx_CallEvent_voice.mx_CallEvent_missed .mx_CallEvent_type_icon::before {
|
|
|
|
mask-image: url('$(res)/img/voip/missed-voice.svg');
|
|
|
|
}
|
2021-05-30 18:42:23 +08:00
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
&.mx_CallEvent_video.mx_CallEvent_missed .mx_CallEvent_type_icon::before {
|
|
|
|
mask-image: url('$(res)/img/voip/missed-video.svg');
|
|
|
|
}
|
2021-06-01 13:55:55 +08:00
|
|
|
|
2021-08-13 17:37:17 +08:00
|
|
|
&.mx_CallEvent_voice.mx_CallEvent_rejected .mx_CallEvent_type_icon::before,
|
|
|
|
&.mx_CallEvent_voice.mx_CallEvent_noAnswer .mx_CallEvent_type_icon::before {
|
|
|
|
mask-image: url('$(res)/img/voip/declined-voice.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_CallEvent_video.mx_CallEvent_rejected .mx_CallEvent_type_icon::before,
|
|
|
|
&.mx_CallEvent_video.mx_CallEvent_noAnswer .mx_CallEvent_type_icon::before {
|
|
|
|
mask-image: url('$(res)/img/voip/declined-video.svg');
|
|
|
|
}
|
2021-06-17 22:33:00 +08:00
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
.mx_CallEvent_info {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
margin-left: 12px;
|
2021-08-16 16:08:16 +08:00
|
|
|
min-width: 0;
|
2021-06-17 22:33:00 +08:00
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
.mx_CallEvent_info_basic {
|
2021-06-17 23:55:18 +08:00
|
|
|
display: flex;
|
2021-08-05 17:47:58 +08:00
|
|
|
flex-direction: column;
|
|
|
|
margin-left: 10px; // To match mx_CallEvent
|
2021-08-16 16:08:16 +08:00
|
|
|
min-width: 0;
|
2021-08-05 17:47:58 +08:00
|
|
|
|
|
|
|
.mx_CallEvent_sender {
|
|
|
|
font-weight: 600;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
line-height: 1.8rem;
|
|
|
|
margin-bottom: 3px;
|
2021-08-16 16:08:16 +08:00
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2021-08-05 17:47:58 +08:00
|
|
|
}
|
2021-06-17 23:55:18 +08:00
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
.mx_CallEvent_type {
|
|
|
|
font-weight: 400;
|
2021-08-24 14:57:12 +08:00
|
|
|
color: $secondary-content;
|
2021-08-05 17:47:58 +08:00
|
|
|
font-size: 1.2rem;
|
|
|
|
line-height: $font-13px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-06-17 23:55:18 +08:00
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
.mx_CallEvent_type_icon {
|
2021-06-17 23:55:18 +08:00
|
|
|
height: 13px;
|
|
|
|
width: 13px;
|
2021-08-05 17:47:58 +08:00
|
|
|
margin-right: 5px;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
height: 13px;
|
|
|
|
width: 13px;
|
2021-08-24 14:57:12 +08:00
|
|
|
background-color: $secondary-content;
|
2021-08-05 17:47:58 +08:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
}
|
2021-06-17 23:55:18 +08:00
|
|
|
}
|
|
|
|
}
|
2021-06-01 13:55:55 +08:00
|
|
|
}
|
2021-05-30 18:42:23 +08:00
|
|
|
}
|
2021-06-01 16:03:23 +08:00
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
.mx_CallEvent_content {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2021-08-24 14:57:12 +08:00
|
|
|
color: $secondary-content;
|
2021-08-05 17:47:58 +08:00
|
|
|
margin-right: 16px;
|
2022-04-04 14:34:39 +08:00
|
|
|
gap: 12px; // See mx_IncomingCallToast_buttons
|
2021-08-16 16:08:16 +08:00
|
|
|
min-width: max-content;
|
2021-06-01 17:28:45 +08:00
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
.mx_CallEvent_content_button {
|
2022-04-04 14:34:39 +08:00
|
|
|
@mixin CallButton;
|
|
|
|
padding: 0 12px;
|
|
|
|
|
|
|
|
span::before {
|
|
|
|
mask-size: 16px;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
flex-shrink: 0;
|
2021-07-08 20:35:06 +08:00
|
|
|
}
|
|
|
|
}
|
2021-06-21 23:05:36 +08:00
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
.mx_CallEvent_content_button_reject span::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/call/hangup.svg');
|
|
|
|
}
|
2021-06-01 20:46:41 +08:00
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
.mx_CallEvent_content_tooltip {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2021-06-01 20:46:41 +08:00
|
|
|
}
|
2021-06-20 02:02:51 +08:00
|
|
|
|
2022-01-25 21:10:17 +08:00
|
|
|
.mx_MessageTimestamp {
|
|
|
|
margin-left: 16px;
|
|
|
|
}
|
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
&.mx_CallEvent_narrow {
|
|
|
|
height: unset;
|
|
|
|
width: 290px;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: unset;
|
|
|
|
gap: 16px;
|
|
|
|
|
|
|
|
.mx_CallEvent_iconButton {
|
|
|
|
position: absolute;
|
|
|
|
margin-right: 0;
|
|
|
|
top: 12px;
|
|
|
|
right: 12px;
|
2021-06-20 02:02:51 +08:00
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2021-08-05 17:47:58 +08:00
|
|
|
display: flex;
|
2021-06-20 02:02:51 +08:00
|
|
|
}
|
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
.mx_CallEvent_info {
|
2021-08-05 19:39:39 +08:00
|
|
|
align-items: unset;
|
2021-08-05 17:47:58 +08:00
|
|
|
margin-top: 12px;
|
|
|
|
margin-right: 12px;
|
2021-06-20 02:02:51 +08:00
|
|
|
|
2021-08-05 17:47:58 +08:00
|
|
|
.mx_CallEvent_sender {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallEvent_content {
|
|
|
|
margin-left: 54px; // mx_CallEvent margin (12px) + avatar (32px) + mx_CallEvent_info_basic margin (10px)
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
2021-06-20 02:02:51 +08:00
|
|
|
}
|
2021-06-01 16:03:23 +08:00
|
|
|
}
|
2021-05-30 03:22:58 +08:00
|
|
|
}
|