2021-08-08 12:15:18 +03:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
Copyright 2020 - 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
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_CallViewButtons {
|
|
|
|
position: absolute;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2021-11-15 20:24:11 +03:00
|
|
|
bottom: 24px;
|
2021-08-08 12:15:18 +03:00
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 0.5s;
|
|
|
|
z-index: 200; // To be above _all_ feeds
|
2021-11-15 20:24:11 +03:00
|
|
|
gap: 18px;
|
2021-08-08 12:15:18 +03:00
|
|
|
|
|
|
|
&.mx_CallViewButtons_hidden {
|
|
|
|
opacity: 0.001; // opacity 0 can cause a re-layout
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_CallViewButtons_button {
|
|
|
|
cursor: pointer;
|
2021-11-15 20:24:11 +03:00
|
|
|
|
|
|
|
background-color: $call-view-button-on-background;
|
|
|
|
|
|
|
|
border-radius: 100%;
|
|
|
|
height: 40px;
|
|
|
|
width: 40px;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2021-08-08 12:15:18 +03:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
|
2021-11-15 20:24:11 +03:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-position: center;
|
2021-08-08 12:15:18 +03:00
|
|
|
|
2021-11-15 20:24:11 +03:00
|
|
|
background-color: $call-view-button-on-foreground;
|
2021-08-08 12:15:18 +03:00
|
|
|
|
2021-11-15 20:24:11 +03:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
2021-08-08 12:15:18 +03:00
|
|
|
}
|
|
|
|
|
2021-11-15 20:24:11 +03:00
|
|
|
// State buttons
|
|
|
|
&.mx_CallViewButtons_button_on {
|
|
|
|
background-color: $call-view-button-on-background;
|
2021-08-08 12:15:18 +03:00
|
|
|
|
2021-11-15 20:24:11 +03:00
|
|
|
&::before {
|
|
|
|
background-color: $call-view-button-on-foreground;
|
|
|
|
}
|
2021-08-08 12:15:18 +03:00
|
|
|
|
2021-11-15 20:24:11 +03:00
|
|
|
&.mx_CallViewButtons_button_mic::before {
|
|
|
|
mask-image: url('$(res)/img/voip/call-view/mic-on.svg');
|
|
|
|
}
|
2021-08-08 12:15:18 +03:00
|
|
|
|
2021-11-15 20:24:11 +03:00
|
|
|
&.mx_CallViewButtons_button_vid::before {
|
|
|
|
mask-image: url('$(res)/img/voip/call-view/cam-on.svg');
|
|
|
|
}
|
2021-08-08 12:15:18 +03:00
|
|
|
|
2021-11-15 20:24:11 +03:00
|
|
|
&.mx_CallViewButtons_button_screensharing {
|
|
|
|
background-color: $accent;
|
2021-08-08 12:15:18 +03:00
|
|
|
|
2021-11-15 20:24:11 +03:00
|
|
|
&::before {
|
|
|
|
mask-image: url('$(res)/img/voip/call-view/screensharing.svg');
|
|
|
|
background-color: white; // Same on both themes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_CallViewButtons_button_sidebar::before {
|
|
|
|
mask-image: url('$(res)/img/voip/call-view/sidebar-on.svg');
|
|
|
|
}
|
2021-08-08 12:15:18 +03:00
|
|
|
}
|
|
|
|
|
2021-11-15 20:24:11 +03:00
|
|
|
&.mx_CallViewButtons_button_off {
|
|
|
|
background-color: $call-view-button-off-background;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $call-view-button-off-foreground;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_CallViewButtons_button_mic::before {
|
|
|
|
mask-image: url('$(res)/img/voip/call-view/mic-off.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_CallViewButtons_button_vid::before {
|
|
|
|
mask-image: url('$(res)/img/voip/call-view/cam-off.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_CallViewButtons_button_screensharing {
|
|
|
|
background-color: $call-view-button-on-background;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
mask-image: url('$(res)/img/voip/call-view/screensharing.svg');
|
|
|
|
background-color: $call-view-button-on-foreground;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_CallViewButtons_button_sidebar {
|
|
|
|
background-color: $call-view-button-on-background;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
mask-image: url('$(res)/img/voip/call-view/sidebar-off.svg');
|
|
|
|
background-color: $call-view-button-on-foreground;
|
|
|
|
}
|
|
|
|
}
|
2021-08-08 12:15:18 +03:00
|
|
|
}
|
2021-11-15 20:24:11 +03:00
|
|
|
// State buttons
|
2021-08-08 12:15:18 +03:00
|
|
|
|
2021-11-15 20:24:11 +03:00
|
|
|
// Stateless buttons
|
|
|
|
&.mx_CallViewButtons_dialpad::before {
|
|
|
|
mask-image: url('$(res)/img/voip/call-view/dialpad.svg');
|
2021-08-08 12:15:18 +03:00
|
|
|
}
|
|
|
|
|
2021-11-15 20:24:11 +03:00
|
|
|
&.mx_CallViewButtons_button_hangup {
|
|
|
|
background-color: $alert;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
mask-image: url('$(res)/img/voip/call-view/hangup.svg');
|
|
|
|
background-color: white; // Same on both themes
|
|
|
|
}
|
2021-08-08 12:15:18 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_CallViewButtons_button_more::before {
|
2021-11-15 20:24:11 +03:00
|
|
|
mask-image: url('$(res)/img/voip/call-view/more.svg');
|
2021-08-08 12:15:18 +03:00
|
|
|
}
|
2021-11-15 20:24:11 +03:00
|
|
|
// Stateless buttons
|
2021-08-08 12:15:18 +03:00
|
|
|
|
2021-11-15 20:24:11 +03:00
|
|
|
// Invisible state
|
2021-08-08 12:15:18 +03:00
|
|
|
&.mx_CallViewButtons_button_invisible {
|
|
|
|
visibility: hidden;
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
}
|
2021-11-15 20:24:11 +03:00
|
|
|
// Invisible state
|
2021-08-08 12:15:18 +03:00
|
|
|
}
|
|
|
|
}
|