-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
_recorder.scss
121 lines (105 loc) · 2.05 KB
/
_recorder.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// Copyright 2016-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.capture-audio {
text-align: center;
.microphone {
height: 32px;
width: 32px;
text-align: center;
opacity: 0.5;
background: transparent;
padding: 0;
border: none;
&:focus,
&:hover {
opacity: 1;
}
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(
'../images/icons/v2/mic-solid-24.svg',
$color-gray-15
);
}
}
}
}
.recorder {
button {
float: right;
width: 32px;
height: 32px;
border-radius: 32px;
margin-left: 5px;
opacity: 0.3;
text-align: center;
padding: 0;
&:focus,
&:hover {
opacity: 1;
}
outline: none;
.icon {
display: inline-block;
width: 24px;
height: 24px;
}
}
.finish {
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
);
}
}
.close {
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;
float: right;
line-height: 36px;
padding: 0 10px;
transform: translateY(-2px);
@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;
}
}
}