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/* Additions to TodoMVC's stylesheets for this server-rendered version. */
2
3/* Forms only group fields; they take no space of their own, so the
4 TodoMVC layout is unchanged. */
5.todoapp form {
6 display: contents;
7}
8
9/* Without JavaScript, each checkbox is covered by a transparent submit
10 button, and each item gets an Edit link. With JavaScript (html.js),
11 they're hidden and the page is exactly TodoMVC's. */
12.nojs-toggle-all,
13.todo-list li .nojs-toggle {
14 position: absolute;
15 z-index: 1;
16 margin: 0;
17 padding: 0;
18 border: 0;
19 background: none;
20 font-size: 0;
21 color: transparent;
22 cursor: pointer;
23}
24
25.nojs-toggle-all {
26 top: -65px;
27 left: 0;
28 width: 45px;
29 height: 65px;
30}
31
32.todo-list li .nojs-toggle {
33 top: 0;
34 bottom: 0;
35 left: 0;
36 width: 60px;
37}
38
39.nojs-toggle-all:focus-visible,
40.todo-list li .nojs-toggle:focus-visible {
41 outline: 1px solid #CF7D7D;
42}
43
44.todo-list li .nojs-edit {
45 position: absolute;
46 top: 0;
47 right: 60px;
48 bottom: 0;
49 height: 20px;
50 margin: auto 0;
51 font-size: 14px;
52 line-height: 20px;
53 color: #949494;
54 text-decoration: none;
55}
56
57.todo-list li .nojs-edit:hover,
58.todo-list li .nojs-edit:focus {
59 color: #484848;
60 text-decoration: underline;
61}
62
63html:not(.js) .todo-list li label {
64 padding-right: 110px;
65}
66
67.js .nojs-toggle-all,
68.js .todo-list li .nojs-toggle,
69.js .todo-list li .nojs-edit {
70 display: none;
71}
72