|
1 | 1 | .Spreadsheet { |
2 | 2 | --background-color: white; |
3 | 3 | --text-color: black; |
4 | | - --readonly-text-color: #999; |
| 4 | + --readonly-text-color: rgba(0, 0, 0, 0.4); |
5 | 5 | --outline-color: #4285f4; |
6 | 6 | --outline-background-color: rgba(160, 195, 255, 0.2); |
7 | | - --border-color: rgb(231, 231, 231); |
8 | | - --header-background-color: #f5f5f5; |
| 7 | + --border-color: hsl(2deg, 0%, 91%); |
| 8 | + --header-background-color: rgba(0, 0, 0, 0.04); |
9 | 9 | --elevation: 0 2px 5px rgba(0, 0, 0, 0.4); |
10 | 10 |
|
11 | 11 | position: relative; |
|
15 | 15 | display: inline-block; |
16 | 16 | } |
17 | 17 |
|
| 18 | +.Spreadsheet--dark-mode { |
| 19 | + --background-color: black; |
| 20 | + --text-color: white; |
| 21 | + --readonly-text-color: rgba(255, 255, 255, 0.4); |
| 22 | + --header-background-color: rgba(255, 255, 255, 0.04); |
| 23 | + --border-color: hsl(2deg, 0%, 19%); |
| 24 | +} |
| 25 | + |
18 | 26 | .Spreadsheet__active-cell { |
19 | 27 | position: absolute; |
20 | 28 | border: 2px solid var(--outline-color); |
|
36 | 44 | cursor: cell; |
37 | 45 | } |
38 | 46 |
|
39 | | -.Spreadsheet__cell, |
40 | | -.Spreadsheet__cell input { |
| 47 | +.Spreadsheet__cell { |
41 | 48 | outline: none; |
42 | 49 | } |
43 | 50 |
|
|
82 | 89 |
|
83 | 90 | .Spreadsheet__data-editor input { |
84 | 91 | font: inherit; |
| 92 | + color: inherit; |
85 | 93 | background: none; |
86 | 94 | border: none; |
87 | 95 | outline: none; |
|
0 commit comments