2021-05-29 22:22:58 +03: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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_CallEvent {
|
|
|
|
display: flex;
|
2021-05-30 13:42:23 +03:00
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2021-06-01 11:03:23 +03:00
|
|
|
justify-content: space-between;
|
2021-05-29 22:22:58 +03:00
|
|
|
|
|
|
|
background-color: $dark-panel-bg-color;
|
|
|
|
border-radius: 8px;
|
|
|
|
margin: 10px auto;
|
2021-07-26 10:42:17 +03:00
|
|
|
width: 75%;
|
2021-05-29 22:22:58 +03:00
|
|
|
box-sizing: border-box;
|
2021-06-18 17:19:57 +03:00
|
|
|
height: 60px;
|
2021-05-29 22:22:58 +03:00
|
|
|
|
2021-07-08 15:19:02 +03:00
|
|
|
&.mx_CallEvent_voice {
|
2021-07-08 15:35:06 +03:00
|
|
|
.mx_CallEvent_type_icon::before,
|
|
|
|
.mx_CallEvent_content_button_callBack span::before,
|
|
|
|
.mx_CallEvent_content_button_answer span::before {
|
2021-07-08 15:19:02 +03:00
|
|
|
mask-image: url('$(res)/img/element-icons/call/voice-call.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_CallEvent_video {
|
2021-07-08 15:35:06 +03:00
|
|
|
.mx_CallEvent_type_icon::before,
|
|
|
|
.mx_CallEvent_content_button_callBack span::before,
|
|
|
|
.mx_CallEvent_content_button_answer span::before {
|
2021-07-08 15:19:02 +03:00
|
|
|
mask-image: url('$(res)/img/element-icons/call/video-call.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-25 09:37:25 +03:00
|
|
|
&.mx_CallEvent_voice.mx_CallEvent_missed .mx_CallEvent_type_icon::before {
|
|
|
|
mask-image: url('$(res)/img/voip/missed-voice.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_CallEvent_video.mx_CallEvent_missed .mx_CallEvent_type_icon::before {
|
|
|
|
mask-image: url('$(res)/img/voip/missed-video.svg');
|
|
|
|
}
|
|
|
|
|
2021-06-01 08:55:55 +03:00
|
|
|
.mx_CallEvent_info {
|
2021-05-30 13:42:23 +03:00
|
|
|
display: flex;
|
2021-06-01 08:55:55 +03:00
|
|
|
flex-direction: row;
|
2021-06-01 11:03:23 +03:00
|
|
|
align-items: center;
|
2021-06-18 17:19:57 +03:00
|
|
|
margin-left: 12px;
|
2021-05-30 13:42:23 +03:00
|
|
|
|
2021-06-01 08:55:55 +03:00
|
|
|
.mx_CallEvent_info_basic {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
margin-left: 10px; // To match mx_CallEvent
|
|
|
|
|
2021-06-17 17:33:00 +03:00
|
|
|
.mx_CallEvent_sender {
|
|
|
|
font-weight: 600;
|
|
|
|
font-size: 1.5rem;
|
2021-06-18 17:14:54 +03:00
|
|
|
line-height: 1.8rem;
|
|
|
|
margin-bottom: 3px;
|
2021-06-17 17:33:00 +03:00
|
|
|
}
|
|
|
|
|
2021-06-01 08:55:55 +03:00
|
|
|
.mx_CallEvent_type {
|
|
|
|
font-weight: 400;
|
2021-06-17 18:55:18 +03:00
|
|
|
color: $secondary-fg-color;
|
2021-06-17 17:33:00 +03:00
|
|
|
font-size: 1.2rem;
|
2021-06-18 17:14:54 +03:00
|
|
|
line-height: $font-13px;
|
2021-06-17 18:55:18 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.mx_CallEvent_type_icon {
|
|
|
|
height: 13px;
|
|
|
|
width: 13px;
|
|
|
|
margin-right: 5px;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
height: 13px;
|
|
|
|
width: 13px;
|
|
|
|
background-color: $tertiary-fg-color;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
}
|
|
|
|
}
|
2021-06-01 08:55:55 +03:00
|
|
|
}
|
2021-05-30 13:42:23 +03:00
|
|
|
}
|
2021-05-29 22:22:58 +03:00
|
|
|
}
|
2021-06-01 11:03:23 +03:00
|
|
|
|
|
|
|
.mx_CallEvent_content {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2021-06-01 12:28:45 +03:00
|
|
|
align-items: center;
|
2021-06-17 18:04:56 +03:00
|
|
|
color: $secondary-fg-color;
|
2021-06-18 17:19:57 +03:00
|
|
|
margin-right: 16px;
|
2021-06-01 12:28:45 +03:00
|
|
|
|
2021-06-21 18:05:36 +03:00
|
|
|
.mx_CallEvent_content_button {
|
|
|
|
height: 24px;
|
|
|
|
padding: 0px 12px;
|
2021-07-08 14:43:59 +03:00
|
|
|
margin-left: 8px;
|
2021-07-08 15:35:06 +03:00
|
|
|
|
|
|
|
span {
|
|
|
|
padding: 8px 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
background-color: $button-fg-color;
|
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: 16px;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
}
|
2021-06-21 18:05:36 +03:00
|
|
|
}
|
|
|
|
|
2021-07-08 15:35:06 +03:00
|
|
|
.mx_CallEvent_content_button_reject span::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/call/hangup.svg');
|
2021-06-01 12:28:45 +03:00
|
|
|
}
|
2021-06-01 15:46:41 +03:00
|
|
|
|
|
|
|
.mx_CallEvent_content_tooltip {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2021-06-19 21:02:51 +03:00
|
|
|
|
|
|
|
.mx_CallEvent_iconButton {
|
|
|
|
display: inline-flex;
|
2021-07-08 14:43:59 +03:00
|
|
|
margin-right: 8px;
|
2021-06-19 21:02:51 +03:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2021-07-08 15:42:05 +03:00
|
|
|
background-color: $tertiary-fg-color;
|
2021-06-19 21:02:51 +03:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-position: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallEvent_silence::before {
|
|
|
|
mask-image: url('$(res)/img/voip/silence.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallEvent_unSilence::before {
|
|
|
|
mask-image: url('$(res)/img/voip/un-silence.svg');
|
|
|
|
}
|
2021-06-01 11:03:23 +03:00
|
|
|
}
|
2021-05-29 22:22:58 +03:00
|
|
|
}
|