@@ -46,21 +46,21 @@ select {
46
46
}
47
47
48
48
@font-face {
49
- font-family : ' Inter' ;
49
+ font-family : " Inter" ;
50
50
font-weight : 100 900 ;
51
51
font-display : swap ;
52
52
font-style : normal ;
53
- font-named-instance : ' Regular' ;
54
- src : url (' fonts/Inter-roman.var.woff2' ) format (' woff2' );
53
+ font-named-instance : " Regular" ;
54
+ src : url (" fonts/Inter-roman.var.woff2" ) format (" woff2" );
55
55
}
56
56
57
57
@font-face {
58
- font-family : ' Inter' ;
58
+ font-family : " Inter" ;
59
59
font-weight : 100 900 ;
60
60
font-display : swap ;
61
61
font-style : italic ;
62
- font-named-instance : ' Italic' ;
63
- src : url (' fonts/Inter-italic.var.woff2' ) format (' woff2' );
62
+ font-named-instance : " Italic" ;
63
+ src : url (" fonts/Inter-italic.var.woff2" ) format (" woff2" );
64
64
}
65
65
66
66
$grey : #ccc ;
@@ -102,7 +102,7 @@ header {
102
102
h1 {
103
103
line-height : 4rem ;
104
104
padding-left : 6.5rem ;
105
- background : url (' img/mailcrab.svg' ) no-repeat center left 1rem ;
105
+ background : url (" img/mailcrab.svg" ) no-repeat center left 1rem ;
106
106
background-size : 5rem ;
107
107
font-weight : 300 ;
108
108
font-size : 2.5rem ;
@@ -128,20 +128,25 @@ header {
128
128
font-size : 0.9rem ;
129
129
height : 2.5rem ;
130
130
line-height : 2rem ;
131
- background : white url (' img/trash.svg' ) no-repeat top 0.6rem left 0.75rem ;
131
+ background : white url (" img/trash.svg" ) no-repeat top 0.6rem left 0.75rem ;
132
132
background-size : 14px ;
133
- .no-trashcan {
134
- background : white ;
133
+ .invert-body {
134
+ background : white url (" img/dark-mode.svg" ) no-repeat top 0.6rem left
135
+ 0.75rem ;
135
136
padding : 0 1rem ;
137
+ @media (prefers-color-scheme : light ) {
138
+ display : none ;
139
+ }
136
140
}
137
141
@media (prefers-color-scheme : dark ) {
138
- background : $surface-dark url (' img/trash.svg' ) no-repeat top 0.6rem left
142
+ background : $surface-dark url (" img/trash.svg" ) no-repeat top 0.6rem left
139
143
0.75rem ;
140
144
background-size : 14px ;
141
145
color : $foreground-dark ;
142
146
border : 1px solid $border-grey-dark ;
143
- .no-trashcan {
144
- background : $surface-dark ;
147
+ .invert-body {
148
+ background : $surface-dark url (" img/dark-mode.svg" ) no-repeat top 0.6rem
149
+ left 0.75rem ;
145
150
}
146
151
}
147
152
@@ -214,13 +219,13 @@ header {
214
219
animation : slide- down 300ms ease-in ;
215
220
overflow : hidden ;
216
221
font-size : 0.9rem ;
217
- background : $background url (' img/envelope.svg' ) no-repeat center left
222
+ background : $background url (" img/envelope.svg" ) no-repeat center left
218
223
0.75rem ;
219
224
background-size : 2rem ;
220
225
color : $foreground ;
221
226
222
227
@media (prefers-color-scheme : dark ) {
223
- background : $surface-dark url (' img/envelope.svg' ) no-repeat center left
228
+ background : $surface-dark url (" img/envelope.svg" ) no-repeat center left
224
229
0.75rem ;
225
230
background-size : 2rem ;
226
231
color : $foreground-dark ;
@@ -245,13 +250,13 @@ header {
245
250
246
251
& .opened {
247
252
opacity : 0.5 ;
248
- background-image : url (' img/envelope-open.svg' );
253
+ background-image : url (" img/envelope-open.svg" );
249
254
}
250
255
251
256
& .selected {
252
257
color : $foreground !important ;
253
258
font-weight : 500 ;
254
- background-image : url (' img/envelope-open-text.svg' );
259
+ background-image : url (" img/envelope-open-text.svg" );
255
260
256
261
@media (prefers-color-scheme : dark ) {
257
262
color : $foreground-dark !important ;
@@ -275,11 +280,11 @@ header {
275
280
}
276
281
277
282
& ::before {
278
- content : ' < ' ;
283
+ content : " < " ;
279
284
}
280
285
281
286
& ::after {
282
- content : ' > ' ;
287
+ content : " > " ;
283
288
}
284
289
}
285
290
}
@@ -329,20 +334,20 @@ header {
329
334
330
335
& .attachments {
331
336
.subject ::before {
332
- content : ' ' ;
337
+ content : " " ;
333
338
display : inline-block ;
334
339
margin-right : 0.2rem ;
335
340
width : 0.9rem ;
336
341
height : 0.9rem ;
337
- background : url (' img/paperclip.svg' ) no-repeat center left ;
342
+ background : url (" img/paperclip.svg" ) no-repeat center left ;
338
343
}
339
344
}
340
345
}
341
346
}
342
347
343
348
.recipients {
344
349
& > .email + .email :before {
345
- content : ' , <' ;
350
+ content : " , <" ;
346
351
display : inline-block ;
347
352
color : rgba (black , 0.3 );
348
353
@@ -353,7 +358,7 @@ header {
353
358
354
359
.email {
355
360
& ::before {
356
- content : ' < ' ;
361
+ content : " < " ;
357
362
color : rgba (black , 0.3 );
358
363
359
364
@media (prefers-color-scheme : dark ) {
@@ -362,7 +367,7 @@ header {
362
367
}
363
368
364
369
& ::after {
365
- content : ' > ' ;
370
+ content : " > " ;
366
371
color : rgba (black , 0.3 );
367
372
368
373
@media (prefers-color-scheme : dark ) {
@@ -436,12 +441,12 @@ header {
436
441
margin-right : 0 ;
437
442
margin-bottom : 0.25rem ;
438
443
padding : 0.5rem 1.5rem 0.5rem 2rem ;
439
- background : white url (' img/trash.svg' ) no-repeat center left 1rem ;
444
+ background : white url (" img/trash.svg" ) no-repeat center left 1rem ;
440
445
background-size : 12px ;
441
446
border : 1px solid $grey ;
442
447
443
448
@media (prefers-color-scheme : dark ) {
444
- background : $surface-dark url (' img/trash.svg' ) no-repeat center
449
+ background : $surface-dark url (" img/trash.svg" ) no-repeat center
445
450
left 1rem ;
446
451
background-size : 12px ;
447
452
color : $foreground-dark ;
@@ -495,11 +500,11 @@ header {
495
500
}
496
501
497
502
& ::before {
498
- content : ' < ' ;
503
+ content : " < " ;
499
504
}
500
505
501
506
& ::after {
502
- content : ' > ' ;
507
+ content : " > " ;
503
508
}
504
509
}
505
510
}
@@ -514,19 +519,19 @@ header {
514
519
text-decoration : none ;
515
520
color : black ;
516
521
transition : all 150ms ease-in ;
517
- background : white url (' img/file.svg' ) no-repeat center left 0.5rem ;
522
+ background : white url (" img/file.svg" ) no-repeat center left 0.5rem ;
518
523
background-size : 1rem ;
519
524
520
525
@media (prefers-color-scheme : dark ) {
521
- background : $surface-dark url (' img/file.svg' ) no-repeat center left
526
+ background : $surface-dark url (" img/file.svg" ) no-repeat center left
522
527
0.5rem ;
523
528
background-size : 1rem ;
524
529
color : $foreground-dark ;
525
530
border : 1px solid $border-grey-dark ;
526
531
}
527
532
528
533
& .application-pdf {
529
- background-image : url (' img/file-pdf.svg' );
534
+ background-image : url (" img/file-pdf.svg" );
530
535
}
531
536
532
537
.size {
0 commit comments