From 148dbfab76be80ba586abca2aac27e0be954748c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Arag=C3=B3n?= Date: Thu, 31 Jan 2019 17:47:19 -0500 Subject: [PATCH] fix card courses - refs #2681 --- assets/css/scss/_base.scss | 10 +++++++++- .../Resources/views/Index/userportal.html.twig | 3 --- .../Resources/views/Layout/layout_one_col.html.twig | 2 +- src/ThemeBundle/Resources/views/Macros/box.html.twig | 7 ++++--- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/assets/css/scss/_base.scss b/assets/css/scss/_base.scss index eab939cfa9..b688ebfe40 100644 --- a/assets/css/scss/_base.scss +++ b/assets/css/scss/_base.scss @@ -440,7 +440,12 @@ hr { break-inside: avoid; display: inline-table; .card-session{ - border-bottom-width: 5px; + .card-body{ + padding: 0; + .card-inside{ + padding: 0.8rem; + } + } .card-title{ font-size: 16px; a{ @@ -468,6 +473,9 @@ hr { grid-gap: 1rem; grid-row-gap: 16px; grid-template-columns: repeat(2, 1fr); + @include large($breakpoint-xl){ + grid-template-columns: repeat(3, 1fr); + } @include portrait($breakpoint-sm, $breakpoint-md){ grid-template-columns: repeat(2, 1fr); } diff --git a/src/ThemeBundle/Resources/views/Index/userportal.html.twig b/src/ThemeBundle/Resources/views/Index/userportal.html.twig index 1ed5aa19e7..f2a1767711 100644 --- a/src/ThemeBundle/Resources/views/Index/userportal.html.twig +++ b/src/ThemeBundle/Resources/views/Index/userportal.html.twig @@ -25,8 +25,5 @@ - - - {% endautoescape %} {% endblock %} diff --git a/src/ThemeBundle/Resources/views/Layout/layout_one_col.html.twig b/src/ThemeBundle/Resources/views/Layout/layout_one_col.html.twig index 61d4ca32de..b125132537 100644 --- a/src/ThemeBundle/Resources/views/Layout/layout_one_col.html.twig +++ b/src/ThemeBundle/Resources/views/Layout/layout_one_col.html.twig @@ -41,7 +41,7 @@ {# Content #} {% block content %} -
+
{{ content }}
{% endblock %} diff --git a/src/ThemeBundle/Resources/views/Macros/box.html.twig b/src/ThemeBundle/Resources/views/Macros/box.html.twig index aee061f339..f63f91b0c2 100644 --- a/src/ThemeBundle/Resources/views/Macros/box.html.twig +++ b/src/ThemeBundle/Resources/views/Macros/box.html.twig @@ -285,8 +285,7 @@ {% macro box_session(id, title, content, image) %} {% autoescape false %} - {% set values = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f']%} -
+
@@ -294,7 +293,9 @@ {{ image }}
- {{ title }} +
+ {{ title }} +