-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic color changes on item rows.
- Loading branch information
1 parent
4469e95
commit 6bc58d3
Showing
1 changed file
with
39 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,46 @@ | ||
<!doctype html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<title>TODO list</title> | ||
<style> | ||
h1 { | ||
text-align: center; | ||
} | ||
|
||
h3 { | ||
text-transform: uppercase; | ||
} | ||
|
||
li { | ||
overflow: hidden; | ||
padding: 20px 0; | ||
border-bottom: 1px solid #eee; | ||
} | ||
</style> | ||
<meta charset="utf-8"> | ||
<title>TODO list</title> | ||
<style> | ||
h1 { | ||
text-align:center; | ||
} | ||
h3 { | ||
text-transform: uppercase; | ||
} | ||
ul { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
ul li { | ||
cursor: pointer; | ||
position: relative; | ||
padding: 12px 8px 12px 40px; | ||
background: #eee; | ||
font-size: 18px; | ||
transition: 0.2s; | ||
} | ||
ul li:nth-child(odd) { | ||
background: #f9f9f9; | ||
} | ||
ul li:hover { | ||
background: #ddd; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<h1>TODO list</h1> | ||
<h3>Todo</h3> | ||
<ul> | ||
<li>Buy a hat for the bat</li> | ||
<li>Clear the fogs for the frogs</li> | ||
<li>Bring a box to the fox</li> | ||
</ul> | ||
<h3>Done</h3> | ||
<ul> | ||
<li>Put the mittens on the kittens</li> | ||
</ul> | ||
<h1>TODO list</h1> | ||
<h3>Todo</h3> | ||
<ul> | ||
<li>Buy a hat for the bat</li> | ||
<li>Clear the fogs for the frogs</li> | ||
<li>Bring a box to the fox</li> | ||
</ul> | ||
<h3>Done</h3> | ||
<ul> | ||
<li>Put the mittens on the kittens</li> | ||
</ul> | ||
</body> | ||
|
||
</html> |