From ab90559af52373f23d306d3e8d8239e319607cdd Mon Sep 17 00:00:00 2001 From: Mavis Ou Date: Tue, 16 Apr 2019 15:48:37 -0700 Subject: [PATCH 1/9] Update alignment on Primary & Bannered Campaign Pages --- .../wagtailpages/fragments/primary_heroguts.html | 14 ++++++-------- source/sass/global.scss | 12 ++++++++++++ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/network-api/networkapi/wagtailpages/templates/wagtailpages/fragments/primary_heroguts.html b/network-api/networkapi/wagtailpages/templates/wagtailpages/fragments/primary_heroguts.html index 2012da1bde1..75ef8ee1b68 100644 --- a/network-api/networkapi/wagtailpages/templates/wagtailpages/fragments/primary_heroguts.html +++ b/network-api/networkapi/wagtailpages/templates/wagtailpages/fragments/primary_heroguts.html @@ -21,14 +21,12 @@
-
-
-
-

{% if root.title %}{{ root.title }}{% elif page.header %}{{ page.header }}{% else %}{{ page.title }}{% endif %}

- {% if page.intro %} -

{{ page.intro }}

- {% endif %} -
+
+
+

{% if root.title %}{{ root.title }}{% elif page.header %}{{ page.header }}{% else %}{{ page.title }}{% endif %}

+ {% if page.intro %} +

{{ page.intro }}

+ {% endif %}
diff --git a/source/sass/global.scss b/source/sass/global.scss index e40b9a6b4d9..c835f4718a7 100644 --- a/source/sass/global.scss +++ b/source/sass/global.scss @@ -41,8 +41,20 @@ button:hover { } .cutout { + $grid-gutter-width: map-get($grid-gutter-widths, xs); + $padding-x: #{$grid-gutter-width / 2}; + margin-top: calc(#{$bg-pattern-height} - 40px); background: white; + padding-left: $padding-x; + padding-right: $padding-x; + + @media screen and (min-width: $bp-md) { + $offset-left: 24px; + + margin-left: -$offset-left; + padding-left: $offset-left; + } } } From f00de414ce9bcbafb2ce9cc34f61ad5ce4039aa0 Mon Sep 17 00:00:00 2001 From: Mavis Ou Date: Tue, 16 Apr 2019 16:51:54 -0700 Subject: [PATCH 2/9] updated padding --- .../templates/wagtailpages/fragments/primary_heroguts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network-api/networkapi/wagtailpages/templates/wagtailpages/fragments/primary_heroguts.html b/network-api/networkapi/wagtailpages/templates/wagtailpages/fragments/primary_heroguts.html index 75ef8ee1b68..289191b6eca 100644 --- a/network-api/networkapi/wagtailpages/templates/wagtailpages/fragments/primary_heroguts.html +++ b/network-api/networkapi/wagtailpages/templates/wagtailpages/fragments/primary_heroguts.html @@ -22,7 +22,7 @@
-
+

{% if root.title %}{{ root.title }}{% elif page.header %}{{ page.header }}{% else %}{{ page.title }}{% endif %}

{% if page.intro %}

{{ page.intro }}

From 9b3fd11969a71c1e3eae8a066a641a9689f95ff4 Mon Sep 17 00:00:00 2001 From: Mavis Ou Date: Wed, 17 Apr 2019 13:05:25 -0700 Subject: [PATCH 3/9] adjusted spacing between cutout area and secondary nav --- .../wagtailpages/fragments/primary_heroguts.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/network-api/networkapi/wagtailpages/templates/wagtailpages/fragments/primary_heroguts.html b/network-api/networkapi/wagtailpages/templates/wagtailpages/fragments/primary_heroguts.html index 289191b6eca..fe1826d62b7 100644 --- a/network-api/networkapi/wagtailpages/templates/wagtailpages/fragments/primary_heroguts.html +++ b/network-api/networkapi/wagtailpages/templates/wagtailpages/fragments/primary_heroguts.html @@ -1,6 +1,6 @@ {% load wagtailcore_tags wagtailimages_tags %} -
+