1 | @import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&family=Roboto:wght@400;700&display=swap');
|
---|
2 |
|
---|
3 | /* === Start theme definitions === */
|
---|
4 |
|
---|
5 | :root {
|
---|
6 | --primary-bg-color: #2191c0;
|
---|
7 | --primary-bg-color-d1: #2785ad;
|
---|
8 | --primary-bg-color-d2: #227497;
|
---|
9 | --primary-box-shadow: 0px 2px 4px 0px #505050;
|
---|
10 |
|
---|
11 | --primary-fg-color: white;
|
---|
12 |
|
---|
13 | --error-bg-color: #ff4242;
|
---|
14 | --error-fg-color: black;
|
---|
15 |
|
---|
16 | --paper-color: #FCFCFC;
|
---|
17 |
|
---|
18 | --monospace-font: 16px 'Roboto Mono', sans-serif;
|
---|
19 | }
|
---|
20 |
|
---|
21 | .theme-error {
|
---|
22 | --primary-bg-color: #ff4242;
|
---|
23 | --primary-fg-color: black;
|
---|
24 | }
|
---|
25 |
|
---|
26 | .theme-flat {
|
---|
27 | --primary-bg-color: transparent;
|
---|
28 | --primary-fg-color: #222;
|
---|
29 | --primary-box-shadow: none;
|
---|
30 |
|
---|
31 | &:hover {
|
---|
32 | --primary-bg-color: #EEE;
|
---|
33 | }
|
---|
34 | }
|
---|
35 |
|
---|
36 | /* === End theme definitions */
|
---|
37 |
|
---|
38 | /* === Start component definitions === */
|
---|
39 |
|
---|
40 | .paper {
|
---|
41 | background-color: var(--paper-color);
|
---|
42 | padding: 1em;
|
---|
43 | border-radius: 0.3em;
|
---|
44 | box-shadow: var(--primary-box-shadow);
|
---|
45 | }
|
---|
46 |
|
---|
47 | .divider {
|
---|
48 | margin: 1em 2em;
|
---|
49 | height: 1px;
|
---|
50 | background-color: #0000001F;
|
---|
51 | border: none;
|
---|
52 | }
|
---|
53 |
|
---|
54 | /* Buttons */
|
---|
55 |
|
---|
56 | .btn-fab {
|
---|
57 | background-color: var(--primary-bg-color);
|
---|
58 | color: var(--primary-fg-color);
|
---|
59 | border: none;
|
---|
60 | box-shadow: var(--primary-box-shadow);
|
---|
61 |
|
---|
62 | font-size: 48px;
|
---|
63 | border-radius: 50%;
|
---|
64 | padding: 0.2em;
|
---|
65 | cursor: pointer;
|
---|
66 | margin: 0 1px 3px 1px; /* Keeps space around the box shadow */
|
---|
67 |
|
---|
68 | -webkit-transition-duration: 0.2s;
|
---|
69 | transition-duration: 0.2s;
|
---|
70 |
|
---|
71 | &:hover {
|
---|
72 | filter: brightness(92%);
|
---|
73 | }
|
---|
74 |
|
---|
75 | &:disabled {
|
---|
76 | filter: grayscale(100%);
|
---|
77 | }
|
---|
78 | }
|
---|
79 |
|
---|
80 | .btn-primary {
|
---|
81 | background-color: var(--primary-bg-color);
|
---|
82 | color: var(--primary-fg-color);
|
---|
83 | border: none;
|
---|
84 | box-shadow: var(--primary-box-shadow);
|
---|
85 |
|
---|
86 | border-radius: 0.3em;
|
---|
87 | padding: 0.5em;
|
---|
88 | cursor: pointer;
|
---|
89 | font-family: 'Roboto', sans-serif;
|
---|
90 | font-size: 16px;
|
---|
91 | text-align: center;
|
---|
92 | margin: 0 1px 3px 1px; /* Keeps space around the box shadow */
|
---|
93 |
|
---|
94 | -webkit-transition-duration: 0.2s;
|
---|
95 | transition-duration: 0.2s;
|
---|
96 |
|
---|
97 | span {
|
---|
98 | text-align: center;
|
---|
99 | vertical-align: middle;
|
---|
100 | }
|
---|
101 |
|
---|
102 | &:hover {
|
---|
103 | filter: brightness(92%);
|
---|
104 | }
|
---|
105 |
|
---|
106 | &:disabled {
|
---|
107 | filter: grayscale(100%);
|
---|
108 | }
|
---|
109 | }
|
---|
110 |
|
---|
111 | /* === End component definitions === */
|
---|
112 |
|
---|
113 | /* Material Design Icon sizes */
|
---|
114 |
|
---|
115 | .mdi-s {
|
---|
116 | font-size: 18px;
|
---|
117 | }
|
---|
118 |
|
---|
119 | .mdi-m {
|
---|
120 | font-size: 24px;
|
---|
121 | }
|
---|
122 |
|
---|
123 | .mdi-l {
|
---|
124 | font-size: 36px;
|
---|
125 | }
|
---|
126 |
|
---|
127 | .mdi-xl {
|
---|
128 | font-size: 48px;
|
---|
129 | }
|
---|
130 |
|
---|
131 | /* Font sizes */
|
---|
132 |
|
---|
133 | .body1 {
|
---|
134 | font-size: 16px;
|
---|
135 | }
|
---|
136 |
|
---|
137 | .body2 {
|
---|
138 | font-size: 14px;
|
---|
139 | }
|
---|
140 |
|
---|
141 | .heading1 {
|
---|
142 | font-size: 48px;
|
---|
143 | }
|
---|
144 |
|
---|
145 | /* === End theme definitions === */
|
---|
146 |
|
---|
147 | body {
|
---|
148 | background-color: var(--paper-color);
|
---|
149 | font-family: 'Roboto', sans-serif;
|
---|
150 | font-size: 16px;
|
---|
151 | }
|
---|
152 |
|
---|
153 | #gs_content {
|
---|
154 | padding: 0;
|
---|
155 | background-color: var(--paper-color);
|
---|
156 | }
|
---|
157 |
|
---|
158 | #gs_banner {
|
---|
159 | margin-bottom: 1em;
|
---|
160 | border-radius: 0 0 0.3em 0.3em;
|
---|
161 | }
|
---|
162 |
|
---|
163 | #audio-transcription-container {
|
---|
164 | margin-top: 2em;
|
---|
165 | }
|
---|
166 |
|
---|
167 | .monospace-font-size {
|
---|
168 | font: var(--monospace-font);
|
---|
169 | padding: 0;
|
---|
170 | position: absolute;
|
---|
171 | top: -100px;
|
---|
172 | }
|
---|
173 |
|
---|
174 | #btnBeginTranscription {
|
---|
175 | float: right;
|
---|
176 | }
|
---|
177 |
|
---|
178 | /* Transcriptions */
|
---|
179 |
|
---|
180 | .transcription__list {
|
---|
181 | padding: 0;
|
---|
182 | list-style-type: none;
|
---|
183 | }
|
---|
184 |
|
---|
185 | .transcription__container {
|
---|
186 | margin-bottom: 1em;
|
---|
187 |
|
---|
188 | &:last-child {
|
---|
189 | margin-bottom: 0;
|
---|
190 | }
|
---|
191 | }
|
---|
192 |
|
---|
193 | .transcription__header {
|
---|
194 | display: flex;
|
---|
195 | width: 100%;
|
---|
196 | justify-content: space-between;
|
---|
197 | align-items: center;
|
---|
198 | margin-bottom: 0.5em;
|
---|
199 | }
|
---|
200 |
|
---|
201 | .transcription__file-name {
|
---|
202 | margin: 0 1em 0 1em;
|
---|
203 | }
|
---|
204 |
|
---|
205 | .transcription__remove-button {
|
---|
206 | order: 100;
|
---|
207 | }
|
---|
208 |
|
---|
209 | .transcription__word-list {
|
---|
210 | font: var(--monospace-font);
|
---|
211 | }
|
---|
212 |
|
---|
213 | .error-list-item {
|
---|
214 | list-style-type: none;
|
---|
215 | background-color: rgba(255, 0, 0, 0.329);
|
---|
216 | border: 1px solid rgba(255, 0, 0, 0.651);
|
---|
217 | border-radius: 5px;
|
---|
218 | margin-bottom: 5px;
|
---|
219 | padding: 1em;
|
---|
220 | }
|
---|
221 |
|
---|
222 | .error-list-item .spaced-block {
|
---|
223 | margin-bottom: 8px;
|
---|
224 |
|
---|
225 | &:last-child {
|
---|
226 | margin-bottom: 0;
|
---|
227 | }
|
---|
228 | }
|
---|
229 |
|
---|
230 | .tooltip-parent {
|
---|
231 | position: static;
|
---|
232 | }
|
---|
233 |
|
---|
234 | .tooltip-parent:hover .tooltip-wrapper {
|
---|
235 | display: block;
|
---|
236 | }
|
---|
237 |
|
---|
238 | .tooltip-parent .tooltip-wrapper {
|
---|
239 | position: absolute;
|
---|
240 | z-index: 10;
|
---|
241 | display: none;
|
---|
242 | }
|
---|
243 |
|
---|
244 | .tooltip {
|
---|
245 | width: 120px;
|
---|
246 | background-color: black;
|
---|
247 | color: #fff;
|
---|
248 | text-align: center;
|
---|
249 | padding: 5px 0;
|
---|
250 | border-radius: 6px;
|
---|
251 | }
|
---|
252 |
|
---|
253 | /* Audio slider element */
|
---|
254 |
|
---|
255 | .audio-slider__container {
|
---|
256 | padding: 8px;
|
---|
257 | margin: 0;
|
---|
258 | display: flex;
|
---|
259 | align-items: center;
|
---|
260 | }
|
---|
261 |
|
---|
262 | .audio-slider__range {
|
---|
263 | /* Override user-agent default styles */
|
---|
264 | -webkit-appearance: none;
|
---|
265 | appearance: none;
|
---|
266 |
|
---|
267 | width: 80%;
|
---|
268 | height: 8px;
|
---|
269 | margin: 0;
|
---|
270 | padding: 0;
|
---|
271 | border-radius: 4px;
|
---|
272 | background: #d3d3d3;
|
---|
273 | outline: none;
|
---|
274 |
|
---|
275 | /* For a visual cue on mouseover */
|
---|
276 | opacity: 0.7;
|
---|
277 | -webkit-transition-duration: 0.2s;
|
---|
278 | transition-duration: 0.2s;
|
---|
279 |
|
---|
280 | &:hover {
|
---|
281 | opacity: 1;
|
---|
282 | }
|
---|
283 | }
|
---|
284 |
|
---|
285 | .audio-slider__value {
|
---|
286 | display: inline-block;
|
---|
287 | position: relative;
|
---|
288 | background-color: rgb(85, 95, 100);
|
---|
289 | color: white;
|
---|
290 | text-align: center;
|
---|
291 | border-radius: 3px;
|
---|
292 | padding: 5px 10px;
|
---|
293 | margin-left: 8px;
|
---|
294 | width: 300;
|
---|
295 |
|
---|
296 | &::after {
|
---|
297 | position: absolute;
|
---|
298 | top: 8px;
|
---|
299 | left: -7px;
|
---|
300 | width: 0;
|
---|
301 | height: 0;
|
---|
302 | border-top: 7px solid transparent;
|
---|
303 | border-right: 7px solid rgb(85, 95, 100);
|
---|
304 | border-bottom: 7px solid transparent;
|
---|
305 | content: '';
|
---|
306 | }
|
---|
307 | }
|
---|
308 |
|
---|
309 | .audio-slider__play-button {
|
---|
310 | vertical-align: middle;
|
---|
311 | background-color: var(--primary-bg-color);
|
---|
312 | border: none;
|
---|
313 | border-radius: 16px;
|
---|
314 | height: 32px;
|
---|
315 | width: 32px;
|
---|
316 | box-shadow: 0px 0px 2px 0px #0a2e4d;
|
---|
317 |
|
---|
318 | -webkit-transition-duration: 0.2s;
|
---|
319 | transition-duration: 0.2s;
|
---|
320 | }
|
---|
321 |
|
---|
322 | .audio-slider__play-button:hover {
|
---|
323 | box-shadow: 0px 0px 4px 0px #0a2e4d;
|
---|
324 | }
|
---|
325 |
|
---|
326 | /* Details element */
|
---|
327 |
|
---|
328 | details {
|
---|
329 | border: 1px solid #aaa;
|
---|
330 | border-radius: 4px;
|
---|
331 | padding: .5em .5em 0;
|
---|
332 | }
|
---|
333 |
|
---|
334 | summary {
|
---|
335 | font-weight: bold;
|
---|
336 | margin: -.5em -.5em 0;
|
---|
337 | padding: .5em;
|
---|
338 | cursor: pointer;
|
---|
339 | }
|
---|
340 |
|
---|
341 | details[open] {
|
---|
342 | padding: .5em;
|
---|
343 | }
|
---|
344 |
|
---|
345 | details[open] summary {
|
---|
346 | border-bottom: 1px solid #aaa;
|
---|
347 | margin-bottom: .5em;
|
---|
348 | }
|
---|