diff --git a/assets/css/base.pcss b/assets/css/base.pcss index b027a2cd..ab5be196 100644 --- a/assets/css/base.pcss +++ b/assets/css/base.pcss @@ -4,6 +4,10 @@ } code { - @apply text-base + @apply px-2 py-1 text-sm rounded-md text-gray-700 bg-gray-200 dark:bg-gray-800 dark:text-gray-100; + } + + pre { + @apply p-4 my-8 overflow-auto rounded-md text-gray-700 bg-gray-200 dark:bg-gray-800 dark:text-gray-100; } } diff --git a/assets/css/components.pcss b/assets/css/components.pcss index ee1f5e8a..78724081 100644 --- a/assets/css/components.pcss +++ b/assets/css/components.pcss @@ -12,7 +12,7 @@ } .markdown { - * + * { + > * + * { @apply mt-4; } @@ -39,6 +39,14 @@ a { @apply link; } + + code { + @apply inline-block; + } + + pre { + @apply my-8; + } } .visually-hidden { diff --git a/source/_layouts/talk.html.twig b/source/_layouts/talk.html.twig index 2cd98618..dc0c72d9 100644 --- a/source/_layouts/talk.html.twig +++ b/source/_layouts/talk.html.twig @@ -1,21 +1,23 @@ {% extends 'base' %} {% block content_wrapper %} -
- {{ parent() }} +
+
+ {{ parent() }} +
+ + {% include 'talk/slides' with { + speakerdeck: page.speakerdeck, + } only %} + + {% include 'talk/video' with { + video: page.video, + } only %} + + {% include 'talk/events' with { + events: page.events|reverse, + } only %}
- {% include 'talk/slides' with { - speakerdeck: page.speakerdeck, - } only %} - - {% include 'talk/video' with { - video: page.video, - } only %} - - {% include 'talk/events' with { - events: page.events|reverse, - } only %} - {% include 'about-author' %} {% endblock %}