use inline-block for petpage exports, now that TNT allow it
This commit is contained in:
parent
7d80c96bcd
commit
2fc0e61394
2 changed files with 12 additions and 22 deletions
|
@ -1,6 +1,6 @@
|
||||||
%style{:type => 'text/css'}
|
%style{:type => 'text/css'}
|
||||||
:plain
|
:plain
|
||||||
.dti-item-group, .dti-item-list, .dti-unlisted-items {
|
.dti-item-group, .dti-item-list, .dti-unlisted-items, .dti-items {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 560px;
|
width: 640px; /* Want more items per row? Edit this! */
|
||||||
}
|
}
|
||||||
|
|
||||||
.dti-item-group-header {
|
.dti-item-group-header {
|
||||||
|
@ -32,21 +32,13 @@
|
||||||
font-size: 150%;
|
font-size: 150%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dti-items {
|
|
||||||
border-spacing: 10px;
|
|
||||||
display: table;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dti-item-row {
|
|
||||||
display: table-row;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dti-item {
|
.dti-item {
|
||||||
display: table-cell;
|
display: inline-block;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
width: 84px;
|
width: 84px;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dti-item-thumbnail {
|
.dti-item-thumbnail {
|
||||||
|
@ -87,14 +79,13 @@
|
||||||
- if list.description?
|
- if list.description?
|
||||||
.dti-item-list-desc
|
.dti-item-list-desc
|
||||||
= closet_list_description_format list
|
= closet_list_description_format list
|
||||||
%div.dti-items
|
%ul.dti-items
|
||||||
= render_batched_petpage_hangers(list.hangers.sort { |a,b| a.item.name <=> b.item.name })
|
= render partial: 'petpage_hanger', collection: list.hangers.sort { |a,b| a.item.name <=> b.item.name }
|
||||||
- if unlisted_hangers_by_owned[owned]
|
- if unlisted_hangers_by_owned[owned]
|
||||||
%li.dti-unlisted-items
|
%li.dti-unlisted-items
|
||||||
- unless lists.blank?
|
- unless lists.blank?
|
||||||
%h3= t '.unlisted_header'
|
%h3= t '.unlisted_header'
|
||||||
%div
|
%ul.dti-items
|
||||||
= render_batched_petpage_hangers(unlisted_hangers_by_owned[owned])
|
= render partial: 'petpage_hanger', collection: unlisted_hangers_by_owned[owned]
|
||||||
|
|
||||||
#dti-item-footer= t '.footer'
|
#dti-item-footer= t '.footer'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
%div.dti-item
|
%li.dti-item
|
||||||
= image_tag petpage_item_thumbnail_url(hanger.item), :alt => nil, :class => 'dti-item-thumbnail'
|
= image_tag petpage_item_thumbnail_url(petpage_hanger.item), :alt => nil, :class => 'dti-item-thumbnail'
|
||||||
- if hanger.item.nc?
|
- if petpage_hanger.item.nc?
|
||||||
= image_tag nc_icon_url, :alt => t('items.item.nc.abbr'),
|
= image_tag nc_icon_url, :alt => t('items.item.nc.abbr'),
|
||||||
:class => 'dti-item-nc', :title => t('items.item.nc.description')
|
:class => 'dti-item-nc', :title => t('items.item.nc.description')
|
||||||
%span= petpage_item_name hanger.item
|
%span= petpage_item_name petpage_hanger.item
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue