Adding padding class and apply to templates to have required padding for new footer.

This commit is contained in:
summerscope
2015-05-02 20:12:33 +10:00
parent 89a537c3f7
commit 1090328a3c
10 changed files with 13 additions and 10 deletions

View File

@@ -8,8 +8,6 @@
background-image: url("/assets/groups.svg")
background-position: center 15px
background-repeat: no-repeat
padding-bottom: 20px
a > .group-name
&:hover, &:focus, &:active
text-decoration: underline

View File

@@ -12,7 +12,6 @@
@import shop-popovers
.darkswarm
products
display: block
padding-top: 20px

View File

@@ -105,6 +105,9 @@ ul.check-list
.not-bold
font-weight: normal
.footer-pad
padding-bottom: 100px
// These selectors match the default Foundation selectors
// For clean overriden magic

View File

@@ -1,6 +1,6 @@
= inject_enterprises
.darkswarm
.darkswarm.footer-pad
- content_for :order_cycle_form do
%closing Checkout now

View File

@@ -3,7 +3,7 @@
:javascript
angular.module('Darkswarm').value('groups', #{render partial: "json/groups", object: @groups})
#groups.pad-top{"ng-controller" => "GroupsCtrl"}
#groups.pad-top.footer-pad{"ng-controller" => "GroupsCtrl"}
#active-table-search.row.pad-top
.small-12.columns
%h1 Groups / regions

View File

@@ -6,7 +6,7 @@
-# further hubs and producers of these enterprises can't be resoleved within this small subset
= inject_json_ams "group_enterprises", @group.enterprises, Api::EnterpriseSerializer, active_distributors: @active_distributors
#group-page.row.pad-top{"ng-controller" => "GroupPageCtrl"}
#group-page.row.pad-top.footer-pad{"ng-controller" => "GroupPageCtrl"}
.small-12.columns.pad-top
%header
.row

View File

@@ -1,5 +1,5 @@
= inject_enterprises
.producers.pad-top{"ng-controller" => "EnterprisesCtrl"}
.producers.pad-top.footer-pad{"ng-controller" => "EnterprisesCtrl"}
.row
.small-12.columns.pad-top
%h1 Find local producers

View File

@@ -1,4 +1,4 @@
%products.small-12.columns{"ng-controller" => "ProductsCtrl", "ng-show" => "order_cycle.order_cycle_id != null",
%products.small-12.columns.footer-pad{"ng-controller" => "ProductsCtrl", "ng-show" => "order_cycle.order_cycle_id != null",
"infinite-scroll" => "incrementLimit()", "infinite-scroll-distance" => "1"}
// TODO: Needs an ng-show to slide content down

View File

@@ -13,7 +13,7 @@
= render partial: "shopping_shared/details"
%fieldset
%fieldset.footer-pad
- if @order.line_items.empty?
%div.row{"data-hook" => "empty_cart"}
%p= t(:your_cart_is_empty)

View File

@@ -11,7 +11,7 @@
= render "shopping_shared/details"
%fieldset#order_summary{"data-hook" => ""}
%fieldset#order_summary.footer-pad{"data-hook" => ""}
.row
.columns.large-12.text-center
%h2
@@ -30,3 +30,6 @@
- unless params.has_key? :checkout_complete
- if try_spree_current_user && respond_to?(:spree_account_path)
= link_to t(:my_account), spree_account_path, :class => "button"
= render partial: "shared/footer"