Commit 0bd671f7 authored by ancoats's avatar ancoats
Browse files

Recompile theme CSS and correct utility classes

parent a1693e0a
......@@ -7,8 +7,8 @@
{% include '_partials/components/shared/page-title.twig' with {
text: 'Page not found'|t
} %}
<p class="h4 u-width-max-none">{{ "Sorry, that page does not exist."|t }}</p>
<a class="c-button u-margin-top-2" href="{{ currentSite.baseUrl }}">
<p class="h4 u-max-width-none">{{ "Sorry, that page does not exist."|t }}</p>
<a class="c-button u-margin-top-6" href="{{ currentSite.baseUrl }}">
<span class="c-button__label">{{ 'To the homepage'|t }}</span>
</a>
</div>
......
......@@ -19,7 +19,7 @@
{% include '_partials/components/template-entry-type-action-default/page-header.twig' %}
{% set image = entry.featuredImage.one() %}
{% if image %}
<section class="c-panel u-background-color-black u-padding-0">
<section class="c-panel u-background-color-black u-padding-top-0 u-padding-bottom-0">
<div class="container">
{% include '_partials/components/shared/image.twig' with {
imageClass: 'c-featured-image',
......@@ -28,7 +28,7 @@
</div>
</section>
{% endif %}
<div class="container u-margin-top-3 u-margin-bottom-3">
<div class="container u-margin-top-7 u-margin-bottom-7">
{% include '_partials/components/shared/standfirst.twig' with {
text: entry.standfirst
} %}
......
......@@ -26,7 +26,7 @@
{% include '_partials/components/template-entry-campaign/page-header.twig' %}
{% set image = entry.featuredImage.one() %}
{% if image %}
<section class="c-panel u-background-color-black u-padding-0">
<section class="c-panel u-background-color-black u-padding-top-0 u-padding-bottom-0">
<div class="container">
{% include '_partials/components/shared/image.twig' with {
imageClass: 'c-featured-image',
......@@ -35,7 +35,7 @@
</div>
</section>
{% endif %}
<div class="container u-margin-top-3 u-margin-bottom-3">
<div class="container u-margin-top-7 u-margin-bottom-7">
{% include '_partials/components/shared/content-blocks.twig' with {
contentBlocks: entry.contentBlocks.all()
} %}
......
......@@ -21,7 +21,7 @@
{% include '_partials/components/template-entry-event/page-header.twig' %}
{% set image = entry.featuredImage.one() %}
{% if image %}
<section class="c-panel u-background-color-black u-padding-0">
<section class="c-panel u-background-color-black u-padding-top-0 u-padding-bottom-0">
<div class="container">
{% include '_partials/components/shared/image.twig' with {
imageClass: 'c-featured-image',
......
......@@ -19,7 +19,7 @@
{% case 'image' %}
{% include '_partials/components/shared/image.twig' with {
image: contentBlock.image.one(),
imageClass: 'u-margin-top-3',
imageClass: 'u-margin-top-7',
imageTransform: 'ratio5x3_width1200',
imageCaption: contentBlock.imageCaption
} %}
......@@ -27,13 +27,13 @@
{% case 'imageGrid' %}
{% set images = contentBlock.imageGridImages.all() %}
{% include '_partials/components/shared/image-grid.twig' with {
imageGridClass: 'u-margin-top-3',
imageGridClass: 'u-margin-top-7',
imageGridCaption: contentBlock.imageGridCaption
} %}
{% case 'embed' %}
{% include '_partials/components/shared/video.twig' with {
videoClass: 'u-margin-top-3',
videoClass: 'u-margin-top-7',
videoURL: contentBlock.embedURL,
videoCaption: contentBlock.embedCaption
} %}
......@@ -41,19 +41,19 @@
id: 'video-transcript-' ~ contentBlock.id,
collapsibleButtonLabel: 'Video transcript'|t,
collapsibleBody: contentBlock.embedTranscript,
collapsibleClass: 'u-margin-top-0_5'
collapsibleClass: 'u-margin-top-3'
} %}
{% case 'callout' %}
{% include '_partials/components/shared/prompt.twig' with {
promptClass: 'u-margin-top-3',
promptClass: 'u-margin-top-7',
promptContent: contentBlock.calloutBody,
promptStyle: 'ghost',
promptType: contentBlock.calloutType
} %}
{% case 'callToAction' %}
<div class="s-redactor u-margin-top-3">
<div class="s-redactor u-margin-top-7">
{% if contentBlock.ctaHeading %}<h2 class="h3">{{ contentBlock.ctaHeading }}</h2>{% endif %}
<p class="lead">{{ contentBlock.ctaBody | striptags('<strong><em><a>') }}</p>
{% if (contentBlock.ctaButtonLabel and contentBlock.ctaButtonURL) %}
......@@ -64,7 +64,7 @@
</div>
{% case 'faq' %}
<div class="u-margin-top-3">
<div class="u-margin-top-7">
{% if contentBlock.faqHeading %}<h2 class="h3">{{ contentBlock.faqHeading }}</h2>{% endif %}
{% include '_partials/components/template-page-faq/faq-section-entries.twig' with {
questions: contentBlock.faqEntries.all()
......@@ -72,7 +72,7 @@
</div>
{% case 'references' %}
<div class="stack u-margin-top-3">
<div class="stack u-margin-top-7">
{% if contentBlock.referencesHeading %}<h2 class="h3">{{ contentBlock.referencesHeading }}</h2>{% endif %}
<ul class="c-list c-list--references">
{% for reference in contentBlock.references %}
......@@ -82,7 +82,7 @@
</div>
{% case 'tags' %}
<ul class="c-tag-list u-margin-top-3">
<ul class="c-tag-list u-margin-top-7">
{% for tag in contentBlock.tags %}
<li class="c-tag-list__item">
{% if tag.tagURL %}
......
{% if entry|length %}
<article class="c-bookend c-bookend--entry u-width-max-none">
<article class="c-bookend c-bookend--entry u-max-width-none">
<a class="c-bookend__link" href="{{ entry.url }}">{{ entry.title }}</a>
{% set author = entry.byline.one() ?: entry.author %}
<span class="c-bookend__label">{{ author.userNamePublic | default(author.name) }}</span>
......
{% if entry.socialMediaTags %}
<section class="c-panel u-padding-0" data-context="social-media" id="section-social-media">
<section class="c-panel u-padding-top-0 u-padding-bottom-0" data-context="social-media" id="section-social-media">
<div class="lock-on">
<ul class="c-tag-list">
{% for tag in entry.socialMediaTags %}
......
......@@ -9,7 +9,7 @@
{% for value in entry.xrValues %}
<li class="c-list__item">
<h3 class="h4">{{ value.xrValueHeading }}</h3>
<p class="u-margin-top-0_25">{{ value.xrValueDescription }}</p>
<p class="u-margin-top-2">{{ value.xrValueDescription }}</p>
</li>
{% endfor %}
</ul>
......
......@@ -4,7 +4,7 @@
user: user.userNamePublic | default(user.name)
}) }}</h2>
{% include '_partials/components/shared/icon-group.twig' with {
class: 'u-margin-top-1',
class: 'u-margin-top-5',
icons: {
'twitter': user.userURLTwitter,
'facebook': user.userURLFacebook,
......
This diff is collapsed.
This diff is collapsed.
source @ e47e206e
Subproject commit 8ea46baf6f3ad83e4a0cb5914ea3103b000cdb78
Subproject commit e47e206e24069482a7f83fe740bb834d13a6d8ea
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment