mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Getting some switching into place
This commit is contained in:
@@ -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 != ""
|
||||
|
||||
@@ -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%; }
|
||||
|
||||
|
||||
13
app/assets/stylesheets/darkswarm/sidepanel.css.sass
Normal file
13
app/assets/stylesheets/darkswarm/sidepanel.css.sass
Normal 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)
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user