|
| 1 | +// dark theme colors |
| 2 | +$bg: #222; |
| 3 | +$gray: #888; |
| 4 | +$gray-dark: #555; |
| 5 | +$text-color: #fafafa; |
| 6 | + |
1 | 7 | body, |
2 | 8 | ul, |
3 | 9 | li, |
4 | 10 | h1, |
5 | 11 | p { |
6 | 12 | margin: 0; |
7 | | - padding: 0; } |
| 13 | + padding: 0; |
| 14 | +} |
8 | 15 |
|
9 | 16 | *, |
10 | 17 | *::before, |
11 | 18 | *::after { |
12 | | - box-sizing: border-box; } |
| 19 | + box-sizing: border-box; |
| 20 | +} |
13 | 21 |
|
14 | 22 | body { |
15 | | - background: #fafafa; |
16 | | - color: #555; |
| 23 | + background: $bg; |
| 24 | + color: $text-color; |
17 | 25 | font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; |
18 | | - line-height: 1.4; } |
| 26 | + line-height: 1.4; |
| 27 | +} |
19 | 28 |
|
20 | 29 | .container { |
21 | 30 | margin: 0 auto; |
22 | 31 | max-width: 450px; |
23 | | - padding: 15px; } |
| 32 | + padding: 15px; |
| 33 | +} |
24 | 34 |
|
25 | 35 | .h1 { |
26 | 36 | font-size: 24px; |
27 | 37 | font-weight: 500; |
28 | 38 | margin-top: 60px; |
29 | | - padding-left: 48px; } |
| 39 | + padding-left: 48px; |
| 40 | +} |
30 | 41 |
|
31 | 42 | .todo-list { |
32 | | - background: white; |
33 | | - border: 1px solid #e6e6e6; |
| 43 | + background: $gray-dark; |
| 44 | + border: 1px solid transparent; |
34 | 45 | border-radius: 6px; |
35 | | - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); |
36 | | - margin: 15px 0 150px; } |
| 46 | + box-shadow: 0 1px 3px rgba(0,0,0,.1); |
| 47 | + margin: 15px 0 150px; |
| 48 | +} |
37 | 49 |
|
38 | 50 | .todo-list-item { |
39 | | - display: -webkit-box; |
40 | | - display: -ms-flexbox; |
41 | 51 | display: flex; |
42 | 52 | font-size: 19px; |
43 | 53 | padding: 18px; |
44 | | - width: 100%; } |
45 | | - .todo-list-item + .new_todo, |
46 | | - .todo-list-item + .todo-list-item { |
47 | | - border-top: 1px solid #e6e6e6; } |
| 54 | + width: 100%; |
| 55 | + |
| 56 | + + .new_todo, |
| 57 | + + .todo-list-item { |
| 58 | + border-top: 1px solid rgba(0,0,0,.3); |
| 59 | + } |
| 60 | +} |
48 | 61 |
|
49 | 62 | .button-complete { |
50 | | - background: #fff; |
51 | | - border: 3px solid #e6e6e6; |
| 63 | + background: $gray-dark; |
| 64 | + border: 3px solid rgba(0,0,0,.3); |
52 | 65 | border-radius: 6px; |
53 | 66 | cursor: pointer; |
54 | | - -webkit-box-flex: 0; |
55 | | - -ms-flex: 0 0 auto; |
56 | | - flex: 0 0 auto; |
| 67 | + flex: 0 0 auto; |
57 | 68 | height: 18px; |
58 | 69 | margin: 4px 12px 0 0; |
59 | | - width: 18px; } |
| 70 | + width: 18px; |
| 71 | +} |
60 | 72 |
|
61 | 73 | .button-edit { |
62 | | - color: #888; |
| 74 | + color: $gray; |
63 | 75 | font-size: 15px; |
64 | 76 | margin-left: auto; |
65 | 77 | position: relative; |
66 | | - top: 4px; } |
| 78 | + top: 4px; |
| 79 | +} |
67 | 80 |
|
68 | 81 | .input { |
69 | 82 | background: none; |
70 | 83 | border: none; |
71 | 84 | color: inherit; |
72 | 85 | line-height: inherit; |
73 | 86 | outline: none; |
74 | | - padding-left: 48px; } |
| 87 | + padding-left: 48px; |
| 88 | +} |
75 | 89 |
|
76 | 90 | .notification { |
77 | | - background: #fff; |
78 | | - border: 1px solid #e6e6e6; |
| 91 | + background: $gray-dark; |
| 92 | + border: 1px solid transparent; |
79 | 93 | border-radius: 6px; |
80 | 94 | border-width: 1px; |
81 | | - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); |
82 | | - color: #555; |
83 | | - display: -webkit-box; |
84 | | - display: -ms-flexbox; |
| 95 | + box-shadow: 0 1px 3px rgba(0,0,0,.06); |
85 | 96 | display: flex; |
86 | | - padding: 15px; } |
| 97 | + padding: 15px; |
| 98 | +} |
87 | 99 |
|
88 | 100 | .emoji { |
89 | 101 | font-size: 45px; |
90 | | - margin-right: 12px; } |
| 102 | + margin-right: 12px; |
| 103 | +} |
91 | 104 |
|
92 | 105 | .weight-strong { |
93 | | - font-weight: 500; } |
| 106 | + font-weight: 500; |
| 107 | +} |
94 | 108 |
|
95 | 109 | .small { |
96 | | - font-size: 13px; } |
| 110 | + font-size: 13px; |
| 111 | +} |
0 commit comments