2021-08-08 17:15:18 +08:00
|
|
|
/*
|
2024-09-09 21:57:16 +08:00
|
|
|
Copyright 2024 New Vector Ltd.
|
|
|
|
Copyright 2021, 2022 Šimon Brandner <simon.bra.ag@gmail.com>
|
|
|
|
Copyright 2020, 2021 The Matrix.org Foundation C.I.C.
|
2021-08-08 17:15:18 +08:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
|
2024-09-09 21:57:16 +08:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2021-08-08 17:15:18 +08:00
|
|
|
*/
|
|
|
|
|
2022-07-27 21:39:29 +08: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-31 03:13:39 +08:00
|
|
|
[data-whatinput="mouse"] .mx_LegacyCallViewButtons.mx_LegacyCallViewButtons_hidden {
|
2022-07-27 21:39:29 +08:00
|
|
|
opacity: 0.001; /* opacity 0 can cause a re-layout */
|
2022-01-04 16:57:46 +08:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
.mx_LegacyCallViewButtons {
|
|
|
|
--LegacyCallViewButtons_dropdownButton-size: 16px;
|
2022-05-24 23:49:04 +08:00
|
|
|
|
2021-08-08 17:15:18 +08:00
|
|
|
position: absolute;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2022-05-04 23:16:38 +08:00
|
|
|
bottom: 32px;
|
2021-08-08 17:15:18 +08:00
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 0.5s;
|
2022-07-27 21:39:29 +08:00
|
|
|
z-index: 200; /* To be above _all_ feeds */
|
2021-11-16 01:24:11 +08:00
|
|
|
gap: 18px;
|
2021-08-08 17:15:18 +08:00
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
.mx_LegacyCallViewButtons_button {
|
2021-08-08 17:15:18 +08:00
|
|
|
cursor: pointer;
|
2021-11-16 01:24:11 +08: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 17:15:18 +08:00
|
|
|
|
2022-05-04 22:41:56 +08:00
|
|
|
position: relative;
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
box-shadow: 0px 4px 4px 0px #00000026; /* Same on both themes */
|
2022-05-04 22:41:56 +08:00
|
|
|
|
2021-08-08 17:15:18 +08:00
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
display: inline-block;
|
|
|
|
|
2021-11-16 01:24:11 +08:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-position: center;
|
2021-08-08 17:15:18 +08:00
|
|
|
|
2021-11-16 01:24:11 +08:00
|
|
|
background-color: $call-view-button-on-foreground;
|
2021-08-08 17:15:18 +08:00
|
|
|
|
2021-11-16 01:24:11 +08:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
2021-08-08 17:15:18 +08:00
|
|
|
}
|
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_dropdownButton {
|
|
|
|
width: var(--LegacyCallViewButtons_dropdownButton-size);
|
|
|
|
height: var(--LegacyCallViewButtons_dropdownButton-size);
|
2022-05-04 22:41:56 +08:00
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
|
|
|
|
&::before {
|
2024-10-21 18:36:31 +08:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/chevron-up.svg");
|
2022-05-04 22:41:56 +08:00
|
|
|
}
|
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_dropdownButton_collapsed::before {
|
2022-05-04 22:41:56 +08:00
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* State buttons */
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_button_on {
|
2021-11-16 01:24:11 +08:00
|
|
|
background-color: $call-view-button-on-background;
|
2021-08-08 17:15:18 +08:00
|
|
|
|
2021-11-16 01:24:11 +08:00
|
|
|
&::before {
|
|
|
|
background-color: $call-view-button-on-foreground;
|
|
|
|
}
|
2021-08-08 17:15:18 +08:00
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_button_mic::before {
|
2023-01-02 21:36:58 +08:00
|
|
|
height: 20px;
|
2024-10-08 20:00:37 +08:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/mic-on-solid.svg");
|
2023-01-02 21:36:58 +08:00
|
|
|
width: 20px;
|
2021-11-16 01:24:11 +08:00
|
|
|
}
|
2021-08-08 17:15:18 +08:00
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_button_vid::before {
|
2024-10-08 20:00:37 +08:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/video-call-solid.svg");
|
2021-11-16 01:24:11 +08:00
|
|
|
}
|
2021-08-08 17:15:18 +08:00
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_button_screensharing {
|
2021-11-16 01:24:11 +08:00
|
|
|
background-color: $accent;
|
2021-08-08 17:15:18 +08:00
|
|
|
|
2021-11-16 01:24:11 +08:00
|
|
|
&::before {
|
2024-10-08 20:00:37 +08:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/share-screen-solid.svg");
|
2022-07-27 21:39:29 +08:00
|
|
|
background-color: white; /* Same on both themes */
|
2021-11-16 01:24:11 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_button_sidebar::before {
|
2021-11-16 01:24:11 +08:00
|
|
|
mask-image: url("$(res)/img/voip/call-view/sidebar-on.svg");
|
|
|
|
}
|
2021-08-08 17:15:18 +08:00
|
|
|
}
|
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_button_off {
|
2021-11-16 01:24:11 +08:00
|
|
|
background-color: $call-view-button-off-background;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $call-view-button-off-foreground;
|
|
|
|
}
|
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_button_mic::before {
|
2023-01-02 21:36:58 +08:00
|
|
|
height: 20px;
|
2024-10-08 20:00:37 +08:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/mic-off-solid.svg");
|
2023-01-02 21:36:58 +08:00
|
|
|
width: 20px;
|
2021-11-16 01:24:11 +08:00
|
|
|
}
|
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_button_vid::before {
|
2024-10-08 20:00:37 +08:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/video-call-off-solid.svg");
|
2021-11-16 01:24:11 +08:00
|
|
|
}
|
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_button_screensharing {
|
2021-11-16 01:24:11 +08:00
|
|
|
background-color: $call-view-button-on-background;
|
|
|
|
|
|
|
|
&::before {
|
2024-10-08 20:00:37 +08:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/share-screen-solid.svg");
|
2021-11-16 01:24:11 +08:00
|
|
|
background-color: $call-view-button-on-foreground;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_button_sidebar {
|
2021-11-16 01:24:11 +08:00
|
|
|
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 17:15:18 +08:00
|
|
|
}
|
2022-07-27 21:39:29 +08:00
|
|
|
/* State buttons */
|
2021-08-08 17:15:18 +08:00
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Stateless buttons */
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_dialpad::before {
|
2021-11-16 01:24:11 +08:00
|
|
|
mask-image: url("$(res)/img/voip/call-view/dialpad.svg");
|
2021-08-08 17:15:18 +08:00
|
|
|
}
|
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_button_hangup {
|
2021-11-16 01:24:11 +08:00
|
|
|
background-color: $alert;
|
|
|
|
|
|
|
|
&::before {
|
2023-01-04 12:44:38 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/call/hangup.svg");
|
2022-07-27 21:39:29 +08:00
|
|
|
background-color: white; /* Same on both themes */
|
2021-11-16 01:24:11 +08:00
|
|
|
}
|
2021-08-08 17:15:18 +08:00
|
|
|
}
|
|
|
|
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_button_more::before {
|
2024-10-18 21:51:54 +08:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/overflow-horizontal.svg");
|
2021-08-08 17:15:18 +08:00
|
|
|
}
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Stateless buttons */
|
2021-08-08 17:15:18 +08:00
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Invisible state */
|
2022-08-31 03:13:39 +08:00
|
|
|
&.mx_LegacyCallViewButtons_button_invisible {
|
2021-08-08 17:15:18 +08:00
|
|
|
visibility: hidden;
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
}
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Invisible state */
|
2021-08-08 17:15:18 +08:00
|
|
|
}
|
|
|
|
}
|