-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.css
executable file
·96 lines (82 loc) · 1.52 KB
/
index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
html, body {
background: #FAFAFA;
color: #212121;
font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", sans-serif;
}
#app {
max-width: 680px;
margin: auto;
}
#app h1 {
text-align: center;
}
#app .addtask {
height: 2.0em;
display: flex;
}
#app .addtask input {
font-family: inherit;
flex-grow: 1;
max-width: 100%;
border: #F0F0F0 1px solid;
border-radius: 3px 0 0 3px;
padding: 0 1.0em;
}
#app .addtask button {
font-family: inherit;
background: #388E3C;
color: #FAFAFA;
padding: 5px 10px;
border: none;
border-radius: 0 3px 3px 0;
}
#app .tasklist {
list-style-type: none;
border: #F0F0F0 1px solid;
border-radius: 3px;
padding: 0;
margin: 0;
}
#app .task {
padding: 1.0em 3.0em;
line-height: 1.5em;
}
#app .task label {
position: relative;
display: inline-block;
margin: auto;
}
#app .task label > input[type="checkbox"] {
display: none;
}
#app .task label:before {
content: "";
margin-bottom: -0.25em;
display: inline-block;
width: 1.0em;
height: 1.0em;
background: #FFF;
border: #757575 1px solid;
border-radius: 3px;
}
#app .task:nth-child(2n + 1) {
background: #F0F0F0;
}
#app .task:nth-child(2n) {
background: #FAFAFA;
}
#app .task.is-done {
opacity: 0.5;
}
#app .task.is-done label:after {
content: "";
position: absolute;
top: 6px;
left: 2px;
display: inline-block;
width: 10px;
height: 5px;
border-left: 3px solid #1B5E20;
border-bottom: 2px solid #1B5E20;
transform: rotate(-45deg);
}