From d168323de95b0c14d3e71e9e3ce95bce365aeeed Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 7 Mar 2020 01:30:04 +0100 Subject: [PATCH] Add markdown styling --- style.html.j2 | 4 ++-- style.scss | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/style.html.j2 b/style.html.j2 index e759f05..661ae65 100644 --- a/style.html.j2 +++ b/style.html.j2 @@ -167,10 +167,10 @@ {% endif %} {% if yaml.description %} -
{{ yaml.description | markdown | safe }}
+
{{ yaml.description | markdown | safe }}
{% endif %} {% if xml.description %} -
{{ xml.description | markdown | safe }}
+
{{ xml.description | markdown | safe }}
{% endif %} {% if yaml.steps %} diff --git a/style.scss b/style.scss index bb39bc1..dd077be 100644 --- a/style.scss +++ b/style.scss @@ -130,6 +130,26 @@ border-radius: 1mm; background-color: #ddd; font-size: 0.9em; + position: relative; + + .markdown { + text-align: center; + + table { + margin-top:-0.3em; + margin-left:auto; + margin-right:auto; + th, td { + font-size: 2.5mm; /* user agent style override */ + } + } + p + table { + margin-top:-1em; + } + li { + text-align: left; + } + } ul, ol { padding-left: 1.5em;