From 3c175b918aa1842b5e53eb9ad8295d181b9af76a Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Wed, 17 Jul 2019 12:47:26 +0200 Subject: [PATCH] List styling for Markdown blocks. WIP #2742 @0.25 --- .gitignore | 2 +- resources/styles/app.styl | 1 + resources/styles/common/markdown.styl | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 resources/styles/common/markdown.styl diff --git a/.gitignore b/.gitignore index db14d30..a1ac577 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ /public/mix-manifest.json /public/css /public/js -/storage/*.key +/storage /vendor /.idea /_doc diff --git a/resources/styles/app.styl b/resources/styles/app.styl index f2129dd..0b868bd 100644 --- a/resources/styles/app.styl +++ b/resources/styles/app.styl @@ -12,6 +12,7 @@ @import 'common/global' @import 'common/headings' @import 'common/links' +@import 'common/markdown' @import 'components/*' diff --git a/resources/styles/common/markdown.styl b/resources/styles/common/markdown.styl new file mode 100644 index 0000000..27f9ddd --- /dev/null +++ b/resources/styles/common/markdown.styl @@ -0,0 +1,15 @@ +// Markdown blocks +.markdown + + li + padding-left: 1em + position: relative + + &:before + content: '–' // – + position: absolute + top: 0 + left: 0 + + &:not(:last-of-type) + margin-bottom: 0.5em -- 2.39.5