forked from yldio/pouch-websocket-sync-example
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
247 lines (205 loc) · 4.08 KB
/
Copy pathstyle.css
File metadata and controls
247 lines (205 loc) · 4.08 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
html, body, body * { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-size: 15px; }
body {
font: 1rem/1.618 sans-serif;
background: #efefef;
}
.todoapp {
max-width: 95%;
margin: 0 auto;
}
.todoapp input::placeholder {
color: grey;
opacity: 1;
}
.todoapp input::-webkit-placeholder {
color: grey;
opacity: 1;
}
body .todoapp h1 { font-size: 2rem; }
.header {
text-align: center;
}
.main {
justify-content: flex-start;
align-items: flex-start;
flex-wrap: wrap;
}
.main > div {
width: 23%; position: relative;
margin: 1rem auto; padding: 0 1rem 1.6rem;
color: #000;
background-color: #fff;
box-shadow: 0 3px 5px 1px rgba(0, 0, 0, 0.1);
border-radius: 3px;
display: inline-block;
vertical-align: top;
text-align: left;
margin: 1%;
min-width: 300px;
}
.new-todo,
.edit {
width: 100%;
font-size: 16px;
}
button { border: none; }
input {
border: 0.1em solid #aaa; border-radius: 0.2em;
padding: 0.5em 1em; margin: 0.5em 0;
background: #fff;
}
.list_name {
margin-top: 0.5em;
font-weight: normal;
font-size: 2em;
margin-bottom: 0.1em;
}
.todo-count { display: none; }
.button {
border-radius: 0.2em;
padding: 0.5em 1em; margin: 0.5em;
background: #eee;
cursor: pointer; color: #fff;
}
.button_add_todo_list {
background-color: #5cb85c;
}
.button_remove_todo_list {
position: absolute;
top: 0.1rem;
right: 0.5rem;
background: none;
color: #7B7B7B;
font-size: 2em;
padding: 0;
margin: 0;
}
/* -- */
.filters {
margin: 0;
padding: 0;
list-style: none;
position: absolute;
right: 0;
left: 0;
}
.filters li {
display: inline;
}
.filters li a {
color: inherit;
margin: 3px;
padding: 3px 7px;
text-decoration: none;
border: 1px solid transparent;
border-radius: 3px;
}
.filters li a:hover {
border-color: rgba(175, 47, 47, 0.1);
}
.filters li a.selected {
border-color: rgba(175, 47, 47, 0.2);
}
.todo-list {
margin: 0;
padding: 0;
list-style: none;
}
.todo-list li {
position: relative;
font-size: 24px;
border-bottom: 1px solid #ededed;
}
.todo-list li:last-child {
border-bottom: none;
}
.todo-list li.editing {
border-bottom: none;
padding: 0;
}
.todo-list li.editing .edit {
display: block;
padding: 12px 16px;
}
.todo-list li.editing .view {
display: none;
}
.todo-list li .toggle {
text-align: center;
width: 40px;
/* auto, since non-WebKit browsers doesn't support input styling */
height: 40px;
padding: 0;
position: absolute;
top: 0;
bottom: 0;
margin: auto 0;
border: none; /* Mobile Safari */
-webkit-appearance: none;
appearance: none;
background: none;
}
.todo-list li .toggle:after {
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="-10 -18 100 135"><circle cx="50" cy="50" r="50" fill="none" stroke="#666" stroke-width="3"/></svg>');
}
.todo-list li .toggle:checked:after {
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="-10 -18 100 135"><circle cx="50" cy="50" r="50" fill="none" stroke="#777" stroke-width="3"/><path fill="#5dc2af" d="M72 25L42 71 27 56l-4 4 20 20 34-52z"/></svg>');
}
.todo-list li label {
word-break: break-all;
padding: 15px 60px 15px 15px;
margin-left: 45px;
display: block;
line-height: 1.2;
transition: color 0.4s;
}
.todo-list li.completed label {
color: #d9d9d9;
text-decoration: line-through;
}
.todo-list li .destroy {
display: none;
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 40px;
height: 40px;
margin: auto 0;
font-size: 30px;
color: #cc9a9a;
margin-bottom: 11px;
transition: color 0.2s ease-out;
background: none;
}
.todo-list li .destroy:hover {
color: #af5b5e;
}
.todo-list li .destroy:after {
content: '×';
}
.todo-list li:hover .destroy {
display: block;
}
.todo-list li .edit {
display: none;
}
.todo-list li.editing:last-child {
margin-bottom: -1px;
}
.footer {
color: #777;
padding: 10px 15px;
height: 20px;
text-align: center;
border-top: 1px solid #e6e6e6;
}
.list_add_todo {
display: inline-block;
}
.sync-status {
text-align: center;
color: #aaa;
}