first version of two column layout of tracker.
This commit is contained in:
parent
03ab4379c6
commit
3453453ddd
|
@ -100,6 +100,17 @@ header nav a {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*.clothes-type {
|
||||||
|
column-count: 2;
|
||||||
|
}*/
|
||||||
|
.shop-all {
|
||||||
|
column-count: 2;
|
||||||
|
}
|
||||||
|
|
||||||
.tracker-table {
|
.tracker-table {
|
||||||
width: 40rem
|
width: 40rem;
|
||||||
|
-webkit-column-break-inside:avoid;
|
||||||
|
-moz-column-break-inside:avoid;
|
||||||
|
-o-column-break-inside:avoid;
|
||||||
|
-ms-column-break-inside:avoid;
|
||||||
}
|
}
|
|
@ -1,8 +1,11 @@
|
||||||
<h1>Listing Clothes</h1>
|
<h1>Listing Clothes</h1>
|
||||||
|
<div class="trackers">
|
||||||
<%= for {shop, map_of_clothes_by_type} <- @clothes_map do %>
|
<%= for {shop, map_of_clothes_by_type} <- @clothes_map do %>
|
||||||
<h2> <%= shop %></h2>
|
<h2> <%= shop %></h2>
|
||||||
|
<div class="shop-all">
|
||||||
<%= for {type, map_of_clothes_by_name} <- map_of_clothes_by_type do %>
|
<%= for {type, map_of_clothes_by_name} <- map_of_clothes_by_type do %>
|
||||||
<h3> <%= type %> </h3>
|
<!-- <h3> <%= type %> </h3> -->
|
||||||
|
<div class="clothes-type">
|
||||||
<%= for {name, list_of_clothes} <- map_of_clothes_by_name do %>
|
<%= for {name, list_of_clothes} <- map_of_clothes_by_name do %>
|
||||||
<table class="tracker-table">
|
<table class="tracker-table">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -22,5 +25,8 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue