mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Styling improvements to the popups for producers
This commit is contained in:
@@ -13,3 +13,4 @@
|
||||
|
||||
$ ->
|
||||
$(document).foundation()
|
||||
$(document).foundation('reveal', {animation: 'fade'})
|
||||
|
||||
@@ -90,6 +90,10 @@ product
|
||||
max-width: 555px
|
||||
@media all and (max-width: 768px)
|
||||
height: auto !important
|
||||
ul
|
||||
list-style-type: none
|
||||
padding-left: none
|
||||
|
||||
& > .title, &.active > .title
|
||||
text-transform: uppercase
|
||||
line-height: 50px
|
||||
|
||||
9
app/views/shop/shop/_producer_details.html.haml
Normal file
9
app/views/shop/shop/_producer_details.html.haml
Normal file
@@ -0,0 +1,9 @@
|
||||
- for producer in @producers
|
||||
.reveal-modal{id: "producer_details_#{producer.id}"}
|
||||
%h2
|
||||
%img.left{src: producer.logo.url(:thumb)}
|
||||
= producer.name
|
||||
%img.about.right{src: producer.promo_image.url(:large)}
|
||||
= producer.description.andand.html_safe
|
||||
%a.close-reveal-modal ×
|
||||
|
||||
Reference in New Issue
Block a user