diff --git a/_config.yml b/_config.yml index 1794498..453dace 100755 --- a/_config.yml +++ b/_config.yml @@ -62,15 +62,15 @@ style: footnote: .75rem fontfamily: logofont: - fontfamily: '"Varela Round"' + fontfamily: '"Varela Round", "PingFang SC", "Microsoft YaHei", Helvetica, Arial' name: 'Varela Round' url: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-fonts/VarelaRound/VarelaRound-Regular.ttf weight: normal style: normal bodyfont: - fontfamily: '"UbuntuMono"' + fontfamily: 'UbuntuMono, "PingFang SC", "Microsoft YaHei", Helvetica, Arial' name: 'UbuntuMono' - url: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-fonts@20.2.27/UbuntuMono/UbuntuMono-Regular.ttf + url: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-fonts/UbuntuMono/UbuntuMono-Regular.ttf weight: normal style: normal codefont: diff --git a/source/css/_layout/sidebar.styl b/source/css/_layout/sidebar.styl index dff9a68..349a4fb 100644 --- a/source/css/_layout/sidebar.styl +++ b/source/css/_layout/sidebar.styl @@ -205,13 +205,15 @@ font-size: $fontsize-meta font-weight: bold line-height: 2.4em + img,i + margin-right: 4px i margin-left: 1px img - display: inline vertical-align: middle - height: 2em - width: 2em + height: 20px + width: 20px + margin-bottom: 4px &#round border-radius: 100% diff --git a/source/css/_layout/toc.styl b/source/css/_layout/toc.styl index 97a371e..3931679 100644 --- a/source/css/_layout/toc.styl +++ b/source/css/_layout/toc.styl @@ -5,6 +5,7 @@ position: sticky top: $navbar-height + $gap trans() + line-height: 1.4 header position: sticky width: 100% diff --git a/source/css/_tag-plugins/btns.styl b/source/css/_tag-plugins/btns.styl index b904535..f66db7a 100644 --- a/source/css/_tag-plugins/btns.styl +++ b/source/css/_tag-plugins/btns.styl @@ -5,8 +5,9 @@ span.btn display: inline-block background: $color-theme color: $color-inner - padding: 2px 4px 0px 4px + padding: 4px 4px 2px 4px margin: 2px + line-height: 1.1 border-radius: 2px i margin-right: 2px @@ -21,12 +22,12 @@ span.btn &.regular >a - padding: 6px 12px 4px 12px + padding: 8px 12px 6px 12px i margin-right: 4px &.large >a - padding: 10px 36px 8px 36px + padding: 12px 36px 10px 36px i margin-right: 8px &.center diff --git a/source/css/_tag-plugins/tabs.styl b/source/css/_tag-plugins/tabs.styl index d82ead1..b0a8363 100644 --- a/source/css/_tag-plugins/tabs.styl +++ b/source/css/_tag-plugins/tabs.styl @@ -49,8 +49,14 @@ div.tabs border-top: 1px solid $border-color margin-top: -1px .tab-pane - padding: $gap-row $gap + padding: $gap &:not(.active) display: none &.active display: block + > + p,.tabs,ul,ol,.highlight,div.note + &:first-child + margin-top: 0 + &:last-child + margin-bottom: 0