gap for paragraph

This commit is contained in:
xaoxuu 2021-07-15 00:19:06 +08:00
parent 907f669bf6
commit 59b7047672
8 changed files with 21 additions and 20 deletions

View File

@ -33,7 +33,7 @@ article.md .highlight
padding: 0 padding: 0
border: none border: none
line-height: 1.5 line-height: 1.5
margin: 0 margin: 0 !important
background: transparent background: transparent
border: none border: none
scrollbar-codeblock(convert(hexo-config('style.codeblock.scrollbar'))) scrollbar-codeblock(convert(hexo-config('style.codeblock.scrollbar')))

View File

@ -65,6 +65,7 @@ $border-block = 4px
--width-left: 256px --width-left: 256px
--width-main: 680px --width-main: 680px
--gap-l: 16px --gap-l: 16px
--gap-p: 1.25rem // gap for paragraph
// desktop or larger // desktop or larger
@media screen and (min-width: $device-desktop) @media screen and (min-width: $device-desktop)
--gap-l: 32px --gap-l: 32px

View File

@ -97,11 +97,3 @@ hover-block($v, $h, $br = 4px)
trans2 color background trans2 color background
&:hover &:hover
background: var(--block-hover) background: var(--block-hover)
inside-box($fs = $fs-15)
p,ol,ul
margin-top: 0.5rem
margin-bottom: 0.5rem
p,li
font-size: $fs

View File

@ -25,9 +25,19 @@ article.md.content
color: var(--text-p0) color: var(--text-p0)
padding-top: 1rem padding-top: 1rem
margin-bottom: 1em margin-bottom: 1em
line-height: 1.8
&:hover &:hover
a.headerlink:before a.headerlink:before
opacity: 1 opacity: 1
blockquote,ul,ol
p,ul,ol
font-size: $fs-14
line-height: 1.5
p,blockquote,.tag-plugin,ul,ol,.highlight,table
margin-top: var(--gap-p)
margin-bottom: var(--gap-p)
*
--gap-p: .5rem
// titles // titles
article.md.content article.md.content
@ -88,19 +98,17 @@ article.md pre
// div // div
article.md>div article.md>div
margin: 1rem 0 margin: var(--gap-p) 0
// blockquote // blockquote
article.md blockquote article.md blockquote
margin: 1rem 0 margin-left: 0
margin-right: 0
padding: 1rem padding: 1rem
background: var(--card) background: var(--card)
border-left: 4px solid $color-theme border-left: 4px solid $color-theme
border-radius: $border-block border-radius: $border-block
color: var(--text-p2) color: var(--text-p2)
box-shadow: $boxshadow-card box-shadow: $boxshadow-card
p
margin: 0.5em 0
font-size: $fs-14
article.md img article.md img

View File

@ -1,8 +1,8 @@
.md .checkbox .md .checkbox
display: flex display: flex
margin: 0.25em 0
font-size: $fs-15 font-size: $fs-15
line-height: 1.2 line-height: 1.2
--gap-p: .25rem
input input
-webkit-appearance: none -webkit-appearance: none
-moz-appearance: none -moz-appearance: none

View File

@ -49,7 +49,6 @@ details[open]
border-bottom-left-radius: $border-block border-bottom-left-radius: $border-block
border-bottom-right-radius: $border-block border-bottom-right-radius: $border-block
font-size: $fs-15 font-size: $fs-15
inside-box()
>:first-child >:first-child
margin-top: 0 margin-top: 0
>:last-child >:last-child

View File

@ -5,16 +5,16 @@
margin-bottom: 1rem margin-bottom: 1rem
padding: 0 1rem padding: 0 1rem
border-radius: $border-block border-radius: $border-block
font-size: $fs-15
background: var(--theme-bg) background: var(--theme-bg)
border: 1px solid var(--theme) border: 1px solid var(--theme)
color: var(--text-p1) color: var(--text-p1)
>.title >.title
inside-box: $fs-15 font-size: $fs-15
line-height: 1.2 line-height: 1.2
margin-top: 1rem margin-top: 1rem
>.body >.body
inside-box: $fs-14 &,p
font-size: $fs-14
line-height: 1.5 line-height: 1.5
margin-top: .5rem margin-top: .5rem
margin-bottom: 1rem margin-bottom: 1rem

View File

@ -3,6 +3,7 @@
.swiper-container .swiper-container
width: 100% width: 100%
border-radius: 4px border-radius: 4px
--gap-p: 2rem
.swiper-container:not(.swiper-container-initialized) .swiper-container:not(.swiper-container-initialized)
display: none display: none
div.swiper-slide div.swiper-slide