From 0116048ec4b5029d7b81018c0486998e031921de Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sun, 30 Oct 2022 13:32:50 +0800 Subject: [PATCH] timeline --- source/css/_layout/tag-plugins/timeline.styl | 17 ++++++++++++++++- source/js/plugins/timeline.js | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/source/css/_layout/tag-plugins/timeline.styl b/source/css/_layout/tag-plugins/timeline.styl index a228b9e..4dbe6e3 100644 --- a/source/css/_layout/tag-plugins/timeline.styl +++ b/source/css/_layout/tag-plugins/timeline.styl @@ -200,4 +200,19 @@ margin: 0.75rem 0 p font-size: $fs-13 - margin: 0.25rem \ No newline at end of file + margin: 0.25rem + +.tag-plugin.timeline .body + line-height: 1.5 + h1,h2 + font-size: 1.25rem + margin: 1rem 0 + line-height: 1.2 + h3,h4 + font-size: 1rem + margin: 0.75rem 0 + line-height: 1.2 + h5,h6 + font-size: $fs-15 + margin: 0.5rem 0 + line-height: 1.2 \ No newline at end of file diff --git a/source/js/plugins/timeline.js b/source/js/plugins/timeline.js index 41d9088..91e9dbd 100644 --- a/source/js/plugins/timeline.js +++ b/source/js/plugins/timeline.js @@ -77,7 +77,7 @@ const StellarTimeline = { } var cell = '
'; cell += '
'; - if (!users.length && item.user) { + if (!users.length && item.user && !hide.includes('user')) { cell += '