Download this file
| 1 | /* The controls a page without JavaScript uses. app.js's inline starter puts |
| 2 | the class "js" on <html>, and then they're hidden: the checkboxes, |
| 3 | double-click and blur take over, exactly as in TodoMVC. */ |
| 4 | .js .nojs { |
| 5 | display: none !important; |
| 6 | } |
| 7 | |
| 8 | /* Forms that only wrap a control take no part in layout. */ |
| 9 | form.inline { |
| 10 | display: contents; |
| 11 | } |
| 12 | |
| 13 | /* Without JavaScript, a submit button lies exactly over each checkbox, so |
| 14 | the page looks the same either way. */ |
| 15 | .todo-list li .view > button[data-action="toggle"] { |
| 16 | position: absolute; |
| 17 | top: 0; |
| 18 | bottom: 0; |
| 19 | left: 0; |
| 20 | width: 40px; |
| 21 | height: 40px; |
| 22 | margin: auto 0; |
| 23 | font-size: 0; |
| 24 | cursor: pointer; |
| 25 | z-index: 1; |
| 26 | } |
| 27 | |
| 28 | .main button[data-action="toggle-all"] { |
| 29 | position: absolute; |
| 30 | top: -65px; |
| 31 | left: 0; |
| 32 | width: 45px; |
| 33 | height: 65px; |
| 34 | font-size: 0; |
| 35 | cursor: pointer; |
| 36 | z-index: 1; |
| 37 | } |
| 38 | |
| 39 | /* Without JavaScript there's no double-click, so each item has an edit link |
| 40 | beside the delete button. */ |
| 41 | .todo-list li .view > a[data-action="edit"] { |
| 42 | position: absolute; |
| 43 | top: 0; |
| 44 | bottom: 0; |
| 45 | right: 55px; |
| 46 | height: 40px; |
| 47 | margin: auto 0; |
| 48 | font-size: 20px; |
| 49 | line-height: 40px; |
| 50 | color: #949494; |
| 51 | text-decoration: none; |
| 52 | } |
| 53 | |
| 54 | .todo-list li .view > a[data-action="edit"]:hover, |
| 55 | .todo-list li .view > a[data-action="edit"]:focus { |
| 56 | color: #484848; |
| 57 | } |
| 58 | |
| 59 | html:not(.js) .todo-list li label { |
| 60 | padding-right: 90px; |
| 61 | } |
| 62 | |