doc: update butterfly theme

This commit is contained in:
Leon Xu committed 2022-01-26 09:51:45 -08:00
1 parent b71987abfb
commit 20c5eb31dd
118 files changed
+2158 -2564

No files matched your search

+25 -42
View File
@@ -6,81 +6,64 @@ if hexo-config('error_404.enable')
right: 0
left: 0
margin: 0 auto
padding: 0 1rem
padding: 60px 20px 0
max-width: 1000px
transform: translate(0, -50%)
.error-content
display: flex
flex-direction: row
justify-content: center
align-items: center
margin: 0 1rem
height: 18rem
border-radius: 8px
background: var(--card-bg)
box-shadow: var(--card-box-shadow)
transition: all .3s
&:hover
box-shadow: var(--card-hover-box-shadow)
@extend .cardHover
overflow: hidden
margin: 0 20px
height: 360px
+maxWidth768()
flex-direction: column
margin: 0
height: 25rem
height: 500px
.error-img
flex: 1
display: inline-block
overflow: hidden
width: 50%
height: 100%
border-top-left-radius: 8px
border-bottom-left-radius: 8px
background-color: $theme-color
background-position: center
background-size: cover
+maxWidth768()
flex: 1
width: 100%
border-top-right-radius: 8px
border-bottom-left-radius: 0
height: 45%
img
@extend .imgHover
background-color: $theme-color
.error-info
flex: 1
padding: .5rem
display: inline-flex
flex-direction: column
justify-content: center
align-content: center
width: 50%
height: 100%
vertical-align: top
text-align: center
font-size: 14px
if $site-name-font
font-family: $site-name-font
+maxWidth768()
flex: 1.1
width: 100%
height: 55%
.error_title
margin-top: -4rem
margin-top: -.6em
font-size: 9em
+maxWidth768()
margin-top: -3rem
font-size: 8em
.error_subtitle
@extend .limit-more-line
margin-top: -3.5rem
margin-top: -3em
word-break: break-word
font-size: 1.6em
-webkit-line-clamp: 2
a
display: inline-block
margin-top: .5rem
padding: .3rem 1.5rem
background: var(--btn-bg)
color: var(--btn-color)
i
padding-right: .3rem
& + #rightside
display: none
+18 -24
View File
@@ -1,25 +1,25 @@
.article-sort
margin-left: .5rem
padding-left: 1rem
margin-left: 10px
padding-left: 20px
border-left: 2px solid lighten($light-blue, 20)
&-title
position: relative
margin-left: .5rem
padding-bottom: 1rem
padding-left: 1rem
margin-left: 10px
padding-bottom: 20px
padding-left: 20px
font-size: 1.72em
&:hover
&:before
border-color: $pseudo-hover
border-color: var(--pseudo-hover)
&:before
position: absolute
top: calc(((100% - 1.8rem) / 2))
left: -.45rem
top: calc(((100% - 36px) / 2))
left: -9px
z-index: 1
width: w = .5rem
width: w = 10px
height: h = w
border: .5 * w solid $light-blue
border-radius: w
@@ -33,7 +33,7 @@
bottom: 0
left: 0
z-index: 0
width: .1rem
width: 2px
height: 1.5em
background: lighten($light-blue, 20)
content: ''
@@ -42,17 +42,17 @@
position: relative
display: flex
align-items: center
margin: 0 0 1rem .5rem
margin: 0 0 20px 10px
transition: all .2s ease-in-out
&:hover
&:before
border-color: $pseudo-hover
border-color: var(--pseudo-hover)
&:before
$w = .3rem
$w = 6px
position: absolute
left: calc(-1rem - 17px)
left: calc(-20px - 17px)
width: w = $w
height: h = w
border: .5 * w solid $light-blue
@@ -75,14 +75,14 @@
border-color: $light-blue
&:before
border-color: $pseudo-hover
border-color: var(--pseudo-hover)
&-time
color: $theme-meta-color
font-size: 95%
time
padding-left: .3rem
padding-left: 6px
cursor: default
&-title
@@ -102,14 +102,8 @@
height: 80px
img
width: 100%
height: 100%
transition: all .6s
object-fit: cover
&:hover
transform: scale(1.1)
@extend .imgHover
&-info
flex: 1
padding: 0 .8rem
padding: 0 16px
@@ -1,62 +1,37 @@
#page
.category-lists
padding: 1rem 0 1.5rem
.category-lists
.category-title
font-size: 2.57em
+maxWidth768()
padding: 0
font-size: 2em
.category-title
font-size: 2.57em
.category-list
margin-bottom: 0
+maxWidth768()
font-size: 2em
a
color: var(--font-color)
.category-list
a
color: var(--font-color)
&:hover
color: $text-hover
&:hover
color: $text-hover
.category-list-count
margin-left: 8px
color: $theme-meta-color
.category-list-count
margin-left: .4rem
color: $theme-meta-color
&:before
content: '('
&:before
content: '('
&:after
content: ')'
&:after
content: ')'
ul
padding: 0 0 0 20px
@extend .list-beauty
ul
margin-top: .4rem
padding: 0 0 0 1rem
list-style: none
counter-reset: li
padding-left: 4px
ul
padding-left: .2rem
li
position: relative
margin: .3rem 0
padding: .12em .4em .12em 1.4em
&:before
position: absolute
left: 0
cursor: pointer
transition: all .3s ease-out
$w = .43em
top: .7em
width: w = $w
height: h = w
border: .5 * w solid $light-blue
border-radius: w
background: transparent
content: ''
// line-height: h
&:hover
&:before
border-color: $pseudo-hover
li
position: relative
margin: 6px 0
padding: .12em .4em .12em 1.4em
+15 -10
View File
@@ -7,7 +7,7 @@
display: flex
flex: 1 auto
margin: 0 auto
padding: 2rem 15px
padding: 40px 15px
max-width: 1200px
width: 100%
@@ -15,26 +15,21 @@
flex-direction: column
+maxWidth768()
padding: 1rem 5px
padding: 20px 5px
+minWidth2000()
max-width: 1500px
& > div:first-child:not(.recent-posts)
@extend .cardHover
align-self: flex-start
padding: 50px 40px
border-radius: 8px
background: var(--card-bg)
box-shadow: var(--card-box-shadow)
&:hover
box-shadow: var(--card-hover-box-shadow)
+maxWidth768()
padding: 1.8rem .7rem !important
padding: 36px 14px
& > div:first-child
width: 75%
width: 74%
transition: all .3s
+maxWidth900()
@@ -53,3 +48,13 @@
& > div
width: 100% !important
// for apple device
.apple
#page-header.full_page
background-attachment: scroll !important
.recent-post-item,
.avatar-img,
.flink-item-icon
transform: translateZ(0)
+2 -4
View File
@@ -1,8 +1,5 @@
#article-container
.flink
.flink-desc
margin: .2rem 0 .5rem
.flink-list
overflow: auto
padding: 10px 10px 0
@@ -61,7 +58,8 @@
img
width: 100%
height: 100%
transition: all .3s
object-fit: cover
transition: filter 375ms ease-in 0.2s, transform .3s
.img-alt
display: none
+36 -80
View File
@@ -1,89 +1,75 @@
#recent-posts
& > .recent-post-item:not(:first-child)
margin-top: 1rem
margin-top: 20px
& > .recent-post-item
@extend .cardHover
display: flex
flex-direction: row
align-items: center
height: 20em
border-radius: 12px 8px 8px 12px
background: var(--card-bg)
box-shadow: var(--card-box-shadow)
transition: all .3s
overflow: hidden
height: 18em
+maxWidth768()
border-radius: 12px 12px 8px 8px
flex-direction: column
height: auto
&:hover
box-shadow: var(--card-hover-box-shadow)
img.post_bg
transform: scale(1.1)
if hexo-config('cover.position') == 'both'
.left_radius
border-radius: 8px 0 0 8px
.right_radius
order: 2
border-radius: 0 8px 8px 0
else if hexo-config('cover.position') == 'left'
.left_radius
border-radius: 8px 0 0 8px
.right_radius
border-radius: 8px 0 0 8px
else if hexo-config('cover.position') == 'right'
.left_radius
order: 2
border-radius: 0 8px 8px 0
.right_radius
order: 2
border-radius: 0 8px 8px 0
&.ads-wrap
display: block !important
height: auto !important
.post_cover
overflow: hidden
width: 45%
width: 44%
height: 100%
-webkit-mask-image: -webkit-radial-gradient(white, black)
+maxWidth768()
width: 100%
height: 230px
img.post_bg
width: 100%
height: 100%
transition: all .6s
object-fit: cover
@extend .imgHover
&:hover
transform: scale(1.1)
&.right
order: 1
+maxWidth768()
order: 0
& >.recent-post-info
display: inline-block
overflow: hidden
padding: 0 40px
width: 55%
width: 57%
+maxWidth768()
padding: 20px 20px 30px
width: 100%
&.no-cover
width: 100%
+maxWidth768()
padding: 30px 20px
& > .article-title
@extend .limit-more-line
margin-bottom: .3rem
color: var(--text-highlight-color)
font-size: 1.72em
line-height: 1.4
transition: all .2s ease-in-out
-webkit-line-clamp: 2
+maxWidth768()
font-size: 1.43em
&:hover
color: $text-hover
& > .article-meta-wrap
margin: 6px 0
color: $theme-meta-color
font-size: 90%
@@ -94,22 +80,19 @@
color: $sticky-color
i
margin: 0 .2rem 0 0
margin: 0 4px 0 0
.article-meta-label
if hexo-config('post_meta.page.label')
padding-right: .2rem
padding-right: 4px
else
display: none
.article-meta__separator
margin: 0 .3rem
.article-meta-separator
margin: 0 6px
.article-meta__link
margin: 0 .2rem
.fa-angle-right
margin: 0 .2rem
.article-meta-link
margin: 0 4px
if hexo-config('post_meta.page.date_format') == 'relative'
time
@@ -124,31 +107,4 @@
& > .content
@extend .limit-more-line
margin-top: .3rem
-webkit-line-clamp: 3
+maxWidth768()
#recent-posts
.recent-post-item
flex-direction: column
height: auto !important
.post_cover
order: 1 !important
width: 100%
height: 230px
border-radius: 8px 8px 0 0
.recent-post-info
order: 2 !important
padding: 1rem 1rem 1.5rem
width: 100%
&.no-cover
padding: 1.5rem 1rem
.article-title
font-size: 1.43em
.content
height: auto
-webkit-line-clamp: 2
+5 -1
View File
@@ -2,7 +2,7 @@
&-list
a
display: inline-block
padding: 0 .4rem
padding: 0 8px
transition: all .3s
&:hover
@@ -17,3 +17,7 @@
+maxWidth768()
font-size: 2em
h1.page-title
& + .tag-cloud-list
text-align: left