修正UbuntuMono汉字基线偏移

master 2.6.2
xaoxuu 4 years ago
parent 96d0f43379
commit 30d78ad5cf
  1. 1
      _config.yml
  2. 2
      source/css/_defines/fonts.styl
  3. 2
      source/css/_layout/article.styl
  4. 2
      source/css/_tag-plugins/folding.styl
  5. 2
      source/css/_tag-plugins/note.styl

@ -77,6 +77,7 @@ style:
url: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-fonts/UbuntuMono/UbuntuMono-Regular.ttf
weight: normal
style: normal
offset: 0.1rem # Correct baseline
codefont:
fontfamily: 'Menlo, UbuntuMono, Monaco'
# name: 'Monaco'

@ -55,6 +55,8 @@ $fontsize-footnote = convert(hexo-config('style.fontsize.footnote')) || .75rem
$lineheight = hexo-config('style.gap.line_height') || 1.75
$lineheight-fixed = 1.5
$fontoffset = convert(hexo-config('style.fontfamily.bodyfont.offset')) || 0rem
$fontsize-large = 3rem
$fontsize-huge = 4rem
$fontsize-ultra = 6rem

@ -178,7 +178,7 @@
margin-bottom: $gap-row
position: relative
width: 100%
padding: .7em 1.2em
padding: $gap-row + $fontoffset $gap $gap-row $gap
trans()
footer
padding: 0

@ -20,8 +20,6 @@ details
p,h1,h2,h3,h4,h5,h6
display: inline
border-bottom: none !important
margin-top: 2px
margin-bottom: 0
&:hover
color: $color-p
&:after

@ -7,7 +7,7 @@ div.note
position: relative
margin-top: $gap-row
margin-bottom: $gap-row
padding: $gap-row $gap
padding: $gap-row + $fontoffset $gap $gap-row $gap
padding-left: "calc(16px + %s)" % $gap
border-radius: $border-codeblock

Loading…
Cancel
Save