Skip to content

Commit 745f5ff

Browse files
author
tosih
committed
Add dark theme.
1 parent 735c9a8 commit 745f5ff

File tree

1 file changed

+51
-36
lines changed

1 file changed

+51
-36
lines changed

public/styles.css

Lines changed: 51 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,111 @@
1+
// dark theme colors
2+
$bg: #222;
3+
$gray: #888;
4+
$gray-dark: #555;
5+
$text-color: #fafafa;
6+
17
body,
28
ul,
39
li,
410
h1,
511
p {
612
margin: 0;
7-
padding: 0; }
13+
padding: 0;
14+
}
815

916
*,
1017
*::before,
1118
*::after {
12-
box-sizing: border-box; }
19+
box-sizing: border-box;
20+
}
1321

1422
body {
15-
background: #fafafa;
16-
color: #555;
23+
background: $bg;
24+
color: $text-color;
1725
font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
18-
line-height: 1.4; }
26+
line-height: 1.4;
27+
}
1928

2029
.container {
2130
margin: 0 auto;
2231
max-width: 450px;
23-
padding: 15px; }
32+
padding: 15px;
33+
}
2434

2535
.h1 {
2636
font-size: 24px;
2737
font-weight: 500;
2838
margin-top: 60px;
29-
padding-left: 48px; }
39+
padding-left: 48px;
40+
}
3041

3142
.todo-list {
32-
background: white;
33-
border: 1px solid #e6e6e6;
43+
background: $gray-dark;
44+
border: 1px solid transparent;
3445
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+
}
3749

3850
.todo-list-item {
39-
display: -webkit-box;
40-
display: -ms-flexbox;
4151
display: flex;
4252
font-size: 19px;
4353
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+
}
4861

4962
.button-complete {
50-
background: #fff;
51-
border: 3px solid #e6e6e6;
63+
background: $gray-dark;
64+
border: 3px solid rgba(0,0,0,.3);
5265
border-radius: 6px;
5366
cursor: pointer;
54-
-webkit-box-flex: 0;
55-
-ms-flex: 0 0 auto;
56-
flex: 0 0 auto;
67+
flex: 0 0 auto;
5768
height: 18px;
5869
margin: 4px 12px 0 0;
59-
width: 18px; }
70+
width: 18px;
71+
}
6072

6173
.button-edit {
62-
color: #888;
74+
color: $gray;
6375
font-size: 15px;
6476
margin-left: auto;
6577
position: relative;
66-
top: 4px; }
78+
top: 4px;
79+
}
6780

6881
.input {
6982
background: none;
7083
border: none;
7184
color: inherit;
7285
line-height: inherit;
7386
outline: none;
74-
padding-left: 48px; }
87+
padding-left: 48px;
88+
}
7589

7690
.notification {
77-
background: #fff;
78-
border: 1px solid #e6e6e6;
91+
background: $gray-dark;
92+
border: 1px solid transparent;
7993
border-radius: 6px;
8094
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);
8596
display: flex;
86-
padding: 15px; }
97+
padding: 15px;
98+
}
8799

88100
.emoji {
89101
font-size: 45px;
90-
margin-right: 12px; }
102+
margin-right: 12px;
103+
}
91104

92105
.weight-strong {
93-
font-weight: 500; }
106+
font-weight: 500;
107+
}
94108

95109
.small {
96-
font-size: 13px; }
110+
font-size: 13px;
111+
}

0 commit comments

Comments
 (0)