2021-02-19 23:33:19 +08:00
|
|
|
article.md
|
|
|
|
max-width: 100%
|
|
|
|
padding: 1rem
|
|
|
|
color: var(--text-p1)
|
|
|
|
line-height: 1.7
|
|
|
|
|
2021-03-05 21:37:28 +08:00
|
|
|
article.md.excerpt
|
|
|
|
p
|
|
|
|
font-size: $fs-14
|
|
|
|
margin: 1em 0
|
|
|
|
|
2021-02-19 23:33:19 +08:00
|
|
|
article.md.content
|
2021-02-25 20:49:43 +08:00
|
|
|
position: relative
|
2021-03-05 21:37:28 +08:00
|
|
|
margin-bottom: 2rem
|
2021-02-19 23:33:19 +08:00
|
|
|
h1.article-title
|
2021-03-05 21:37:28 +08:00
|
|
|
margin-top: 0.5rem
|
2021-02-19 23:33:19 +08:00
|
|
|
line-height: 1.2
|
|
|
|
color: var(--text-p0)
|
2021-03-05 21:37:28 +08:00
|
|
|
h2,h3,h4,h5,h6
|
|
|
|
color: var(--text-p0)
|
2021-03-08 00:20:51 +08:00
|
|
|
padding-top: 1rem
|
2021-03-05 21:37:28 +08:00
|
|
|
margin-bottom: 1em
|
2021-02-19 23:33:19 +08:00
|
|
|
&:hover
|
|
|
|
a.headerlink:before
|
|
|
|
opacity: 1
|
2021-03-05 21:37:28 +08:00
|
|
|
|
|
|
|
// titles
|
|
|
|
article.md
|
2021-02-19 23:33:19 +08:00
|
|
|
a.headerlink:before
|
|
|
|
opacity: 0
|
|
|
|
content: '#'
|
|
|
|
position: absolute
|
|
|
|
margin-left: -0.75em
|
|
|
|
h2
|
|
|
|
margin-top: 3rem
|
|
|
|
border-bottom: 1px solid var(--block-border)
|
|
|
|
font-weight: 400
|
2021-02-20 13:09:41 +08:00
|
|
|
&:first-child
|
2021-03-08 00:20:51 +08:00
|
|
|
margin-top: 0
|
2021-02-19 23:33:19 +08:00
|
|
|
h3
|
2021-03-08 17:54:23 +08:00
|
|
|
margin-top: 1.5rem
|
2021-03-05 21:37:28 +08:00
|
|
|
font-weight: 400
|
|
|
|
h4,h5,h6
|
2021-02-19 23:33:19 +08:00
|
|
|
font-weight: 500
|
2021-03-08 00:20:51 +08:00
|
|
|
h1+h2
|
|
|
|
margin-top: 0
|
2021-02-19 23:33:19 +08:00
|
|
|
h2+h3
|
2021-03-05 21:37:28 +08:00
|
|
|
margin-top: 0
|
2021-02-19 23:33:19 +08:00
|
|
|
h3+h4
|
2021-03-05 21:37:28 +08:00
|
|
|
margin-top: 0
|
|
|
|
h4+h5
|
|
|
|
margin-top: 0
|
|
|
|
h5+h6
|
|
|
|
margin-top: 0
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
// a
|
|
|
|
article.md
|
|
|
|
p>a
|
|
|
|
&:not([class])
|
|
|
|
font-weight: 500
|
|
|
|
&:hover
|
|
|
|
text-decoration: underline
|
|
|
|
|
2021-02-28 18:19:32 +08:00
|
|
|
article.md p
|
2021-03-05 21:37:28 +08:00
|
|
|
font-size: $fs-p
|
|
|
|
|
2021-02-19 23:33:19 +08:00
|
|
|
// code
|
|
|
|
article.md code
|
|
|
|
color: $color-inlinecode
|
|
|
|
font-family: $ff-code
|
|
|
|
word-break: break-all
|
2021-03-05 21:37:28 +08:00
|
|
|
font-size: $fs-p
|
2021-03-08 17:54:23 +08:00
|
|
|
background: var(--block)
|
|
|
|
padding: 2px
|
|
|
|
border-radius: 2px
|
|
|
|
border: 1px solid var(--block-border)
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
// div
|
|
|
|
article.md>div
|
|
|
|
margin: 1rem 0
|
|
|
|
// blockquote
|
|
|
|
article.md blockquote
|
|
|
|
margin: 1rem 0
|
|
|
|
padding: 1rem
|
|
|
|
background: var(--block)
|
2021-02-28 18:19:32 +08:00
|
|
|
border-left: 3px solid $color-theme
|
2021-02-19 23:33:19 +08:00
|
|
|
border-radius: 0 $border-block $border-block 0
|
|
|
|
color: var(--text-p2)
|
|
|
|
p
|
|
|
|
margin: 0.5em 0
|
2021-03-05 21:37:28 +08:00
|
|
|
font-size: $fs-14
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
|
|
|
|
article.md img
|
|
|
|
border-radius: 4px
|
|
|
|
margin: auto
|
|
|
|
display: block
|