Add wrap class
This commit is contained in:
parent
abdbd30e99
commit
f54cd7b3e7
|
@ -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';
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
{% include 'layout/navbar' %}
|
||||
|
||||
<div class="mt-24 px-4 mx-auto {{ page.wide ? 'max-w-5xl' : 'max-w-3xl' }}">
|
||||
<main id="main-content">
|
||||
<div class="container mt-24 px-4 mx-auto">
|
||||
<main id="main-content" class="wrap {{ page.layout == 'front' ? 'is-wide' : '' }}">
|
||||
{% block page_title_wrapper %}
|
||||
<h1 class="leading-tight mb-4">
|
||||
{% block page_title %}{{ page.title }}{% endblock %}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{% block content_wrapper %}
|
||||
<div class="md:flex -mx-6">
|
||||
<div class="w-auto md:flex-1 px-6 mb-12 md:mb-0">
|
||||
<div class="wrap md:flex-1 px-6 mb-12 md:mb-0">
|
||||
<div class="markup spaced-y-4 mb-8">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
|
|
@ -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
|
||||
---
|
||||
<div class="mb-4 w-32"><img src="/images/me-precedent.jpg" alt="Picture of Oliver" class="rounded-full border border-gray"/></div>
|
||||
|
||||
|
|
Reference in a new issue