signal-desktop/stylesheets/components/AudioCapture.scss

132 lines
2.3 KiB
SCSS
Raw Normal View History

2022-03-10 00:38:07 +00:00
// Copyright 2016-2022 Signal Messenger, LLC
2021-09-29 20:23:06 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
.AudioCapture {
display: flex;
text-align: center;
flex-direction: row;
justify-content: center;
align-items: center;
background: none;
&__microphone {
height: 32px;
width: 32px;
2022-06-15 17:53:08 +00:00
border-radius: 4px;
2021-09-29 20:23:06 +00:00
text-align: center;
background: none;
2022-06-13 23:37:29 +00:00
display: flex;
align-items: center;
justify-content: center;
2021-09-29 20:23:06 +00:00
padding: 0;
border: none;
2022-06-13 23:37:29 +00:00
@include keyboard-mode {
&:focus {
2022-06-15 17:53:08 +00:00
outline: 2px solid $color-ultramarine;
2022-06-13 23:37:29 +00:00
}
2021-09-29 20:23:06 +00:00
}
outline: none;
&:before {
content: '';
display: inline-block;
height: 24px;
width: 24px;
@include light-theme {
@include color-svg(
'../images/icons/v2/mic-outline-24.svg',
$color-gray-75
);
}
@include dark-theme {
@include color-svg(
2022-06-13 23:37:29 +00:00
'../images/icons/v2/mic-outline-24.svg',
2021-09-29 20:23:06 +00:00
$color-gray-15
);
}
}
}
&__recorder-button {
flex-grow: 0;
flex-shrink: 0;
width: 32px;
height: 32px;
border-radius: 32px;
opacity: 0.3;
text-align: center;
padding: 0;
&:focus,
&:hover {
opacity: 1;
}
outline: none;
.icon {
display: inline-block;
width: 24px;
height: 24px;
margin-bottom: -3px;
}
&--complete {
background: lighten($color-accent-green, 20%);
border: 1px solid $color-accent-green;
.icon {
@include color-svg(
'../images/icons/v2/check-24.svg',
$color-accent-green
);
}
}
&--cancel {
background: lighten($color-accent-red, 20%);
border: 1px solid $color-accent-red;
.icon {
@include color-svg('../images/icons/v2/x-24.svg', $color-accent-red);
}
}
}
&__time {
color: $color-gray-60;
font-variant: tabular-nums;
line-height: 36px;
2022-03-10 00:38:07 +00:00
margin: 0 15px;
2021-09-29 20:23:06 +00:00
@keyframes pulse {
0% {
opacity: 0;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}
}
&::before {
content: '';
display: inline-block;
border-radius: 10px;
width: 10px;
height: 10px;
background: $color-accent-red;
margin-right: 10px;
opacity: 0;
animation: pulse 2s infinite;
}
}
}