element-web/res/css/views/audio_messages/_PlayPauseButton.pcss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.1 KiB
Text
Raw Normal View History

2021-04-27 05:48:24 +03:00
/*
Copyright 2024 New Vector Ltd.
2021-04-27 05:48:24 +03:00
Copyright 2021 The Matrix.org Foundation C.I.C.
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 05:48:24 +03:00
*/
.mx_PlayPauseButton {
position: relative;
width: 32px;
height: 32px;
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 05:48:24 +03:00
border-radius: 32px;
background-color: $system;
2021-04-27 05:48:24 +03:00
&::before {
content: "";
position: absolute; /* sizing varies by icon */
background-color: $secondary-content;
2021-04-27 05:48:24 +03:00
mask-repeat: no-repeat;
mask-size: contain;
top: 6px; /* center */
left: 6px; /* center */
width: 20px;
height: 20px;
2021-04-27 05:48:24 +03:00
}
&.mx_PlayPauseButton_disabled::before {
opacity: 0.5;
}
&.mx_PlayPauseButton_play::before {
mask-image: url("@vector-im/compound-design-tokens/icons/play-solid.svg");
2021-04-27 05:48:24 +03:00
}
&.mx_PlayPauseButton_pause::before {
mask-image: url("@vector-im/compound-design-tokens/icons/pause-solid.svg");
2021-04-27 05:48:24 +03:00
}
}