Skip to content

Commit

Permalink
updates to navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alison Stump committed Feb 25, 2014
1 parent ff147ea commit 01f5c36
Show file tree
Hide file tree
Showing 21 changed files with 706 additions and 18 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .sass-cache/b527f58e624de26befd74d10792fe3f452a5ac38/Styles.scssc
Binary file not shown.
635 changes: 635 additions & 0 deletions public/app/app.css

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions public/css/all.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
Errno::ENOENT: No such file or directory - styleLayout/all.scss
Backtrace:
/Library/Ruby/Gems/1.8/gems/sass-3.3.0.alpha.149/bin/../lib/sass/plugin/compiler.rb:302:in `read'
/Library/Ruby/Gems/1.8/gems/sass-3.3.0.alpha.149/bin/../lib/sass/plugin/compiler.rb:302:in `update_stylesheet'
/Library/Ruby/Gems/1.8/gems/sass-3.3.0.alpha.149/bin/../lib/sass/plugin/compiler.rb:182:in `update_stylesheets'
/Library/Ruby/Gems/1.8/gems/sass-3.3.0.alpha.149/bin/../lib/sass/plugin/compiler.rb:179:in `each'
/Library/Ruby/Gems/1.8/gems/sass-3.3.0.alpha.149/bin/../lib/sass/plugin/compiler.rb:179:in `update_stylesheets'
/Library/Ruby/Gems/1.8/gems/sass-3.3.0.alpha.149/bin/../lib/sass/plugin/compiler.rb:214:in `watch'
/Library/Ruby/Gems/1.8/gems/sass-3.3.0.alpha.149/bin/../lib/sass/plugin.rb:107:in `send'
/Library/Ruby/Gems/1.8/gems/sass-3.3.0.alpha.149/bin/../lib/sass/plugin.rb:107:in `method_missing'
/Library/Ruby/Gems/1.8/gems/sass-3.3.0.alpha.149/bin/../lib/sass/exec.rb:482:in `watch_or_update'
/Library/Ruby/Gems/1.8/gems/sass-3.3.0.alpha.149/bin/../lib/sass/exec.rb:324:in `process_result'
/Library/Ruby/Gems/1.8/gems/sass-3.3.0.alpha.149/bin/../lib/sass/exec.rb:41:in `parse'
/Library/Ruby/Gems/1.8/gems/sass-3.3.0.alpha.149/bin/../lib/sass/exec.rb:21:in `parse!'
/Library/Ruby/Gems/1.8/gems/sass-3.3.0.alpha.149/bin/scss:9
/usr/bin/scss:19:in `load'
/usr/bin/scss:19
*/
body:before {
white-space: pre;
font-family: monospace;
content: "Errno::ENOENT: No such file or directory - styleLayout/all.scss"; }
29 changes: 19 additions & 10 deletions public/css/app.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/css/app.css.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions public/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ angular.module('myApp.controllers', []).
/* write logic to add to order JSON here */
};

// var headerDivs = document.getElementById('header');
// headerDivs.click(activateNav());
// var activateNav = function(){
// var nav = this.getAttribute('data-nav');
// document.getElementsByTagName()
// }

}).
/* Logic specific to the Home page. */
controller('HomeCtrl', function ($scope) {
Expand Down
18 changes: 14 additions & 4 deletions styleLayout/global/Layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ h2 {
width: 100%; /* needed for Firefox */
min-height: 620px;
& > div {
@include flex(1);
width: 100%;
width: 100%;
}
}

Expand All @@ -55,7 +54,7 @@ h2 {
@include flex-direction(row);
@include align-items(stretch);
@include justify-content(space-between);
max-height: 8%;
height: 8%;

& > div {
@include flex(1);
Expand All @@ -72,7 +71,9 @@ h2 {
padding: 0 15px;
}
&:active, &:hover{
color: red;
ul {
visibility: visible;
}
}
}
& > div:first-child > div{
Expand All @@ -87,7 +88,16 @@ h2 {
}
}

ul.nav{
position: absolute;
top: 8%;
left: 0;
width: 100%;
height: 100%;
}

.app-content{
@include flex(1);
@include display(flex);
@include flex-direction(column);
@include align-items(center);
Expand Down
3 changes: 3 additions & 0 deletions styleLayout/global/Styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ body {
text-align: right;
font-size: 18px;
}
ul{
background: rgba($background-dark, .7);
}
}

.app-content{
Expand Down
6 changes: 3 additions & 3 deletions views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/normalize.css">
<!-- <link rel="stylesheet" href="//code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.css"> -->
<link rel="stylesheet" href="//code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.css">
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<div ng-controller="AppCtrl" class="app">
<div class="header Grid">
<div class="order Grid-cell">
<div class="order"><span class="icon-text2"></span></div>
<ul>
<ul class="nav">
<li><h3>Your Order</h3></li>
<li ng-repeat='item in orderItems'>
{{item.name}} {{item.cost}} {{item.quantity}}
Expand All @@ -32,7 +32,7 @@
<div class="pageName">
<span ng-class="getIcon()"></span> {{pageName}}
</div>
<ul class="menu">
<ul class="nav">
<li ng-repeat='link in linkList'><a href="{{link.location}}">{{link.name}}</a></li>
<li ng-if="pageName !== Home"><span class="icon-home"></span><a href="home">Home</a></li>
<li><a href="reviewOrder">Place Your Order</a></li>
Expand Down

0 comments on commit 01f5c36

Please sign in to comment.