mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-01 13:10:58 -05:00
Tidy up visual link between planting thumbnail and crop name
This commit is contained in:
@@ -93,17 +93,28 @@ p.stats
|
||||
padding-left: 1em
|
||||
width: 15em
|
||||
|
||||
.progress
|
||||
border-radius: 0
|
||||
|
||||
.planting
|
||||
.planting-badges
|
||||
position: absolute
|
||||
|
||||
.planting-thumbnail
|
||||
padding: 0
|
||||
border: 1px solid darken($beige, 10%)
|
||||
border-radius: 4px
|
||||
|
||||
.planting-name
|
||||
position: relative
|
||||
top: -1em
|
||||
|
||||
dl.planting-attributes
|
||||
dt
|
||||
text-align: left
|
||||
dd
|
||||
margin-left: auto
|
||||
|
||||
.planting-badges
|
||||
position: absolute
|
||||
|
||||
|
||||
#placesmap, #cropmap
|
||||
height: 500px
|
||||
|
||||
@@ -156,6 +167,7 @@ p.stats
|
||||
text-align: center
|
||||
margin-bottom: 1.5em
|
||||
max-width: 160px
|
||||
max-height: 200px
|
||||
|
||||
.member-thumbnail
|
||||
text-align: left
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
- if planting.crop.perennial
|
||||
%p Perennial
|
||||
%p
|
||||
%i perennial
|
||||
- elsif !planting.planted?
|
||||
- if show_explanation
|
||||
%p Progress: 0% - not planted yet
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
.planting-badges
|
||||
= render 'plantings/badges', planting: planting
|
||||
.hover-wrapper
|
||||
.text= render 'plantings/actions', planting: planting
|
||||
.thumbnail
|
||||
.planting-thumbnail
|
||||
= link_to image_tag(planting_image_path(planting), alt: planting.crop.name, class: 'img'), planting_path(planting)
|
||||
.plantinginfo
|
||||
.planting
|
||||
.planting-badges
|
||||
= render 'plantings/badges', planting: planting
|
||||
.hover-wrapper
|
||||
.text
|
||||
= render 'plantings/actions', planting: planting
|
||||
.thumbnail
|
||||
.planting-thumbnail
|
||||
= link_to image_tag(planting_image_path(planting), alt: planting.crop.name, class: 'img'), planting_path(planting)
|
||||
= render 'plantings/progress', planting: planting, show_explanation: false
|
||||
.planting-name
|
||||
= render 'plantings/progress', planting: planting, show_explanation: false
|
||||
= link_to planting.crop.name, planting
|
||||
|
||||
Reference in New Issue
Block a user