Skip to content
Snippets Groups Projects
Commit a6d5438d authored by James Wilson's avatar James Wilson
Browse files

Issue #3282253 by jwilson3: Support multiple stacked stats & panels inside grid item columns

parent ae6407f5
Branches
Tags 2.0.6
1 merge request!2Issue #3404481: Rivet - Port Tabs component
......@@ -5,3 +5,16 @@
.grid.builder > .grid-item {
flex: 1 1 0;
}
.grid-item.has-multiple-items>.stat,
.grid-item.has-multiple-items>.panel,
.grid-item.has-multiple-items>.panel--interactive {
height: auto;
margin-bottom: 1.5rem;
}
.grid-item.has-multiple-items>.stat:last-child,
.grid-item.has-multiple-items>.panel:last-child,
.grid-item.has-multiple-items>.panel--interactive:last-child {
margin-bottom: 0;
}
......@@ -38,10 +38,12 @@
* @ingroup themeable
*/
#}
{% set contents = content._field_layout.content.iu_grid_item_content %}
{% set count = contents['#items']|length %}
{%
set classes = [
'grid-item'
'grid-item',
count > 1 ? 'has-multiple-items',
]
%}
{% block paragraph %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment