Download this file
| 1 | /* Only loaded when JavaScript is off (<noscript> in <head>). Each submit |
| 2 | control sits transparently over the thing a person would click, so the |
| 3 | page looks the same as with JavaScript and the click does the same |
| 4 | thing: a form post and a page load. */ |
| 5 | .todoapp .nojs { |
| 6 | display: block; |
| 7 | position: absolute; |
| 8 | z-index: 1; |
| 9 | margin: 0; |
| 10 | padding: 0; |
| 11 | border: 0; |
| 12 | background: none; |
| 13 | cursor: pointer; |
| 14 | } |
| 15 | |
| 16 | .todoapp .nojs span { |
| 17 | position: absolute; |
| 18 | width: 1px; |
| 19 | height: 1px; |
| 20 | overflow: hidden; |
| 21 | clip-path: inset(50%); |
| 22 | white-space: nowrap; |
| 23 | } |
| 24 | |
| 25 | /* Over the round checkbox at the start of the item. */ |
| 26 | .todo-list li .toggle-submit { |
| 27 | top: 0; |
| 28 | bottom: 0; |
| 29 | left: 0; |
| 30 | width: 40px; |
| 31 | } |
| 32 | |
| 33 | /* Over the ❯ beside the new-todo field. */ |
| 34 | .main .toggle-all-submit { |
| 35 | top: -65px; |
| 36 | left: 0; |
| 37 | width: 45px; |
| 38 | height: 65px; |
| 39 | } |
| 40 | |
| 41 | /* Over the title: a click opens the editor, as a double-click does with |
| 42 | JavaScript. The delete button, later in the item, stays on top. */ |
| 43 | .todo-list li .edit-link { |
| 44 | top: 0; |
| 45 | bottom: 0; |
| 46 | left: 40px; |
| 47 | right: 60px; |
| 48 | cursor: text; |
| 49 | } |
| 50 | |
| 51 | .todo-list li .destroy { |
| 52 | z-index: 2; |
| 53 | } |
| 54 | |