From d7c16e9ed2f2971da2bad623b0a2eeb2e8e0de65 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Tue, 28 Jan 2020 23:03:41 +0100 Subject: [PATCH] add: table css fix: info-list spacing --- css/custom.css | 23 +++++++++++++++++++++++ templates/info-list.html.twig | 5 ++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/css/custom.css b/css/custom.css index 237405a..d4ebd8f 100644 --- a/css/custom.css +++ b/css/custom.css @@ -75,3 +75,26 @@ body, #wrapper background-color: #3b5998; border-color: #3b5998; } + +#home-carousel +{ + height: 400px; +} + +#home-carousel img +{ + max-width: 100%; + max-height: 400px; +} + +table tbody tr:nth-of-type(2n+1) +{ + background: + #d0d6d3; +} + +table td, +table th +{ + padding: 0.6rem 0.4rem; +} diff --git a/templates/info-list.html.twig b/templates/info-list.html.twig index 637005a..0dc2287 100644 --- a/templates/info-list.html.twig +++ b/templates/info-list.html.twig @@ -3,7 +3,10 @@ {% set collection = page.collection() %} {% block content %} - {{ page.content }} + {% if page.content %} + {{ page.content }} +
+ {% endif %} {% for child in collection %} {% if child.template == 'info' %}