Shopping List App
by Amy Kirst
HTML
<title>My Shopping List</title>
<link href='http://fonts.googleapis.com/css?family=Prata'>
<body>
<header class="branding lPadding rPadding">
<h1>My Shopping List</h1>
</header>
<div class="wrapper">
<form>
<input type="text" placeholder="I need to buy..." name="shopping_item">
</form>
<ul class="instructions">
<li>Click on tile to mark complete</li>
<li class="divider">|</li>
<li>Hover and click “Delete” to delete</li>
</ul>
<section>
<h1 class="outline">Shopping List Items</h1>
<ul class="shopping_item_list">
<li class="tile floatLeft">Flowers<span class="delete">Delete</span></li>
<li class="tile floatRight">A gift card for mom's birthday<span class="delete">Delete</span></li>
<li class="tile">A birthday card<span class="delete">Delete</span></li>
<div class="clear"></div>
<li class="tile floatLeft">Yogurt<span class="delete">Delete</span></li>
<li class="tile floatRight">Applesauce<span class="delete">Delete</span></li>
<li class="tile">Iced tea<span class="delete">Delete</span></li>
<div class="clear"></div>
<li class="tile floatLeft">Ice cream<span class="delete">Delete</span></li>
<li class="tile floatRight">Laundry detergent<span class="delete">Delete</span></li>
<li class="tile">Sandwich bags<span class="delete">Delete</span></li>
<div class="clear"></div>
</ul>
</section>
</div><!--end wrapper-->
</body>
CSS
/* ---------- Color Palette ---------- */
/*
Pink - #ec5084;
Green - #6ea24a;
Grey - #b7b7b7;
*/
/* ---------- Reset ---------- */
a img {
border: 0;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
line-height: 1em;
font-size: 100%;
font-weight: normal;
}
p {
margin: 0 0 1em 0;
}
body {
margin: 0;
padding: 0;
background-color: #fff;
}
/* ---------- General Styles ---------- */
.outline {
display: none; /* Hide headings that are intended to convey structure in HTML outline */
}
.wrapper {
margin-left: 70px;
margin-right: 70px;
}
body, input {
font-family: "Prata", serif;
}
/* ---------- Header Styles ---------- */
.lPadding {
padding-left: 70px;
}
.rPadding {
padding-right: 70px;
}
header.branding {
background-color: #6ea24a;
}
.branding h1 {
font-size: 30px;
color: #fff;
padding-top: 25px;
padding-bottom: 25px;
text-align: center;
}
/* ---------- Input Styles ---------- */
input[name="shopping_item"], input[name="shopping_item"]:focus {
width: 100%;
border: 1px solid #b7b7b7;
height: 91px;
border-radius: 5px;
box-shadow:none;
font-size: 24px;
padding-left: 30px;
padding-right: 30px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; /* Why does the padding make it wider on mine but not yours? */
margin-top:50px;
}
input[name="shopping_item"]:focus {
outline: none;
}
::-webkit-input-placeholder {
color: black;
}
:-moz-placeholder { /* Firefox 18- */
color: black;
}
::-moz-placeholder { /* Firefox 19+ */
color: black;
}
:-ms-input-placeholder {
color: black;
}
ul.instructions {
list-style-type:none;
margin-top: 2px;
margin-bottom: 50px;
padding: 0;
text-align: center;
}
.instructions li {
color:#b7b7b7;
font-size: 12px;
font-family: Verdana, sans-serif;
display: inline-block;
padding-right: 10px;
}
/* ---------- Shopping List Styles ---------- */
ul.shopping_item_list...