Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Commit

Permalink
Merge branch 'v1.x' into 355-confirm-structure-of-content-display
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjen authored Mar 24, 2021
2 parents 3be17df + b79a11a commit 61478b3
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ field_name: field_h_title
entity_type: paragraph
bundle: para_h_band
label: 'Band heading'
description: ''
description: 'Add a heading to this band if grouping the featured cards by a common element will help our users - for example, <i>Video training for aged care providers</i>'
required: false
translatable: true
default_value: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ source:
-
id: para_h_content_text_7
body_text: |
<h2>The Force Awakens</h2>
<h3>The Force Awakens</h3>
-
id: para_h_content_text_8
body_text: |
<h2>Last Jedi</h2>
<h3>Last Jedi</h3>
-
id: para_h_content_text_9
body_text: |
<h2>The Rise of Skywalker</h2>
<h3>The Rise of Skywalker</h3>
-
id: para_h_content_text_10
body_text: |
Expand Down
2 changes: 1 addition & 1 deletion themes/health/build/css/ckeditor.min.css

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions themes/health/build/css/maps/ckeditor.min.css.map

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions themes/health/build/css/maps/styles.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/health/build/css/styles.min.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions themes/health/source/sass/components/@health/_band.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.health-band {

h2 + .health-layout {
@include AU-space(margin-top, 2.5unit);
}
}
1 change: 1 addition & 0 deletions themes/health/source/sass/components/_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@import './@gov.au/side-nav';

// Health Design System overrides.
@import './@health/band';
@import './@health/card';
@import './@health/content';
@import './@health/hero';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
p.document-accessibility-form {
margin-top: 3.5rem;
@include AU-space(margin-top, 3.5unit);
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
*/
#}
{% for item in items %}
<h2 {{ item.attributes }}>{{ item.content }}</h2>
<h2 {{ item.attributes.addClass('paragraph-title') }}>{{ item.content }}</h2>
{% endfor %}
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{% extends "@paragraphs/paragraph.html.twig" %}

{% block paragraph %}

{% set classes = [
'health-layout',
'health-layout--grid'
] %}

<div{{ attributes }}>
{{ content }}
</div>

{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
{% extends "@paragraphs/paragraph.html.twig" %}

{% block paragraph %}
<div class="row">
<div class="col-xs-12 col-sm-4">
{{ content.field_h_content_components_col_1 }}
</div>
<div class="col-xs-12 col-sm-4 standard-gap--mobile-only">
{{ content.field_h_content_components }}
</div>
<div class="col-xs-12 col-sm-4 standard-gap--mobile-only">
{{ content.field_h_content_components_col_2 }}

{% set classes = [
'health-layout',
'health-layout--3col'
] %}

<div{{ attributes.addClass(classes) }}>
<div class="row">
<div class="col-xs-12 col-sm-4">
{{ content.field_h_content_components_col_1 }}
</div>
<div class="col-xs-12 col-sm-4 standard-gap--mobile-only">
{{ content.field_h_content_components }}
</div>
<div class="col-xs-12 col-sm-4 standard-gap--mobile-only">
{{ content.field_h_content_components_col_2 }}
</div>
</div>
</div>

{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
{% extends "@paragraphs/paragraph.html.twig" %}

{% block paragraph %}
<div{{ attributes }}>

{% set classes = [
'health-layout',
'health-layout--2col'
] %}

<div{{ attributes.addClass(classes) }}>
<div class="row">
<div class="{{ column_left_width_classes }}">
{{ content.field_h_content_components_col_1 }}
Expand All @@ -12,4 +18,5 @@
</div>
</div>
</div>

{% endblock %}

0 comments on commit 61478b3

Please sign in to comment.