From 52bcd5812a5c393ecf38cc8b30c7d0f71d778871 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 2 Aug 2021 22:48:25 +0800 Subject: [PATCH] css --- source/css/_common/device.styl | 2 +- source/css/_layout/md.styl | 2 +- source/css/_layout/sidebar/sidebar.styl | 6 +++++- source/css/_layout/tag-plugins/image.styl | 5 +++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/source/css/_common/device.styl b/source/css/_common/device.styl index e2a07c6..7e25559 100644 --- a/source/css/_common/device.styl +++ b/source/css/_common/device.styl @@ -14,7 +14,7 @@ float: right z-index: 9 display: flex - border-radius: 4px 0 0 4px + border-radius: $border-block 0 0 $border-block padding-right: 1rem border: 1px solid var(--block-border) border-right: 0 diff --git a/source/css/_layout/md.styl b/source/css/_layout/md.styl index bd60391..be53b80 100644 --- a/source/css/_layout/md.styl +++ b/source/css/_layout/md.styl @@ -106,6 +106,6 @@ article.md blockquote article.md img - border-radius: 4px + border-radius: $border-image margin: auto display: block diff --git a/source/css/_layout/sidebar/sidebar.styl b/source/css/_layout/sidebar/sidebar.styl index b2e80b5..fdead8b 100644 --- a/source/css/_layout/sidebar/sidebar.styl +++ b/source/css/_layout/sidebar/sidebar.styl @@ -23,7 +23,7 @@ margin: 1rem 0 .5rem display: flex align-items: center - color: var(--text-p0) + overflow: hidden a color: inherit display: flex @@ -78,13 +78,17 @@ font-family: $ff-logo display: block position: relative + .main + color: var(--text-p0) .sub color: var(--text-p1) trans2 opacity transform + white-space: nowrap .hover position: absolute bottom: 0 transform: translateY(8px) + overflow: visible &:hover .normal opacity: 0 diff --git a/source/css/_layout/tag-plugins/image.styl b/source/css/_layout/tag-plugins/image.styl index 771d1e7..aa0efa5 100644 --- a/source/css/_layout/tag-plugins/image.styl +++ b/source/css/_layout/tag-plugins/image.styl @@ -33,7 +33,8 @@ .image-caption display: inline-block font-size: $fs-12 - line-height: 1.4 - color: var(--text-p3) + color: var(--text-p2) + line-height: 1.5 + text-align: justify &:empty display: none