This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing Bower Versions, Fix Flickering
- Loading branch information
Showing
7 changed files
with
71 additions
and
82 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
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 |
---|---|---|
@@ -1,23 +1,9 @@ | ||
body { | ||
padding-top:50px; | ||
.content { | ||
margin-top: 50px; | ||
} | ||
|
||
a.undecorated-link:hover { | ||
text-decoration: none; | ||
} | ||
|
||
footer { | ||
position:fixed; | ||
left:0px; | ||
bottom:0px; | ||
height:30px; | ||
width:100%; | ||
background:#ddd; | ||
-webkit-box-shadow:0 8px 6px 6px black; | ||
-moz-box-shadow:0 8px 6px 6px black; | ||
box-shadow:0 8px 6px 6px black | ||
} | ||
|
||
footer p { | ||
padding:5px 0 12px 10px | ||
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak { | ||
display: none !important; | ||
} |
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 |
---|---|---|
@@ -1,19 +1,22 @@ | ||
'use strict'; | ||
|
||
angular.module('mean.core').controller('HeaderController', ['$scope', 'Authentication', | ||
function($scope, Authentication) { | ||
$scope.authentication = Authentication; | ||
function($scope, Authentication) { | ||
$scope.authentication = Authentication; | ||
$scope.isCollapsed = false; | ||
|
||
$scope.menu = [{ | ||
title: 'Articles', | ||
link: 'articles', | ||
uiRoute: '/articles' | ||
}, { | ||
title: 'New Article', | ||
link: 'articles/create', | ||
uiRoute: '/articles/create' | ||
}]; | ||
$scope.menu = [{ | ||
title: 'Articles', | ||
link: 'articles', | ||
uiRoute: '/articles' | ||
}, { | ||
title: 'New Article', | ||
link: 'articles/create', | ||
uiRoute: '/articles/create' | ||
}]; | ||
|
||
$scope.isCollapsed = false; | ||
} | ||
$scope.toggleCollapsibleMenu = function() { | ||
$scope.isCollapsed = !$scope.isCollapsed; | ||
}; | ||
} | ||
]); |
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,39 +1,39 @@ | ||
<div class="container" data-ng-controller="HeaderController"> | ||
<div class="navbar-header"> | ||
<button class="navbar-toggle" type="button" data-ng-click="isCollapsed = !isCollapsed"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a href="/#!/" class="navbar-brand">MEAN.JS</a> | ||
</div> | ||
<nav class="collapse navbar-collapse" collapse="!isCollapsed" role="navigation"> | ||
<ul class="nav navbar-nav" data-ng-show="authentication.user"> | ||
<li data-ng-repeat="item in menu" data-ng-show="authentication.user" ui-route="{{item.uiRoute}}" ng-class="{active: $uiRoute}"> | ||
<a href="/#!/{{item.link}}">{{item.title}}</a> | ||
</li> | ||
</ul> | ||
<ul class="nav navbar-nav navbar-right" data-ng-hide="authentication.user"> | ||
<li ui-route="/signup" ng-class="{active: $uiRoute}"> | ||
<a href="/#!/signup">Signup</a> | ||
</li> | ||
<li class="divider-vertical"></li> | ||
<li ui-route="/signin" ng-class="{active: $uiRoute}"> | ||
<a href="/#!/signin">Signin</a> | ||
</li> | ||
</ul> | ||
<ul class="nav navbar-nav navbar-right" data-ng-show="authentication.user"> | ||
<li class="dropdown"> | ||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> | ||
<div class="navbar-header"> | ||
<button class="navbar-toggle" type="button" data-ng-click="toggleCollapsibleMenu()"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a href="/#!/" class="navbar-brand">MEAN.JS</a> | ||
</div> | ||
<nav class="collapse navbar-collapse" collapse="!isCollapsed" role="navigation"> | ||
<ul class="nav navbar-nav" data-ng-show="authentication.user"> | ||
<li data-ng-repeat="item in menu" data-ng-show="authentication.user" ui-route="{{item.uiRoute}}" ng-class="{active: $uiRoute}"> | ||
<a href="/#!/{{item.link}}">{{item.title}}</a> | ||
</li> | ||
</ul> | ||
<ul class="nav navbar-nav navbar-right" data-ng-hide="authentication.user"> | ||
<li ui-route="/signup" ng-class="{active: $uiRoute}"> | ||
<a href="/#!/signup">Signup</a> | ||
</li> | ||
<li class="divider-vertical"></li> | ||
<li ui-route="/signin" ng-class="{active: $uiRoute}"> | ||
<a href="/#!/signin">Signin</a> | ||
</li> | ||
</ul> | ||
<ul class="nav navbar-nav navbar-right" data-ng-show="authentication.user"> | ||
<li class="dropdown"> | ||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> | ||
{{authentication.user.displayName}} <b class="caret"></b> | ||
</a> | ||
<ul class="dropdown-menu"> | ||
<li> | ||
<a href="/auth/signout">Signout</a> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</nav> | ||
<ul class="dropdown-menu"> | ||
<li> | ||
<a href="/auth/signout">Signout</a> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</nav> | ||
</div> |