From 3ff716ac931991c18a9097a88537365f8c409784 Mon Sep 17 00:00:00 2001 From: mivinci <1366723936@qq.com> Date: Wed, 21 Jul 2021 12:12:51 +0800 Subject: [PATCH] fix css for markdown --- Makefile | 3 +-- exampleSite/content/markdown-syntax.md | 2 ++ static/css/main.css | 6 ++++++ static/css/md.css | 4 ++++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6a93ce9..a7bf8d0 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,7 @@ dev: hugo server -D -s $(source) --themesDir ../.. build: - cd exampleSite - hugo -D --gc --minify -s $(source) --themesDir ../.. + hugo -D --gc --minify -s $(source) --themesDir ../ clean: rm -r $(source)/public \ No newline at end of file diff --git a/exampleSite/content/markdown-syntax.md b/exampleSite/content/markdown-syntax.md index 710caf7..ffe814a 100644 --- a/exampleSite/content/markdown-syntax.md +++ b/exampleSite/content/markdown-syntax.md @@ -119,6 +119,8 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou 2. Second item 3. Third item +- [x] xxx + #### Unordered List * List item diff --git a/static/css/main.css b/static/css/main.css index ef4cafe..284e45e 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -45,6 +45,12 @@ hr { border-top: 1px solid var(--bd); } +pre, +code { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-size: 13px; +} + a { text-decoration: none; } diff --git a/static/css/md.css b/static/css/md.css index 4268f4b..1cdd2c9 100644 --- a/static/css/md.css +++ b/static/css/md.css @@ -29,4 +29,8 @@ .md img { width: 100%; max-width: 100%; +} + +.md li { + margin-top: .5em; } \ No newline at end of file