2020-07-07 00:42:46 +03:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2020-11-12 21:09:56 +03:00
|
|
|
.mx_CallView {
|
|
|
|
border-radius: 10px;
|
|
|
|
background-color: $input-lighter-bg-color;
|
|
|
|
padding-left: 8px;
|
|
|
|
padding-right: 8px;
|
|
|
|
// XXX: CallContainer sets pointer-events: none - should probably be set back in a better place
|
|
|
|
pointer-events: initial;
|
|
|
|
}
|
2020-07-07 00:42:46 +03:00
|
|
|
|
2020-11-12 21:09:56 +03:00
|
|
|
.mx_CallView_large {
|
|
|
|
padding-bottom: 10px;
|
2020-07-07 00:42:46 +03:00
|
|
|
|
2020-11-12 21:09:56 +03:00
|
|
|
.mx_CallView_voice {
|
|
|
|
height: 360px;
|
2020-07-07 00:42:46 +03:00
|
|
|
}
|
2020-11-12 21:09:56 +03:00
|
|
|
}
|
2020-07-07 00:42:46 +03:00
|
|
|
|
2020-11-12 21:09:56 +03:00
|
|
|
.mx_CallView_pip {
|
|
|
|
width: 320px;
|
2020-07-07 00:42:46 +03:00
|
|
|
|
2020-11-12 21:09:56 +03:00
|
|
|
.mx_CallView_voice {
|
2020-11-12 21:12:38 +03:00
|
|
|
height: 180px;
|
2020-07-07 00:42:46 +03:00
|
|
|
}
|
2020-11-12 21:09:56 +03:00
|
|
|
}
|
2020-07-07 00:42:46 +03:00
|
|
|
|
2020-11-12 21:09:56 +03:00
|
|
|
.mx_CallView_voice {
|
2020-11-18 17:22:38 +03:00
|
|
|
position: relative;
|
2020-11-12 21:09:56 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
background-color: $inverted-bg-color;
|
|
|
|
}
|
2020-07-07 00:42:46 +03:00
|
|
|
|
2020-10-29 20:56:24 +03:00
|
|
|
.mx_CallView_video {
|
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
|
|
|
z-index: 30;
|
|
|
|
}
|
|
|
|
|
2020-11-12 21:09:56 +03:00
|
|
|
.mx_CallView_header {
|
|
|
|
height: 44px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: left;
|
|
|
|
|
|
|
|
.mx_BaseAvatar {
|
|
|
|
margin-right: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallView_header_callType {
|
|
|
|
font-weight: bold;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallView_header_controls {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
|
2020-11-19 19:36:23 +03:00
|
|
|
.mx_CallView_header_button {
|
2020-11-12 21:09:56 +03:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
vertical-align: middle;
|
|
|
|
background-color: $secondary-fg-color;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-position: center;
|
2020-11-19 19:36:23 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallView_header_button_fullscreen {
|
|
|
|
&::before {
|
2020-11-12 21:09:56 +03:00
|
|
|
mask-image: url('$(res)/img/element-icons/call/fullscreen.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-19 19:36:23 +03:00
|
|
|
.mx_CallView_header_button_expand {
|
|
|
|
&::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/call/expand.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-12 21:09:56 +03:00
|
|
|
.mx_CallView_header_roomName {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallView_header_callTypeSmall {
|
|
|
|
font-size: 12px;
|
|
|
|
color: $secondary-fg-color;
|
|
|
|
line-height: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallView_header_phoneIcon {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 6px;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
background-color: $warning-color;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-position: center;
|
|
|
|
mask-image: url('$(res)/img/element-icons/call/voice-call.svg');
|
|
|
|
}
|
|
|
|
}
|
2020-11-18 17:22:38 +03:00
|
|
|
|
|
|
|
.mx_CallView_callControls {
|
|
|
|
position: absolute;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
bottom: 5px;
|
|
|
|
width: 100%;
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 0.5s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallView_callControls_hidden {
|
2020-11-23 18:13:19 +03:00
|
|
|
opacity: 0.001; // opacity 0 can cause a re-layout
|
2020-11-18 17:22:38 +03:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallView_callControls_button {
|
|
|
|
cursor: pointer;
|
2020-11-19 18:15:31 +03:00
|
|
|
margin-left: 8px;
|
|
|
|
margin-right: 8px;
|
|
|
|
|
2020-11-18 17:22:38 +03:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
height: 48px;
|
|
|
|
width: 48px;
|
|
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: contain;
|
|
|
|
background-position: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallView_callControls_button_micOn {
|
|
|
|
&::before {
|
2020-11-23 18:27:37 +03:00
|
|
|
background-image: url('$(res)/img/voip/mic-on.svg');
|
2020-11-18 17:22:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallView_callControls_button_micOff {
|
|
|
|
&::before {
|
2020-11-23 18:27:37 +03:00
|
|
|
background-image: url('$(res)/img/voip/mic-off.svg');
|
2020-11-18 17:22:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallView_callControls_button_vidOn {
|
|
|
|
&::before {
|
2020-11-23 18:27:37 +03:00
|
|
|
background-image: url('$(res)/img/voip/vid-on.svg');
|
2020-11-18 17:22:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallView_callControls_button_vidOff {
|
|
|
|
&::before {
|
2020-11-23 18:27:37 +03:00
|
|
|
background-image: url('$(res)/img/voip/vid-off.svg');
|
2020-11-18 17:22:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallView_callControls_button_hangup {
|
|
|
|
&::before {
|
2020-11-23 18:27:37 +03:00
|
|
|
background-image: url('$(res)/img/voip/hangup.svg');
|
2020-11-18 17:22:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallView_callControls_button_invisible {
|
|
|
|
visibility: hidden;
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
}
|