2021-04-27 10:48:24 +08:00
|
|
|
/*
|
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
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_PlayPauseButton {
|
|
|
|
position: relative;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
2022-07-27 21:39:29 +08: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 10:48:24 +08:00
|
|
|
border-radius: 32px;
|
2021-10-17 02:29:03 +08:00
|
|
|
background-color: $system;
|
2021-04-27 10:48:24 +08:00
|
|
|
|
|
|
|
&::before {
|
2022-12-12 19:24:14 +08:00
|
|
|
content: "";
|
2022-07-27 21:39:29 +08:00
|
|
|
position: absolute; /* sizing varies by icon */
|
2021-10-17 02:28:01 +08:00
|
|
|
background-color: $secondary-content;
|
2021-04-27 10:48:24 +08: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 21:39:29 +08:00
|
|
|
top: 8px; /* center */
|
|
|
|
left: 12px; /* center */
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/play.svg");
|
2021-04-27 10:48:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_PlayPauseButton_pause::before {
|
|
|
|
width: 10px;
|
|
|
|
height: 12px;
|
2022-07-27 21:39:29 +08:00
|
|
|
top: 10px; /* center */
|
|
|
|
left: 11px; /* center */
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/pause.svg");
|
2021-04-27 10:48:24 +08:00
|
|
|
}
|
|
|
|
}
|