signal-desktop/stylesheets/components/Waveform.scss

72 lines
1.4 KiB
SCSS
Raw Normal View History

2023-03-02 20:55:40 +00:00
// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.Waveform {
2023-11-27 23:05:50 +00:00
/**
* Progress indicators for audio or video content should always be left-to-right.
* This overrides the default direction of the page.
*/
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
direction: ltr;
2023-03-02 20:55:40 +00:00
flex-shrink: 0;
display: flex;
align-items: center;
cursor: pointer;
outline: 0;
&__bar {
display: inline-block;
width: 2px;
border-radius: 2px;
2024-07-24 00:31:40 +00:00
transition:
height 250ms,
background 250ms;
2023-03-02 20:55:40 +00:00
&:not(:first-of-type) {
2023-04-20 17:03:43 +00:00
margin-inline-start: 2px;
2023-03-02 20:55:40 +00:00
}
@include light-theme {
background: $color-black-alpha-40;
&--active {
background: $color-black-alpha-80;
}
}
@include dark-theme {
background: $color-white-alpha-40;
&--active {
background: $color-white-alpha-80;
}
}
.module-message__audio-attachment--incoming & {
@include light-theme {
&--active {
background: $color-black-alpha-80;
}
}
@include dark-theme {
&--active {
background: $color-white-alpha-70;
}
}
}
.module-message__audio-attachment--outgoing & {
background: $color-white-alpha-40;
&--active {
background: $color-white-alpha-80;
}
}
}
}