2021-08-08 09:15:18 +00:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
Copyright 2020 - 2021 The Matrix.org Foundation C.I.C.
|
2022-05-04 15:16:38 +00:00
|
|
|
Copyright 2021 - 2022 Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-08-08 09:15:18 +00:00
|
|
|
|
|
|
|
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-07-27 13:39:29 +00:00
|
|
|
/* data-whatintent makes more sense here semantically but then the tooltip would stay visible without the button */
|
|
|
|
/* which looks broken, so we match the behaviour of tooltips which is fine too. */
|
2022-08-30 19:13:39 +00:00
|
|
|
[data-whatinput="mouse"] .mx_LegacyCallViewButtons.mx_LegacyCallViewButtons_hidden {
|
2022-07-27 13:39:29 +00:00
|
|
|
opacity: 0.001; /* opacity 0 can cause a re-layout */
|
2022-01-04 08:57:46 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
.mx_LegacyCallViewButtons {
|
|
|
|
--LegacyCallViewButtons_dropdownButton-size: 16px;
|
2022-05-24 15:49:04 +00:00
|
|
|
|
2021-08-08 09:15:18 +00:00
|
|
|
position: absolute;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2022-05-04 15:16:38 +00:00
|
|
|
bottom: 32px;
|
2021-08-08 09:15:18 +00:00
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 0.5s;
|
2022-07-27 13:39:29 +00:00
|
|
|
z-index: 200; /* To be above _all_ feeds */
|
2021-11-15 17:24:11 +00:00
|
|
|
gap: 18px;
|
2021-08-08 09:15:18 +00:00
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
.mx_LegacyCallViewButtons_button {
|
2021-08-08 09:15:18 +00:00
|
|
|
cursor: pointer;
|
2021-11-15 17:24:11 +00: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 09:15:18 +00:00
|
|
|
|
2022-05-04 14:41:56 +00:00
|
|
|
position: relative;
|
|
|
|
|
2022-07-27 13:39:29 +00:00
|
|
|
box-shadow: 0px 4px 4px 0px #00000026; /* Same on both themes */
|
2022-05-04 14:41:56 +00:00
|
|
|
|
2021-08-08 09:15:18 +00:00
|
|
|
&::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
content: "";
|
2021-08-08 09:15:18 +00:00
|
|
|
display: inline-block;
|
|
|
|
|
2021-11-15 17:24:11 +00:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-position: center;
|
2021-08-08 09:15:18 +00:00
|
|
|
|
2021-11-15 17:24:11 +00:00
|
|
|
background-color: $call-view-button-on-foreground;
|
2021-08-08 09:15:18 +00:00
|
|
|
|
2021-11-15 17:24:11 +00:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
2021-08-08 09:15:18 +00:00
|
|
|
}
|
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_dropdownButton {
|
|
|
|
width: var(--LegacyCallViewButtons_dropdownButton-size);
|
|
|
|
height: var(--LegacyCallViewButtons_dropdownButton-size);
|
2022-05-04 14:41:56 +00:00
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/message/chevron-up.svg");
|
2022-05-04 14:41:56 +00:00
|
|
|
}
|
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_dropdownButton_collapsed::before {
|
2022-05-04 14:41:56 +00:00
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-27 13:39:29 +00:00
|
|
|
/* State buttons */
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_button_on {
|
2021-11-15 17:24:11 +00:00
|
|
|
background-color: $call-view-button-on-background;
|
2021-08-08 09:15:18 +00:00
|
|
|
|
2021-11-15 17:24:11 +00:00
|
|
|
&::before {
|
|
|
|
background-color: $call-view-button-on-foreground;
|
|
|
|
}
|
2021-08-08 09:15:18 +00:00
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_button_mic::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/voip/call-view/mic-on.svg");
|
2021-11-15 17:24:11 +00:00
|
|
|
}
|
2021-08-08 09:15:18 +00:00
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_button_vid::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/voip/call-view/cam-on.svg");
|
2021-11-15 17:24:11 +00:00
|
|
|
}
|
2021-08-08 09:15:18 +00:00
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_button_screensharing {
|
2021-11-15 17:24:11 +00:00
|
|
|
background-color: $accent;
|
2021-08-08 09:15:18 +00:00
|
|
|
|
2021-11-15 17:24:11 +00:00
|
|
|
&::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/voip/call-view/screensharing.svg");
|
2022-07-27 13:39:29 +00:00
|
|
|
background-color: white; /* Same on both themes */
|
2021-11-15 17:24:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_button_sidebar::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/voip/call-view/sidebar-on.svg");
|
2021-11-15 17:24:11 +00:00
|
|
|
}
|
2021-08-08 09:15:18 +00:00
|
|
|
}
|
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_button_off {
|
2021-11-15 17:24:11 +00:00
|
|
|
background-color: $call-view-button-off-background;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $call-view-button-off-foreground;
|
|
|
|
}
|
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_button_mic::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/voip/call-view/mic-off.svg");
|
2021-11-15 17:24:11 +00:00
|
|
|
}
|
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_button_vid::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/voip/call-view/cam-off.svg");
|
2021-11-15 17:24:11 +00:00
|
|
|
}
|
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_button_screensharing {
|
2021-11-15 17:24:11 +00:00
|
|
|
background-color: $call-view-button-on-background;
|
|
|
|
|
|
|
|
&::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/voip/call-view/screensharing.svg");
|
2021-11-15 17:24:11 +00:00
|
|
|
background-color: $call-view-button-on-foreground;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_button_sidebar {
|
2021-11-15 17:24:11 +00:00
|
|
|
background-color: $call-view-button-on-background;
|
|
|
|
|
|
|
|
&::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/voip/call-view/sidebar-off.svg");
|
2021-11-15 17:24:11 +00:00
|
|
|
background-color: $call-view-button-on-foreground;
|
|
|
|
}
|
|
|
|
}
|
2021-08-08 09:15:18 +00:00
|
|
|
}
|
2022-07-27 13:39:29 +00:00
|
|
|
/* State buttons */
|
2021-08-08 09:15:18 +00:00
|
|
|
|
2022-07-27 13:39:29 +00:00
|
|
|
/* Stateless buttons */
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_dialpad::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/voip/call-view/dialpad.svg");
|
2021-08-08 09:15:18 +00:00
|
|
|
}
|
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_button_hangup {
|
2021-11-15 17:24:11 +00:00
|
|
|
background-color: $alert;
|
|
|
|
|
|
|
|
&::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/voip/call-view/hangup.svg");
|
2022-07-27 13:39:29 +00:00
|
|
|
background-color: white; /* Same on both themes */
|
2021-11-15 17:24:11 +00:00
|
|
|
}
|
2021-08-08 09:15:18 +00:00
|
|
|
}
|
|
|
|
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_button_more::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/voip/call-view/more.svg");
|
2021-08-08 09:15:18 +00:00
|
|
|
}
|
2022-07-27 13:39:29 +00:00
|
|
|
/* Stateless buttons */
|
2021-08-08 09:15:18 +00:00
|
|
|
|
2022-07-27 13:39:29 +00:00
|
|
|
/* Invisible state */
|
2022-08-30 19:13:39 +00:00
|
|
|
&.mx_LegacyCallViewButtons_button_invisible {
|
2021-08-08 09:15:18 +00:00
|
|
|
visibility: hidden;
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
}
|
2022-07-27 13:39:29 +00:00
|
|
|
/* Invisible state */
|
2021-08-08 09:15:18 +00:00
|
|
|
}
|
|
|
|
}
|