2023-02-24 23:18:57 +00:00
|
|
|
// Copyright 2022 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
@mixin audio-icon($name, $icon, $color) {
|
|
|
|
&--#{$name}::before {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/#{$icon}.svg', $color, false);
|
2023-02-24 23:18:57 +00:00
|
|
|
-webkit-mask-size: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin all-audio-icons($color) {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include audio-icon(play, v3/play/play-fill, $color);
|
|
|
|
@include audio-icon(pause, v3/pause/pause-fill, $color);
|
|
|
|
@include audio-icon(pending, v2/audio-spinner-arc-22, $color);
|
2023-02-24 23:18:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.MiniPlayer {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline: 0;
|
2023-02-24 23:18:57 +00:00
|
|
|
z-index: calc($z-index-above-above-base + 1);
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 18px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 8px;
|
|
|
|
padding-inline: 16px;
|
2023-03-20 18:03:21 +00:00
|
|
|
margin-top: calc(52px + var(--title-bar-drag-area-height));
|
2023-04-20 17:03:43 +00:00
|
|
|
text-align: start;
|
2023-02-24 23:18:57 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-gray-02;
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-gray-75;
|
|
|
|
}
|
|
|
|
|
2023-03-20 18:03:21 +00:00
|
|
|
&--flow {
|
|
|
|
margin-top: 0;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2023-02-24 23:18:57 +00:00
|
|
|
&__playback-button {
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
display: block;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include all-audio-icons($color-gray-60);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
@include all-audio-icons($color-gray-15);
|
|
|
|
}
|
|
|
|
|
|
|
|
&--pending::before {
|
|
|
|
animation: rotate 1000ms linear infinite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__state {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__middot {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 0;
|
|
|
|
padding-inline: 5px;
|
2023-02-24 23:18:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__close-button {
|
|
|
|
@include button-reset;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
2023-05-04 18:04:22 +00:00
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2023-02-24 23:18:57 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
@include light-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x.svg', $color-gray-75);
|
2023-02-24 23:18:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
2023-05-04 18:04:22 +00:00
|
|
|
@include color-svg('../images/icons/v3/x/x.svg', $color-gray-15);
|
2023-02-24 23:18:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: $color-gray-02;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background: $color-gray-05;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: $color-gray-80;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background: $color-gray-75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|