Last active
June 4, 2017 20:31
-
-
Save danielvlopes/e0c644f5d68cd405e4ca862800f96d8a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
body{ | |
color: #424242; | |
background-color: #ECEFF1; | |
font-family: sans-serif; | |
} | |
h1{ | |
color: #03A9F4; | |
text-align: center; | |
margin-top: 20px; | |
} | |
img{ | |
width: 150px; | |
} | |
ul{ | |
list-style: none; | |
font-size: 20px; | |
background-color: #FFF; | |
padding: 20px; | |
width: 60%; | |
margin: 0 auto; | |
border-radius: 5px; | |
box-shadow: 1px 1px 1px #90A4AE; | |
} | |
li{ | |
margin-bottom: 10px; | |
padding: 5px; | |
} | |
li:hover{ | |
background-color: #E1F5FE; | |
border-radius: 3px; | |
} | |
a{ | |
text-decoration: none; | |
color: #424242; | |
vertical-align: middle; | |
} | |
div{ | |
width: 60%; | |
margin: 20px auto 0px auto; | |
} | |
input[type="text"], input[type="number"]{ | |
font-size: 20px; | |
background-color: #FFF; | |
outline: none; | |
border-style: none; | |
padding: 5px; | |
border-radius: 3px; | |
box-shadow: 1px 1px 1px #90A4AE; | |
} | |
.pomodoro-estimate{ | |
font-weight: bold; | |
color: #F44336; | |
background-color: #F5F5F5; | |
border-radius: 50px; | |
font-size: 14px; | |
padding: 5px 10px 5px 10px; | |
} | |
#add-new-todo-button{ | |
font-size: 20px; | |
text-align: center; | |
color: #FFF; | |
outline: none; | |
border-style: none; | |
padding: 10px; | |
border-radius: 3px; | |
box-shadow: 2px 2px 1px #90A4AE; | |
display: block; | |
background-color: #03A9F4; | |
margin-top: 10px; | |
} | |
#add-new-todo-button:active{ | |
box-shadow: 1px 1px 1px #90A4AE; | |
} | |
``` | |
>Have your students use everything they have learned up until this point to link the show.css stylesheet to their show.html file and apply CSS styles to the page. The example code can be found below. | |
***show.html*** | |
```HTML | |
<html> | |
<head> | |
<title>Todo List Application</title> | |
<link rel="stylesheet" href="show.css" type="text/css" /> | |
</head> | |
<body> | |
<h1> | |
<img class="company-logo" src="https://public.3.basecamp.com/p/iahgNshn1oKq98sWGf1q89Vo/uploads/511042491/download/CodeNow%20Logo.png"></img> | |
Workshop Todo List | |
</h1> | |
<div> | |
<input type="checkbox"> | |
<h2>Make the curriculum</h2> | |
<span>4 Pomodoros</span> | |
<a href="#" id="edit-todo-button">Edit</a> | |
<a href="#" id="delete-todo-button">Delete</a> | |
<a href="index.html" class="simple-link">Go back...</a> | |
</div> | |
</body> | |
</html> | |
``` | |
***show.css*** | |
```CSS | |
body{ | |
color: #424242; | |
background-color: #ECEFF1; | |
font-family: sans-serif; | |
} | |
h1{ | |
color: #03A9F4; | |
text-align: center; | |
margin-top: 20px; | |
} | |
img{ | |
width: 150px; | |
} | |
div{ | |
background-color: #FFF; | |
padding: 20px; | |
width: 60%; | |
margin: 0 auto; | |
border-radius: 5px; | |
box-shadow: 1px 1px 1px #90A4AE; | |
} | |
h2{ | |
display: inline-block; | |
vertical-align: middle; | |
font-size: 32px; | |
margin: 20px 0px; | |
} | |
span{ | |
margin: 0px 0px 20px 0px; | |
padding: 10px 15px 10px 15px; | |
display: block; | |
width: 130px; | |
font-size: 20px; | |
font-weight: bold; | |
color: #F44336; | |
background-color: #F5F5F5; | |
border-radius: 50px; | |
} | |
a{ | |
text-decoration: none; | |
color: #424242; | |
vertical-align: middle; | |
} | |
.simple-link{ | |
display: block; | |
margin-top: 20px; | |
text-decoration: underline; | |
color: #9E9E9E; | |
} | |
.simple-link:active{ | |
color: #212121; | |
} | |
#edit-todo-button{ | |
display: inline-block; | |
width: 40px; | |
background-color: #1ABC9C; | |
margin-right: 5px; | |
font-size: 20px; | |
text-align: center; | |
color: #FFF; | |
outline: none; | |
border-style: none; | |
padding: 10px; | |
border-radius: 3px; | |
box-shadow: 2px 2px 1px #90A4AE; | |
} | |
#edit-todo-button:active{ | |
box-shadow: 1px 1px 1px #90A4AE; | |
} | |
#delete-todo-button{ | |
display: inline-block; | |
width: 60px; | |
background-color: #F44336; | |
font-size: 20px; | |
text-align: center; | |
color: #FFF; | |
outline: none; | |
border-style: none; | |
padding: 10px; | |
border-radius: 3px; | |
box-shadow: 2px 2px 1px #90A4AE; | |
} | |
#delete-todo-button:active{ | |
box-shadow: 1px 1px 1px #90A4AE; | |
} |
This file contains hidden or 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
****** | |
<html> | |
<head> | |
<title>Todo List Application</title> | |
<link rel="stylesheet" href="index.css" type="text/css"/> | |
</head> | |
<body> | |
<h1> | |
<img class="company-logo" src="https://public.3.basecamp.com/p/iahgNshn1oKq98sWGf1q89Vo/uploads/511042491/download/CodeNow%20Logo.png"></img> | |
Workshop Todo List | |
</h1> | |
<ul> | |
<li> | |
<input type="checkbox"> | |
<a href="show.html">Make the curriculum</a> | |
<span class="pomodoro-estimate">4 pomodoros</span> | |
</li> | |
<li> | |
<input type="checkbox"> | |
Buy workshop supplies | |
<span class="pomodoro-estimate">3 Pomodoros</span> | |
</li> | |
<li> | |
<input type="checkbox"> | |
Meet with the volunteer trainers | |
<span class="pomodoro-estimate">2 Pomodoros</span> | |
</li> | |
<li> | |
<input type="checkbox"> | |
Order food for Saturday and Sunday | |
<span class="pomodoro-estimate">1 Pomodoro</span> | |
</li> | |
<li> | |
<input type="checkbox"> | |
Check pre-work assignments | |
<span class="pomodoro-estimate">2 Pomodoros</span> | |
</li> | |
<li> | |
<input type="checkbox"> | |
Send workshop location to all the students | |
<span class="pomodoro-estimate">1 Pomodoro</span> | |
</li> | |
<li> | |
<input type="checkbox"> | |
Have a great workshop | |
<span class="pomodoro-estimate">0 Pomodoros</span> | |
</li> | |
</ul> | |
<div> | |
<input type="text" placeholder="Add a new todo..."> | |
<input type="number" placeholder="Pomodoro estimate..."> | |
<input id="add-new-todo-button" type="submit" value="Add todo"> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment