Commits

Scott Nixon  committed 0f8633c

Added tabs element and nutrition template

  • Participants
  • Parent commits 52c67b7

Comments (0)

Files changed (2)

File design/css/mellow-main.css

     width: 25px;
 }
 .food-info h1 {
-    padding: 0.75em 0.75em;
     margin: 0 0;
     color: #000;
-//    background-color: #8bada3;
 }
 .food-info .sec-tier{
 //    background-color: #3B6670;
 }
 .food-info {
-    background-color: #0d1F30;
+
 }
 .food-info .quad-tier {
   //  background-color: #f0e3c0;

File design/returning_person.html

 <link rel="stylesheet" href="css/sunny/jquery-ui-1.8.11.custom.css" type="text/css" media="screen">
 <style>
 
+#nutri-info { background-color:#fff; margin: 10px 0 10px 0; border: 1px solid #CCCCCC; color: #333333; font-family: Verdana, sans-serif; padding:10px;}
+#nutri-info h4 {font-size: 14px;line-height: 100%;font-weight: normal;color: #847840;text-align: left; padding: 0 0 6px 0; font-family:Arial, Helvetica, sans-serif; margin:0;}
+#nutri-info p {font-size: 80%; margin:4px 0 4px 0;}
+#nutri-info ul {clear:right; border-top: 3px solid #000000;;border-bottom: 2px solid #000000;font-size: 80%; margin: 10px 0 10px 0; padding: 0; list-style-type: none;}
+#nutri-info li {border-bottom: 1px solid #000000; margin: 0; padding: 8px 0 8px 0; line-height: 100%;}
+#nutri-info a {font-size:10px; } 
+
 </style>
 
 <!-- <script type="text/javascript" src="sd/jquery-1.3.2.min.js"></script>
 
 <script>
   $(function() {
-	$( "#tabs" ).tabs();
+	$( "#tabs" ).tabs({ selected: 0 });
   });
 </script>
     </head>
 	<img width="550" height="400" src="images/corn-cowder.jpg">
       </div>
       <div class="yui3-u-1-3 food-info">
-	<ul>
-	  <li><h1>Chipotle Roasted Corn Soup</h1></li>
-	  <li class="sec-tier"><input type="text" value="3"> 14oz. - Serves 1</li>
-	  <li class="sec-tier"><button type="button">Add to Cart</button></li>
-	  <li class="third-tier"><strong>Description:</strong> Sweet and velvety, roasted corn soup with a hint of 
-	      chipotle. Lorem ipsum dolor sit amet, consector adipisicing elit, sed do eiusmod tempor incididunt.</li>
-	  <li class="quad-tier"><strong>Ingredients:</strong> roasted corn, non-dairy milk, chipotle powder</li>
-	  <li>Main | Nutrition</li>
-	</ul>
+	
 
-
-<div class="demo">
+<!-- Begin Tabs -->
 
 <div id="tabs">
 	<ul>
-		<li><a href="#tabs-1">Nunc tincidunt</a></li>
-		<li><a href="#tabs-2">Proin dolor</a></li>
-		<li><a href="#tabs-3">Aenean lacinia</a></li>
+		<li><a href="#tabs-1">Main</a></li>
+		<li><a href="#tabs-2">Nutrition</a></li>
 	</ul>
 	<div id="tabs-1">
-		<p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
+	  <ul>
+	    <li><h1>Chipotle Roasted Corn Soup</h1></li>
+	    <li class="sec-tier"><input type="text" value="3"> 14oz. - Serves 1</li>
+	    <li class="sec-tier"><button type="button">Add to Cart</button></li>
+	    <li class="third-tier"><strong>Description:</strong> Sweet and velvety, roasted corn soup with a hint of chipotle. Lorem ipsum dolor sit amet, consector adipisicing elit, sed do eiusmod tempor incididunt.</li>
+	    <li class="quad-tier"><strong>Ingredients:</strong> roasted corn, non-dairy milk, chipotle powder</li>
+	  </ul>
+	
 	</div>
 	<div id="tabs-2">
-		<p>Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.</p>
+	  <div id="nutri-info" style="" display="block">
+              <div class="title">Nutritional Information</div>
+                 <p>Servings: 1</p>
+                     <p>
+                        <b>Amount Per Serving</b>
+		     </p>
+                     <p>Calories: 186</p>
+                     <ul>
+                       <li><b>Total Fat: </b> 12.3g</li>
+                       <li><b>Cholesterol: </b> 430mg</li>
+                       <li><b>Sodium: </b> 666mg</li>
+                       <li><b>Total Carbs: </b> 2.8g</li>
+                       <li>&nbsp;&nbsp;&nbsp;&nbsp;<b>Dietary Fiber: </b>
+                                    0.8g</li>
+                       <li><b>Protein: </b> 16.4g</li>
+                     </ul>
+                           
+                        </div>
+	
 	</div>
-	<div id="tabs-3">
-		<p>Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.</p>
-		<p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p>
-	</div>
-</div>
-
-</div><!-- End demo -->
+</div> <!-- End Tabs -->
 
       </div>