mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
Reworking shop to be more responsive
This commit is contained in:
@@ -96,15 +96,19 @@ shop
|
||||
th
|
||||
line-height: 50px
|
||||
&.name
|
||||
width: 265px
|
||||
&.notes
|
||||
width: 280px
|
||||
width: 300px
|
||||
//&.notes
|
||||
//width: 220px
|
||||
&.variant
|
||||
width: 150px
|
||||
max-width: 100px
|
||||
.notes
|
||||
max-width: 300px
|
||||
td, th
|
||||
background: #fff
|
||||
> span
|
||||
min-width: 50px
|
||||
display: block
|
||||
tbody
|
||||
border: 1px solid #cccccc
|
||||
border-left: 0px
|
||||
border-right: 0px
|
||||
@@ -113,6 +117,23 @@ shop
|
||||
&.name img
|
||||
float: left
|
||||
margin-right: 20px
|
||||
tr.product-description
|
||||
display: none
|
||||
|
||||
|
||||
// Responsive
|
||||
@media all and (max-width: 768px)
|
||||
td.notes, th.notes
|
||||
display: none
|
||||
img
|
||||
width: 20px
|
||||
height: auto
|
||||
tr.product-description
|
||||
display: table-row
|
||||
td:empty
|
||||
display: none
|
||||
|
||||
|
||||
input[type=number]
|
||||
width: 60px
|
||||
margin: 0px
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
{{ product.name }}
|
||||
{{ product.supplier.name }}
|
||||
%td.notes {{ product.notes | truncate:80 }}
|
||||
|
||||
%td
|
||||
{{ product.master.options_text }}
|
||||
%span{"ng-show" => "product.variants.length > 0"}
|
||||
@@ -48,6 +47,8 @@
|
||||
%td.price.text-right
|
||||
%small{"ng-show" => "(product.variants.length > 0)"} from
|
||||
{{ product.price | currency }}
|
||||
%tr.product-description
|
||||
%td{colspan: 6}{{ product.notes | truncate:80 }}
|
||||
%tr{"ng-repeat" => "variant in product.variants", "ng-show" => "product.show_variants"}
|
||||
= render partial: "shop/variant"
|
||||
%input.button.right{type: :submit, value: "Check Out"}
|
||||
|
||||
Reference in New Issue
Block a user