|
19 | 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
20 | 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
21 | 21 | // SOFTWARE. |
| 22 | +.root { |
| 23 | + --base-text-color: #222; |
| 24 | + --grey-text-color: #888; |
| 25 | + --ascii-view-color: #444; |
| 26 | + --main-background-color: #f8f8f8; |
| 27 | + --outgoing-frame-color: #f6ffd0; |
| 28 | + --incoming-frame-color: #ffe6ca; |
| 29 | + color-scheme: light dark; |
| 30 | +} |
| 31 | +@media(prefers-color-scheme: dark) { |
| 32 | + :root { |
| 33 | + --base-text-color: white; |
| 34 | + --grey-text-color: #d6d6d6; |
| 35 | + --ascii-view-color: #e0e0e0; |
| 36 | + --main-background-color: #404040; |
| 37 | + --outgoing-frame-color: #146500; |
| 38 | + --incoming-frame-color: #ce5500; |
| 39 | + } |
| 40 | +} |
22 | 41 | .App { |
23 | 42 | font-family: 'Segoe UI', Tahoma, sans-serif; |
24 | 43 | font-size: 12px; |
25 | | - color: #222; |
| 44 | + color: var(--base-text-color); |
26 | 45 | overflow: hidden; |
27 | 46 | } |
28 | 47 | .LeftPanel { |
|
34 | 53 | flex-shrink: 0; |
35 | 54 | display: flex; |
36 | 55 | flex-direction: row; |
37 | | - background-color: #f8f8f8; |
| 56 | + background-color: var(--main-background-color); |
38 | 57 | border-bottom: 1px solid #ddd; |
39 | 58 | padding: 8px 8px 4px 8px; |
40 | 59 | .list-filter { |
|
52 | 71 | .list-button { |
53 | 72 | flex-shrink: 0; |
54 | 73 | font-size: 18px; |
55 | | - color: #888; |
| 74 | + color: var(--grey-text-color); |
56 | 75 | cursor: pointer; |
57 | 76 | margin-right: 8px; |
58 | 77 | &:hover { |
59 | | - color: #222; |
| 78 | + color: var(--base-text-color); |
60 | 79 | } |
61 | 80 | } |
62 | 81 | } |
|
77 | 96 | margin-top: 3px; |
78 | 97 | } |
79 | 98 | &.frame-incoming { |
80 | | - background-color: rgb(255, 230, 202); |
| 99 | + background-color: var(--incoming-frame-color); |
81 | 100 | .fa { |
82 | 101 | color: rgb(168, 104, 19); |
83 | 102 | } |
84 | 103 | } |
85 | 104 | &.frame-outgoing { |
86 | | - background-color: rgb(246, 255, 208); |
| 105 | + background-color: var(--outgoing-frame-color); |
87 | 106 | .fa { |
88 | 107 | color: rgb(98, 168, 19); |
89 | 108 | } |
90 | 109 | } |
91 | 110 | .timestamp { |
92 | 111 | margin: 0 6px 0 2px; |
93 | | - color: #888; |
| 112 | + color: var(--grey-text-color); |
94 | 113 | flex-shrink: 0; |
95 | 114 | } |
96 | 115 | .name { |
|
115 | 134 | color: #ccc; |
116 | 135 | } |
117 | 136 | .length { |
118 | | - color: #888; |
| 137 | + color: var(--grey-text-color); |
119 | 138 | } |
120 | 139 | } |
121 | 140 | } |
|
142 | 161 | padding: 4px 8px 0 8px; |
143 | 162 | .tab-button { |
144 | 163 | cursor: pointer; |
145 | | - background-color: #f8f8f8; |
| 164 | + background-color: var(--main-background-color); |
146 | 165 | display: inline-block; |
147 | 166 | padding: 2px 12px; |
148 | 167 | margin: 0 4px; |
|
200 | 219 | display: inline-block; |
201 | 220 | } |
202 | 221 | .line-numbers { |
203 | | - color: #888; |
| 222 | + color: var(--grey-text-color); |
204 | 223 | margin-right: 8px; |
205 | 224 | } |
206 | 225 | .selected { |
|
225 | 244 | } |
226 | 245 | } |
227 | 246 | .ascii-view { |
228 | | - color: #444; |
| 247 | + color: var(--ascii-view-color); |
229 | 248 | margin-left: 12px; |
230 | 249 | } |
231 | 250 | } |
|
0 commit comments