Getting some switching into place

This commit is contained in:
Will Marshall
2014-03-20 14:36:00 +11:00
parent 0cabc2eb4d
commit d8a7860d51
4 changed files with 18 additions and 5 deletions

View File

@@ -4,6 +4,5 @@ window.SidebarCtrl = Darkswarm.controller "SidebarCtrl", ($scope, $location) ->
, ->
$scope.active_sidebar = $location.path()
$scope.active = ->
return "active" if $scope.active_sidbar != null and $scope.active_sidebar != ""
return "active" if $scope.active_sidebar != null and $scope.active_sidebar != ""

View File

@@ -1,5 +1,5 @@
/* Off canvas layout CSS/JS provided by or adapted from work by Jason Weaver and Luke Wroblewski Requires globals.css grid.css */
body.off-canvas { padding: 0; margin: 0; overflow: hidden}
body.off-canvas { padding: 0; margin: 0;}
.container { width: 100%; }

View File

@@ -0,0 +1,13 @@
@import "foundation/variables"
@import "foundation/components/global"
@import "foundation/components/buttons"
@import "foundation/components/panels"
#sidebar
margin-top: 1.875em
.login-panel
$bg: #222
$padding: emCalc(20)
$adjust: true
@include panel($bg, $padding, $adjust)

View File

@@ -1,6 +1,7 @@
.login-panel
%a{href: "#"} Close
#login-content
#login-content{"ng-show" => "active_sidebar == '/login'"}
= render "home/login"
#sign-up-content
#sign-up-content{"ng-show" => "active_sidebar == '/signup'"}
= render "home/signup"