-
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.
- Loading branch information
Gabe Rogan
committed
Nov 19, 2016
1 parent
d3ea8eb
commit b45d0f5
Showing
11 changed files
with
244 additions
and
14 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
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
.food-search | ||
padding-top: .5em | ||
i | ||
cursor: pointer | ||
top: 6px | ||
right: 0 | ||
&:hover | ||
color: #888 | ||
transform: scale(.9) | ||
transition: all .2s | ||
|
||
.food-filter | ||
display: flex | ||
flex-flow: row wrap | ||
width: 100% | ||
padding: 0 1em | ||
.block | ||
flex: 1 500px | ||
padding: 0 1em | ||
&:last-child | ||
flex: 0 130px | ||
nav | ||
box-shadow: none | ||
display: flex | ||
align-items: center | ||
justify-content: center | ||
nav | ||
background-color: lightergray | ||
a | ||
color: black | ||
|
||
.green[type="checkbox"].filled-in:checked+label:after | ||
border-color: green | ||
background-color: green | ||
.yellow[type="checkbox"].filled-in:checked+label:after | ||
border-color: yellow | ||
background-color: yellow | ||
.red[type="checkbox"].filled-in:checked+label:after | ||
border-color: red | ||
background-color: red | ||
[type="checkbox"]+label | ||
padding-left: 26px | ||
|
||
.foods | ||
padding-top: 3em |
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,2 +1,111 @@ | ||
<div class="spacer"></div> | ||
<h1>You've reached pages/food/view.html.</h1> | ||
<div class="container food-search"> | ||
|
||
<div class="input-field col s6"> | ||
<input type="text" id="autocomplete-input" class="autocomplete"> | ||
<label for="autocomplete-input">Search for food by name!</label> | ||
<i class="material-icons prefix">search</i> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
|
||
<div class="food-filter container"> | ||
|
||
<div class="block"> | ||
<h5>By Category</h5> | ||
<nav> | ||
<div class="nav-wrapper"> | ||
<ul class="left"> | ||
<li><a>All</a></li> | ||
<li><a>Fruit</a></li> | ||
<li><a>Veggie</a></li> | ||
<li class="active"><a>Fattie</a></li> | ||
</ul> | ||
</div> | ||
</nav> | ||
</div> | ||
|
||
|
||
<div class="block"> | ||
<h5>By Nutrient</h5> | ||
<nav> | ||
<div class="nav-wrapper"> | ||
<ul class="left"> | ||
<li><a>All</a></li> | ||
<li><a>SatFat</a></li> | ||
<li class="active"><a>Sugar</a></li> | ||
<li class="active"><a>Carbs</a></li> | ||
<li><a>Whatever</a></li> | ||
</ul> | ||
</div> | ||
</nav> | ||
</div> | ||
|
||
<div class="block"> | ||
<h5>By Grade</h5> | ||
<nav> | ||
<input type="checkbox" class="filled-in green" id="green" checked="checked" /> | ||
<label for="green"></label> | ||
|
||
<input type="checkbox" class="filled-in yellow" id="yellow" checked="checked" /> | ||
<label for="yellow"></label> | ||
|
||
<input type="checkbox" class="filled-in red" id="red" checked="checked" /> | ||
<label for="red"></label> | ||
</nav> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
<div class="foods container row"> | ||
<!-- <a class="btn" onClick="expandAll();"><i class="material-icons left">fullscreen</i>Expand All</a> | ||
<a class="btn" onClick="collapseAll();"><i class="material-icons left">fullscreen_exit</i>Collapse All</a> --> | ||
<ul class="collapsible col s5" data-collapsible="expandable"> | ||
<li> | ||
<div class="collapsible-header"><a><i class="material-icons">filter_drama</i>Apple</a></div> | ||
<div class="collapsible-body"><p>First Things First</p></div> | ||
</li> | ||
<li> | ||
<div class="collapsible-header"><a><i class="material-icons">filter_drama</i>Mike's Hard Lemonade</a></div> | ||
<div class="collapsible-body"><p>First Things First</p></div> | ||
</li> | ||
<li> | ||
<div class="collapsible-header"><a><i class="material-icons">filter_drama</i>Absolut Vodka</a></div> | ||
<div class="collapsible-body"><p>First Things First</p></div> | ||
</li> | ||
</ul> | ||
<ul class="collapsible col s5 push-s1" data-collapsible="expandable"> | ||
<li> | ||
<div class="collapsible-header"><a><i class="material-icons">filter_drama</i>Newman's Own Oil & Vinegar Dressing</a></div> | ||
<div class="collapsible-body"><p>First Things First</p></div> | ||
</li> | ||
<li> | ||
<div class="collapsible-header"><a><i class="material-icons">filter_drama</i>Tater Tots</a></div> | ||
<div class="collapsible-body"><p>First Things First</p></div> | ||
</li> | ||
<li> | ||
<div class="collapsible-header"><a><i class="material-icons">filter_drama</i>Twinkies</a></div> | ||
<div class="collapsible-body"><p>First Things First</p></div> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
|
||
<script> | ||
$(".collapsible").collapsible({accordion: false}); | ||
// function expandAll(){ | ||
// $(".collapsible-header").addClass("active"); | ||
// $(".collapsible").collapsible({accordion: false}); | ||
// } | ||
// function collapseAll(){ | ||
// $(".collapsible-header").removeClass(function(){ | ||
// return "active"; | ||
// }); | ||
// $(".collapsible").collapsible({accordion: true}); | ||
// $(".collapsible").collapsible({accordion: false}); | ||
// } | ||
</script> |
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
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
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
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
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
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
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
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