From 9bc17e850d20c77d07bff85258497e983ee2eef7 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 12 Nov 2018 21:56:36 +0000 Subject: [PATCH] wiki: Style wiki content Signed-off-by: Michael Tremer --- src/scss/style.scss | 32 ++++++++++++++++++++++++++++++++ src/templates/wiki/page.html | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/src/scss/style.scss b/src/scss/style.scss index 1b326cff..00b67750 100644 --- a/src/scss/style.scss +++ b/src/scss/style.scss @@ -240,6 +240,38 @@ section { } } +.wiki-content { + h1, h2, h3, h4, h5, h6 { + font-weight: $headings-font-weight; + line-height: $headings-line-height; + margin-bottom: 0.25rem; + } + + h1 { + font-size: $h4-font-size; + } + + h2 { + font-size: $h5-font-size; + } + + h3, h4, h5, h6 { + font-size: $h6-font-size; + } + + img { + @include img-fluid; + + // Center all images + display: block; + margin-left: auto; + margin-right: auto; + + // Add some extra margin to the top & bottom + padding: ($spacer * 2) 0 ($spacer * 2) 0; + } +} + hr.divider { border-color: rgba($dark, .15); margin-top: 2rem; diff --git a/src/templates/wiki/page.html b/src/templates/wiki/page.html index fce41053..4afc6b08 100644 --- a/src/templates/wiki/page.html +++ b/src/templates/wiki/page.html @@ -14,7 +14,7 @@ {% end %}
-
+
{% raw page.html %}
-- 2.47.3