Signal-Desktop/stylesheets/_recorder.scss

122 lines
2.0 KiB
SCSS
Raw Normal View History

2020-10-30 20:34:04 +00:00
// Copyright 2016-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2016-08-15 22:36:29 +00:00
.capture-audio {
text-align: center;
.microphone {
2019-08-06 19:18:37 +00:00
height: 32px;
width: 32px;
2016-08-15 22:36:29 +00:00
text-align: center;
opacity: 0.5;
background: transparent;
padding: 0;
border: none;
2018-05-04 20:07:52 +00:00
&:focus,
&:hover {
opacity: 1;
2016-08-15 22:36:29 +00:00
}
outline: none;
2016-08-15 22:36:29 +00:00
&:before {
content: '';
display: inline-block;
2016-09-03 21:36:40 +00:00
height: 24px;
2016-08-15 22:36:29 +00:00
width: 24px;
2019-10-04 18:06:17 +00:00
@include light-theme {
@include color-svg(
'../images/icons/v2/mic-outline-24.svg',
$color-gray-75
2019-10-04 18:06:17 +00:00
);
}
@include dark-theme {
@include color-svg(
'../images/icons/v2/mic-solid-24.svg',
$color-gray-15
2019-10-04 18:06:17 +00:00
);
}
2016-08-15 22:36:29 +00:00
}
}
}
.recorder {
button {
float: right;
2019-08-06 19:18:37 +00:00
width: 32px;
height: 32px;
border-radius: 32px;
2016-08-15 22:36:29 +00:00
margin-left: 5px;
opacity: 0.3;
2016-08-15 22:36:29 +00:00
text-align: center;
padding: 0;
2018-05-04 20:07:52 +00:00
&:focus,
&:hover {
opacity: 1;
2016-08-15 22:36:29 +00:00
}
outline: none;
2016-08-15 22:36:29 +00:00
.icon {
display: inline-block;
2019-10-04 18:06:17 +00:00
width: 24px;
height: 24px;
2016-08-15 22:36:29 +00:00
}
}
.finish {
2019-10-04 18:06:17 +00:00
background: lighten($color-accent-green, 20%);
border: 1px solid $color-accent-green;
2016-08-15 22:36:29 +00:00
2018-05-04 20:07:52 +00:00
.icon {
2019-10-04 18:06:17 +00:00
@include color-svg(
'../images/icons/v2/check-24.svg',
$color-accent-green
);
2018-05-04 20:07:52 +00:00
}
2016-08-15 22:36:29 +00:00
}
.close {
2019-10-04 18:06:17 +00:00
background: lighten($color-accent-red, 20%);
border: 1px solid $color-accent-red;
2016-08-15 22:36:29 +00:00
2018-05-04 20:07:52 +00:00
.icon {
2019-10-04 18:06:17 +00:00
@include color-svg('../images/icons/v2/x-24.svg', $color-accent-red);
2018-05-04 20:07:52 +00:00
}
2016-08-15 22:36:29 +00:00
}
.time {
2019-10-04 18:06:17 +00:00
color: $color-gray-60;
2016-08-15 22:36:29 +00:00
float: right;
line-height: 36px;
padding: 0 10px;
2019-08-06 19:18:37 +00:00
transform: translateY(-2px);
2016-08-15 22:36:29 +00:00
@keyframes pulse {
2018-05-04 20:07:52 +00:00
0% {
opacity: 0;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}
2016-08-15 22:36:29 +00:00
}
&::before {
content: '';
display: inline-block;
border-radius: 10px;
width: 10px;
height: 10px;
2019-10-04 18:06:17 +00:00
background: $color-accent-red;
2016-08-15 22:36:29 +00:00
margin-right: 10px;
opacity: 0;
animation: pulse 2s infinite;
}
}
}