2021-04-27 04:48:24 +02:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-04-27 04:48:24 +02:00
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 15:57:16 +02: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-04-27 04:48:24 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_PlayPauseButton {
|
|
|
|
position: relative;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
2022-07-27 15:39:29 +02:00
|
|
|
min-width: 32px; /* for when the button is used in a flexbox */
|
|
|
|
min-height: 32px; /* for when the button is used in a flexbox */
|
2021-04-27 04:48:24 +02:00
|
|
|
border-radius: 32px;
|
2021-10-16 20:29:03 +02:00
|
|
|
background-color: $system;
|
2021-04-27 04:48:24 +02:00
|
|
|
|
|
|
|
&::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2022-07-27 15:39:29 +02:00
|
|
|
position: absolute; /* sizing varies by icon */
|
2021-10-16 20:28:01 +02:00
|
|
|
background-color: $secondary-content;
|
2021-04-27 04:48:24 +02:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_PlayPauseButton_disabled::before {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_PlayPauseButton_play::before {
|
|
|
|
width: 13px;
|
|
|
|
height: 16px;
|
2022-07-27 15:39:29 +02:00
|
|
|
top: 8px; /* center */
|
|
|
|
left: 12px; /* center */
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/play.svg");
|
2021-04-27 04:48:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_PlayPauseButton_pause::before {
|
|
|
|
width: 10px;
|
|
|
|
height: 12px;
|
2022-07-27 15:39:29 +02:00
|
|
|
top: 10px; /* center */
|
|
|
|
left: 11px; /* center */
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/pause.svg");
|
2021-04-27 04:48:24 +02:00
|
|
|
}
|
|
|
|
}
|