Commit ad4887ea authored by Sindre Sorhus's avatar Sindre Sorhus

Add "Mark as complete" checkbox

parent 03171ff5
...@@ -57,6 +57,10 @@ body { ...@@ -57,6 +57,10 @@ body {
font-style: italic; font-style: italic;
} }
#todoapp #toggle-all-container {
display: none;
}
#todoapp .items { #todoapp .items {
margin: 10px 0; margin: 10px 0;
padding: 0; padding: 0;
......
...@@ -10,6 +10,11 @@ ...@@ -10,6 +10,11 @@
<header> <header>
<h1>Todos</h1> <h1>Todos</h1>
<input type="text" placeholder="What needs to be done?"> <input type="text" placeholder="What needs to be done?">
<!-- toggle-all-container is hidden by default and should be shown when there are todos, and hidden when not -->
<div id="toggle-all-container">
<input id="toggle-all" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
</div>
</header> </header>
<ul class="items"> <ul class="items">
<li class="item done"> <li class="item done">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment