signal-desktop/stylesheets/components/PlaybackRateButton.scss

57 lines
1.2 KiB
SCSS
Raw Normal View History

2023-02-24 23:18:57 +00:00
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
2023-02-24 23:18:57 +00:00
.PlaybackRateButton {
2024-11-15 23:09:31 +00:00
@include mixins.button-reset;
2023-02-24 23:18:57 +00:00
2024-11-15 23:09:31 +00:00
& {
@include mixins.font-body-2-bold;
2023-02-24 23:18:57 +00:00
2024-11-15 23:09:31 +00:00
width: 38px;
height: 18px;
text-align: center;
font-weight: 700;
border-radius: 4px;
font-size: 11px;
padding-block: 1px;
padding-inline: 2px;
margin-block: -2px;
margin-inline: 0;
line-height: 16px;
letter-spacing: 0.05px;
user-select: none;
}
2023-02-24 23:18:57 +00:00
&--message-incoming {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
color: variables.$color-gray-60;
background: variables.$color-black-alpha-08;
2023-02-24 23:18:57 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
color: variables.$color-gray-25;
background: variables.$color-white-alpha-08;
2023-02-24 23:18:57 +00:00
}
}
&--message-outgoing {
2024-11-15 23:09:31 +00:00
color: variables.$color-white-alpha-80;
background: variables.$color-white-alpha-20;
2023-02-24 23:18:57 +00:00
}
&--mini-player {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
color: variables.$color-gray-60;
background: variables.$color-black-alpha-08;
2023-02-24 23:18:57 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
color: variables.$color-gray-25;
background: variables.$color-white-alpha-08;
2023-02-24 23:18:57 +00:00
}
}
&::after {
content: '×';
2023-02-24 23:18:57 +00:00
}
}