From a25b1701c58444c0fca6afbd05081ae9560f20e7 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Fri, 14 Oct 2022 12:52:21 +0800 Subject: [PATCH] css --- source/css/_common/base.styl | 8 ++------ source/css/_common/highlight.styl | 1 - source/css/_layout/md.styl | 7 ++++++- source/css/_layout/partial/footer.styl | 9 +-------- source/css/_layout/tag-plugins/tabs.styl | 4 +++- source/js/plugins/timeline.js | 2 +- 6 files changed, 13 insertions(+), 18 deletions(-) diff --git a/source/css/_common/base.styl b/source/css/_common/base.styl index efe52fe..8d3929e 100644 --- a/source/css/_common/base.styl +++ b/source/css/_common/base.styl @@ -12,12 +12,8 @@ a &:hover color: $color-hover -// md > a -p:not([class]), li:not([class]) - a:not([class]) - margin: 0 1px - padding: 2px - text-decoration: underline +p:not([class]) + text-align: justify hr color: var(--text-meta) diff --git a/source/css/_common/highlight.styl b/source/css/_common/highlight.styl index f3c1a47..84a7f0a 100644 --- a/source/css/_common/highlight.styl +++ b/source/css/_common/highlight.styl @@ -3,7 +3,6 @@ code -moz-osx-font-smoothing: auto color: var(--text-code) font-family: $ff-code - word-break: break-all p>code:not([class]),li>code:not([class]) font-size: 85% diff --git a/source/css/_layout/md.styl b/source/css/_layout/md.styl index 82007f9..498d005 100644 --- a/source/css/_layout/md.styl +++ b/source/css/_layout/md.styl @@ -25,6 +25,8 @@ article.md.content >p:not([class]) text-indent: 'calc(%s * 2)' % $fs-p text-align: justify + a + text-indent: 0 h1,h2,h3,h4,h5,h6 text-align: center >h2:not([class]) @@ -134,12 +136,15 @@ article.md p:not([class]), li:not([class]) a:not([class]) position: relative + padding: 2px text-decoration: none + display: inline-block + line-height: 1.2 &:after content: '' position: absolute border-radius: 2px - bottom: 0 + bottom: 1px left: 2px right: 2px height: 1px diff --git a/source/css/_layout/partial/footer.styl b/source/css/_layout/partial/footer.styl index 50c8497..ff8e8cb 100644 --- a/source/css/_layout/partial/footer.styl +++ b/source/css/_layout/partial/footer.styl @@ -37,11 +37,4 @@ line-height: 1.5 a:not([class]) text-decoration: underline - font-weight: 500 - margin: inherit - padding: inherit - &:after - display: none - &:hover - background: inherit - color: $color-hover + font-weight: 500 \ No newline at end of file diff --git a/source/css/_layout/tag-plugins/tabs.styl b/source/css/_layout/tag-plugins/tabs.styl index a83066e..d6115ea 100644 --- a/source/css/_layout/tag-plugins/tabs.styl +++ b/source/css/_layout/tag-plugins/tabs.styl @@ -81,4 +81,6 @@ display: block .md.indent .tag-plugin.tabs .tab-content p:not([class]) - text-indent: 'calc(%s * 2)' % $fs-p \ No newline at end of file + text-indent: 'calc(%s * 2)' % $fs-p + a + text-indent: 0 \ No newline at end of file diff --git a/source/js/plugins/timeline.js b/source/js/plugins/timeline.js index 7a8d83e..241a8cb 100644 --- a/source/js/plugins/timeline.js +++ b/source/js/plugins/timeline.js @@ -88,7 +88,7 @@ const StellarTimeline = { } } } - cell += ''; + cell += ''; cell += '💬'; cell += '' + item.comments + ''; cell += '';