From 0cda1693faaa4bad50212710781127a9fba01959 Mon Sep 17 00:00:00 2001 From: Victor Lourng Date: Fri, 17 Feb 2017 16:10:51 -0500 Subject: [PATCH] Fix lists, allow for wider content in markdown --- _layouts/home.html | 46 ++++++++++++++++++++------------------ _sass/temple/_content.scss | 20 +++++++++++++---- 2 files changed, 40 insertions(+), 26 deletions(-) diff --git a/_layouts/home.html b/_layouts/home.html index f4fa4565..e3a43cff 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -52,28 +52,30 @@
Follow us on:
{% if site.data.news %}
-
-
-

Recent News

- {% for item in site.data.news limit:4 %} - - {{ item['Title'] }} - {{ item['Sort Date'] }} - - {% endfor %} -
- More News navigate_next -
-
-

Upcoming Events

- {% for item in site.data.events limit:4 %} - - {{ item['Title'] }} - {{ item['Sort Date'] }} - - {% endfor %} -
- More Events navigate_next +
+
+
+

Recent News

+ {% for item in site.data.news limit:4 %} + + {{ item['Title'] }} + {{ item['Sort Date'] }} + + {% endfor %} +
+ More News navigate_next +
+
+

Upcoming Events

+ {% for item in site.data.events limit:4 %} + + {{ item['Title'] }} + {{ item['Sort Date'] }} + + {% endfor %} +
+ More Events navigate_next +
diff --git a/_sass/temple/_content.scss b/_sass/temple/_content.scss index 6f27186f..72aaa1fa 100644 --- a/_sass/temple/_content.scss +++ b/_sass/temple/_content.scss @@ -1,14 +1,26 @@ // Content only .content { - max-width: $content-max-width; // 1080px; - margin: auto; + & > * { + max-width: $content-max-width; // 1080px; + margin-left: auto; + margin-right: auto; + } + ol, ul { + margin-bottom: 1em; + li { + margin-bottom: .25em; + } + } + ol { + padding-left: 3em; + } ul { - margin-left: 2em; li { + padding-left: 2em; &:before { content: "● "; color: $tu-cherry; - margin-left: -1.5em; + margin-left: 0; } } }