carlos / todomvc-bakeoff Public

Clone
git clone https://amadan.net/carlos/todomvc-bakeoff

Plain git — no account needed to clone.

Download

Download this file

1/*
2 * The controls that make every action work without JavaScript. Each sits
3 * exactly over the TodoMVC control it stands in for, and is invisible, so
4 * the page looks the same either way. app.js puts the "js" class on
5 * <html> and they go.
6 */
7
8form.action {
9 display: contents;
10}
11
12.todo-list li label a {
13 color: inherit;
14 text-decoration: none;
15}
16
17.todo-list li .toggle-submit {
18 position: absolute;
19 top: 0;
20 bottom: 0;
21 left: 0;
22 width: 40px;
23 cursor: pointer;
24}
25
26.toggle-all-submit {
27 position: absolute;
28 top: -65px;
29 left: 0;
30 width: 45px;
31 height: 65px;
32 font-size: 0;
33 cursor: pointer;
34}
35
36.js .todo-list li .toggle-submit,
37.js .toggle-all-submit {
38 display: none;
39}
40
41/* With JavaScript a double-click on the label edits, so the link that
42 does the same without it stops taking clicks. */
43.js .todo-list li label a {
44 pointer-events: none;
45}
46