mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Styling search for shopfront page
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
.filter-box
|
||||
background: rgba(255,255,255,0.65)
|
||||
|
||||
products .filter-box
|
||||
background: #f7f7f7
|
||||
|
||||
.tdhead
|
||||
padding: 0.25rem 0.5rem
|
||||
margin-top: 0.9rem
|
||||
|
||||
@@ -4,17 +4,20 @@
|
||||
|
||||
= form_for :order, :url => populate_orders_path, html: {:class => "custom"} do
|
||||
.row
|
||||
.small-6.columns
|
||||
.small-12.medium-8.large-8.columns
|
||||
%input#search.text{"ng-model" => "query",
|
||||
placeholder: "Search products",
|
||||
placeholder: "Search by product or producer",
|
||||
"ng-debounce" => "150",
|
||||
"ofn-disable-enter" => true}
|
||||
|
||||
.small-6.columns
|
||||
%input.button.primary.right{type: :submit, value: "Add to Cart"}
|
||||
= render partial: "shop/products/filters"
|
||||
= render partial: "shop/products/filters"
|
||||
|
||||
%div{bindonce: true}
|
||||
.small-12.medium-4.large-4.columns
|
||||
%input.button.primary.right{type: :submit, value: "Add to Cart"}
|
||||
|
||||
|
||||
|
||||
%div.pad-top{bindonce: true}
|
||||
%product.animate-repeat{"ng-controller" => "ProductNodeCtrl",
|
||||
"ng-repeat" => "product in Product.products | products:query | taxons:activeTaxons | orderBy:ordering.order"}
|
||||
%div
|
||||
|
||||
Reference in New Issue
Block a user