From 0518f9d65f3c8f7ac4641246913369eb4f3536c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Moreira?= Date: Thu, 10 Oct 2024 17:25:14 +0200 Subject: [PATCH] Single page layout for mobile --- scss/modules/field.scss | 2 ++ templates/content/node--k-centre-profile.html.twig | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scss/modules/field.scss b/scss/modules/field.scss index 78a4580..8133d88 100644 --- a/scss/modules/field.scss +++ b/scss/modules/field.scss @@ -8,6 +8,8 @@ body .node--type-k-centre-profile, body .node--type-clarin-centre { .field:not(.field--name-field-k-centre-website-url, .field--name-field-centre-contact-email, .field--name-field-centre-contact-name, .field--name-field-centre-contact-telephone, .field--name-field-centre-contact-website-url, .field--name-field-centre-contact-eppn) { padding-bottom: 0.625rem; + padding-left: calc(var(--bs-gutter-x) * .5); + padding-right: calc(var(--bs-gutter-x) * .5); p { margin: 0; diff --git a/templates/content/node--k-centre-profile.html.twig b/templates/content/node--k-centre-profile.html.twig index e73b7ff..7409b38 100644 --- a/templates/content/node--k-centre-profile.html.twig +++ b/templates/content/node--k-centre-profile.html.twig @@ -64,19 +64,19 @@ CLARIN Resource Familes logo, linking to the 'Resource Familes' section of this website -
+
{{ content.field_resource_families }}
{% endif %} {% if content.field_tour_de_clarin_intro.0 or content.field_tour_de_clarin_interview.0 %}
-
+ -
+
Introduction
{{ content.field_tour_de_clarin_intro.0 }}
Interview
{{ content.field_tour_de_clarin_interview.0 }}