step 2 updates

This commit is contained in:
Micah Godbolt
2019-02-08 15:52:20 -08:00
parent 6d1f93c441
commit df6f302623
2 changed files with 60 additions and 13 deletions

View File

@@ -1,20 +1,28 @@
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="./style.css" />
<body>
<h1>todos</h1>
<input class="textfield" /><button class="button add">Add</button>
<div class="filter">
<button>all</button>
<button class="active">all</button>
<button>active</button>
<button>completed</button>
</div>
<ul class="todos">
<li class="todo"><input type="checkbox" /> Todo 1</li>
<li class="todo"><input type="checkbox" /> Todo 2</li>
<li class="todo"><input type="checkbox" /> Todo 3</li>
<li class="todo"><input type="checkbox" /> Todo 4</li>
<li class="todo">
<label><input type="checkbox" /> Todo 1</label>
</li>
<li class="todo">
<label><input type="checkbox" /> Todo 2</label>
</li>
<li class="todo">
<label><input type="checkbox" /> Todo 3</label>
</li>
<li class="todo">
<label><input type="checkbox" /> Todo 4</label>
</li>
</ul>
<footer><span>4 items left</span> <button>Clear Completed</button></footer>
<footer><span>4 items left</span> <button class="button">Clear Completed</button></footer>
</body>
</html>

View File

@@ -1,7 +1,46 @@
body {
width: 400px;
margin: 20px auto;
}
h1 {
text-align: left;
}
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
width: 400px;
margin: 20px auto;
}
h1 {
text-align: center;
}
.textfield {
width: 80%;
}
.add {
margin-left: 5%;
}
.button {
border: none;
padding: 5px 10px;
}
.filter {
margin: 10px 0 0;
}
.filter button {
background: transparent;
border: none;
}
.filter .active {
border-bottom: 2px solid blue;
}
.todos {
list-style: none;
padding: 0;
}
footer {
display: flex;
}
footer span {
flex-grow: 1;
}