From f54cd7b3e7ca6e26caf00f202c1fba21ffc0cbc3 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 15 May 2019 23:28:29 +0100 Subject: [PATCH] Add wrap class --- resources/css/app.css | 8 ++++++++ source/_layouts/default.html.twig | 4 ++-- source/_layouts/front.html.twig | 2 +- source/about.md | 1 - 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index 3d3c9fb5..0c44dfb4 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -28,6 +28,14 @@ a { @tailwind components; +.wrap { + @apply w-full max-w-3xl mx-auto; + + &.is-wide { + @apply max-w-5xl + } +} + @import 'components/blockquote.css'; @import 'components/button.css'; @import 'components/markup.css'; diff --git a/source/_layouts/default.html.twig b/source/_layouts/default.html.twig index f85264eb..735a4ecc 100644 --- a/source/_layouts/default.html.twig +++ b/source/_layouts/default.html.twig @@ -7,8 +7,8 @@ {% include 'layout/navbar' %} -
-
+
+
{% block page_title_wrapper %}

{% block page_title %}{{ page.title }}{% endblock %} diff --git a/source/_layouts/front.html.twig b/source/_layouts/front.html.twig index aadd5489..d0a05ebd 100644 --- a/source/_layouts/front.html.twig +++ b/source/_layouts/front.html.twig @@ -2,7 +2,7 @@ {% block content_wrapper %}
-
+
{% block content %}{% endblock %}
diff --git a/source/about.md b/source/about.md index eb60237d..df2c3eac 100644 --- a/source/about.md +++ b/source/about.md @@ -7,7 +7,6 @@ meta: description: 'The personal website and blog of Oliver Davies, a Full Stack Developer and System Administrator from Wales, UK.' type: website permalink: / -wide: true ---
Picture of Oliver