doc: update butterfly theme

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

No files matched your search

+68 -70
View File
@@ -1,5 +1,5 @@
#aside-content
width: 25%
width: 26%
+minWidth900()
if hexo-config('aside.position') == 'right'
@@ -14,20 +14,14 @@
margin-top: 0
+maxWidth900()
margin-top: 1rem
margin-top: 20px
.card-widget
@extend .cardHover
position: relative
overflow: hidden
margin-top: 1rem
padding: 1rem 1.2rem
border-radius: 8px
background: var(--card-bg)
box-shadow: var(--card-box-shadow)
transition: box-shadow .3s
&:hover
box-shadow: var(--card-hover-box-shadow)
margin-top: 20px
padding: 20px 24px
if hexo-config('aside.mobile') == false
+maxWidth768()
@@ -41,11 +35,11 @@
font-size: 1.57em
&__description
margin-top: -.3rem
margin-top: -.42em
.card-info-data
display: table
margin: .7rem 0 .2rem
margin: 14px 0 4px
width: 100%
table-layout: fixed
@@ -59,18 +53,17 @@
font-size: 1em
.length-num
margin-top: -.3rem
margin-top: -.42em
color: var(--text-highlight-color)
font-size: 1.4em
.card-info-social-icons
margin: .3rem 0 -.3rem
margin: 6px 0 -6px
.social-icon
margin: 0 .5rem
margin: 0 10px
color: var(--font-color)
font-size: 1.4em
cursor: pointer
i
transition: all .3s
@@ -80,21 +73,24 @@
#card-info-btn
display: block
margin-top: .7rem
margin-top: 14px
background-color: var(--btn-bg)
color: var(--btn-color)
text-align: center
line-height: 2.4
&:hover
background-color: var(--btn-hover-color)
span
padding-left: .5rem
padding-left: 10px
.item-headline
padding-bottom: .3rem
padding-bottom: 6px
font-size: 1.2em
span
margin-left: .3rem
margin-left: 6px
.sticky_layout
+minWidth900()
@@ -106,7 +102,7 @@
.card-tag-cloud
a
display: inline-block
padding: 0 .2rem
padding: 0 4px
&:hover
color: $text-hover !important
@@ -114,13 +110,13 @@
.aside-list
& > span
display: block
margin-bottom: .5rem
margin-bottom: 10px
text-align: center
& > .aside-list-item
display: flex
align-items: center
padding: .3rem 0
padding: 6px 0
&:first-child
padding-top: 0
@@ -137,13 +133,7 @@
height: w
& > img
width: 100%
height: 100%
transition: all .6s
object-fit: cover
&:hover
transform: scale(1.1)
@extend .imgHover
.content
flex: 1
@@ -183,32 +173,26 @@
.card-archives ul.card-archive-list > .card-archive-list-item,
.card-categories ul.card-category-list > .card-category-list-item
a
display: inline-block
padding: .15rem .5rem
width: 100%
display: flex
flex-direction: row
padding: 3px 10px
color: var(--font-color)
transition: all .4s
&:hover
padding: .15rem .85rem
padding: 3px 17px
background-color: var(--text-bg-hover)
span
@extend .limit-one-line
display: inline-block
vertical-align: bottom
&:first-child
width: 80%
&:last-child
width: 20%
text-align: right
flex: 1
.card-categories
.card-category-list
&.child
padding: 0 0 0 .8rem
padding: 0 0 0 16px
> .parent
> a
@@ -222,8 +206,8 @@
i
float: right
margin-right: -.35rem
padding: .35rem
margin-right: -.5em
padding: .5em
transition: transform .3s
transform: rotate(0)
@@ -239,12 +223,12 @@
.webinfo-item
display: flex
align-items: center
padding: .1rem .5rem 0
padding: 2px 10px 0
div
&:first-child
flex: 1
padding-right: 1rem
padding-right: 20px
// toc
#card-toc
@@ -256,28 +240,48 @@
right: -100%
bottom: 30px
z-index: 100
max-width: $toc-mobile-maxWidth
max-height: calc(100% - 60px)
width: $toc-mobile-width
opacity: 0
transition: initial
transform-origin: right bottom
.toc-percentage
float: right
margin-top: -9px
color: #a9a9a9
font-style: italic
font-size: 140%
.toc-content
overflow-y: auto
overflow-y: scroll
overflow-y: overlay
margin: 0 -24px
max-height: calc(100vh - 120px)
+maxWidth900()
max-height: calc(100vh - 140px)
.toc-child
display: none
& > *
margin: 0 20px !important
+maxWidth900()
display: block !important
& > .toc-item > .toc-child
margin-left: 10px
padding-left: 10px
border-left: 1px solid var(--dark-grey)
.toc-item
&.active
.toc-child
display: block
&:not(.is-expand)
.toc-child
display: none
+maxWidth900()
display: block !important
.toc-item
&.active
.toc-child
display: block
ol,
li
@@ -288,29 +292,22 @@
ol
margin: 0
padding-left: .4rem
padding-left: 18px
.toc-link
display: block
padding-left: .3rem
border-left: 3px solid transparent
margin: 4px 0
padding: 1px 6px
color: var(--toc-link-color)
transition: all .2s ease-in-out
&:hover
color: $theme-color
&.active
border-left-color: darken($theme-toc-color, 20%)
background: $theme-toc-color
color: $toc-active-color
&:before
position: absolute
top: .6rem
right: 1.2rem
color: #a9a9a9
content: attr(progress-percentage)
font-style: italic
font-size: 1.2rem
:only-child
> .card-widget
margin-top: 0
@@ -330,8 +327,9 @@
border-radius: 70px
img
width: 100%
height: 100%
transition: all .5s
transition: filter 375ms ease-in .2s, transform .3s
object-fit: cover
&:hover
@@ -1,6 +1,6 @@
#post-comment
.comment-head
margin-bottom: 1rem
margin-bottom: 20px
.comment-headline
display: inline-block
@@ -13,8 +13,8 @@
if hexo-config('comments.text')
float: right
margin: .1rem auto 0
padding: .2rem .8rem
margin: 2px auto 0
padding: 4px 16px
width: max-content
border-radius: 8px
background: $comments-switch-bg
@@ -33,7 +33,7 @@
.switch-btn
position: relative
display: inline-block
margin: -4px .4rem 0
margin: -4px 8px 0
width: 42px
height: 22px
border-radius: 34px
@@ -1,104 +0,0 @@
if hexo-config('envelope_comment.enable')
$hoverHeight = hexo-config('envelope_comment.height') ? convert(hexo-config('envelope_comment.height')) : 1050px
@media screen and (max-width: 600px)
#beforeimg,
#afterimg
display none !important
@media screen and (min-width: 600px)
#article-container
img
margin 0 auto 0rem
#form-wrap
overflow hidden
height 447px
position relative
top 0px
transition all 1s ease-in-out .3s
z-index 0
&:hover
height $hoverHeight
top -200px
#maincontent
width 530px
margin 20px auto 0
#beforeimg
position absolute
bottom 126px
left 0px
background-repeat no-repeat
width 530px
height 317px
z-index -100
pointer-events none
#afterimg
position absolute
bottom -2px
left 0
background-repeat no-repeat
width 530px
height 259px
z-index 100
pointer-events none
#envelope
position relative
overflow visible
width 500px
margin 0px auto
transition all 1s ease-in-out .3s
padding-top 200px
.headerimg
width 100%
overflow hidden
pointer-events none
.formmain
background white
width 95%
max-width 800px
margin auto auto
border-radius 5px
border 1px solid
overflow hidden
-webkit-box-shadow 0px 0px 20px 0px rgba(0, 0, 0, 0.12)
box-shadow 0px 0px 20px 0px rgba(0, 0, 0, 0.18)
.comments-main
padding 5px 20px
.title3
text-decoration none
color $theme-color
text-align center
.comments
text-align center
border-bottom #ddd 1px solid
border-left #ddd 1px solid
padding-bottom 20px
background-color #eee
margin 15px 0px
padding-left 20px
padding-right 20px
border-top #ddd 1px solid
border-right #ddd 1px solid
padding-top 20px
.bottomcontent
text-align center
margin-top 40px
.bottomimg
width 100%
margin 5px auto 5px auto
display block
pointer-events none
.bottomhr
font-size 12px
text-align center
color #999
[data-theme='dark']
.formmain
background rgb(50, 50, 50)
.comments
background rgba(90, 90, 90, 0.8)
@@ -1,7 +1,7 @@
#footer
position: relative
background: $light-blue
background-attachment: local
background-attachment: scroll
background-position: bottom
background-size: cover
@@ -15,7 +15,7 @@
#footer-wrap
position: relative
padding: 2rem 1rem
padding: 40px 20px
color: var(--light-grey)
text-align: center
@@ -26,10 +26,10 @@
text-decoration: underline
.footer-separator
margin: 0 .2rem
margin: 0 4px
.icp-icon
padding: 0 4px
vertical-align: text-bottom
max-height: 1.4em
width auto
width: auto
vertical-align: text-bottom
+50 -54
View File
@@ -7,6 +7,13 @@
background-repeat: no-repeat
transition: all .5s
&:not(.not-top-img):before
position: absolute
width: 100%
height: 100%
background-color: alpha($dark-black, .3)
content: ''
// index
&.full_page
height: $index_top_img_height
@@ -15,14 +22,14 @@
#site-info
position: absolute
top: $index_site_info_top
padding: 0 .5rem
padding: 0 10px
width: 100%
#site-title,
#site-subtitle,
#scroll-down .scroll-down-effects
text-align: center
text-shadow: .1rem .1rem .2rem rgba(0, 0, 0, .15)
text-shadow: 2px 2px 4px rgba(0, 0, 0, .15)
line-height: 1.5
#site-title
@@ -43,18 +50,17 @@
#site_social_icons
display: none
margin: 0 auto
width: 15rem
width: 300px
text-align: center
+maxWidth768()
display: block
.social-icon
margin: 0 .5rem
margin: 0 10px
color: var(--light-grey)
text-shadow: .1rem .1rem .2rem rgba(0, 0, 0, .15)
text-shadow: 2px 2px 4px rgba(0, 0, 0, .15)
font-size: 1.43em
cursor: pointer
#scroll-down
position: absolute
@@ -70,54 +76,47 @@
// page
&.not-home-page
height: 20rem
height: 400px
+maxWidth768()
height: 14rem
height: 280px
#page-site-info
position: absolute
top: 10rem
padding: 0 .5rem
top: 200px
padding: 0 10px
width: 100%
+maxWidth768()
top: 7rem
top: 140px
// post
&.post-bg
height: 20rem
height: 400px
+maxWidth768()
height: 18rem
height: 360px
&:before
position: absolute
top: 0
left: 0
display: block
width: 100%
height: 100%
background-color: alpha($dark-black, .5)
content: ''
#post-info
position: absolute
bottom: 5rem
bottom: 100px
padding: 0 8%
width: 100%
text-align: center
+maxWidth900()
bottom: 1.5rem
bottom: 30px
text-align: left
+maxWidth768()
bottom: 1.1rem
padding: 0 1.1rem
bottom: 22px
padding: 0 22px
&.not-top-img
margin-bottom: .5rem
margin-bottom: 10px
height: 60px
background: 0
@@ -157,21 +156,17 @@
top: 70px
transition: top .5s
.apple
#page-header.full_page
background-attachment: scroll !important
#page
h1.page-title
margin: .4rem 0 1rem
margin: 8px 0 20px
// for not top_img
#post
& > #post-info
margin-bottom: 1.5rem
margin-bottom: 30px
.post-title
padding-bottom: .2rem
padding-bottom: 4px
border-bottom: 1px solid var(--light-grey)
color: var(--text-highlight-color)
@@ -185,7 +180,7 @@
#post-info
.post-title
@extend .limit-more-line
margin-bottom: .4rem
margin-bottom: 8px
color: var(--white)
font-weight: normal
font-size: 2.5em
@@ -193,10 +188,10 @@
-webkit-line-clamp: 3
+maxWidth768()
font-size: 1.72em
font-size: 2.1em
.post-edit-link
padding-left: .5rem
padding-left: 10px
#post-meta
color: var(--light-grey)
@@ -216,14 +211,14 @@
.post-meta
&-separator
margin: 0 .25rem
margin: 0 5px
&-icon
margin-right: .2rem
margin-right: 4px
&-label
if hexo-config('post_meta.post.label')
margin-right: .2rem
margin-right: 4px
else
display: none
@@ -244,7 +239,6 @@
top: 0
z-index: 90
display: flex
flex-wrap: wrap
align-items: center
padding: 0 36px
width: 100%
@@ -264,7 +258,7 @@
#toggle-menu
display: none
padding: .1rem 0 0 .3rem
padding: 2px 0 0 6px
vertical-align: top
&:hover
@@ -277,7 +271,7 @@
color: var(--white)
#site-name
text-shadow: .1rem .1rem .2rem rgba($dark-black, .15)
text-shadow: 2px 2px 4px rgba($dark-black, .15)
font-weight: bold
cursor: pointer
@@ -287,16 +281,16 @@
.menus_item
position: relative
display: inline-block
padding: 0 0 0 .7rem
padding: 0 0 0 14px
&:hover
.menus_item_child
display: block
i.expand
transform: rotate(180deg) !important
& > a > i:last-child
transform: rotate(180deg)
i.expand
& > a > i:last-child
padding: 4px
transition: transform .3s
@@ -310,6 +304,7 @@
background-color: var(--sidebar-bg)
box-shadow: 0 5px 20px -4px rgba($dark-black, .5)
animation: sub_menus .3s .1s ease both
border-radius: 5px
&:before
position: absolute
@@ -325,9 +320,13 @@
&:hover
background: var(--text-bg-hover)
&:first-child
border-radius: 5px 5px 0 0
&:last-child
border-radius: 0 0 5px 5px
a
display: inline-block
padding: .3rem .7rem
padding: 8px 16px
width: 100%
color: var(--font-color) !important
text-shadow: none !important
@@ -340,22 +339,19 @@
font-size: inherit
.menus_items
position: absolute
left: 0
visibility: hidden
opacity: 0
display: none
#search-button span
display: none !important
display: none
#search-button
display: inline
padding: 0 0 0 .7rem
padding: 0 0 0 14px
.site-page
position: relative
padding-bottom: .3rem
text-shadow: .05rem .05rem .1rem rgba($dark-black, .3)
padding-bottom: 6px
text-shadow: 1px 1px 2px rgba($dark-black, .3)
font-size: .78em
cursor: pointer
@@ -43,7 +43,7 @@ if hexo-config('preloader')
.loading-word
position: absolute
color: var(--preloader-color)
font-size: .8rem
font-size: 16px
.configure-core
width: 100%
@@ -1,38 +1,17 @@
#pagination
overflow: hidden
margin-top: 1rem
width: 100%
.pagination
margin-top: 20px
text-align: center
.page-number
display: inline-block
margin: 0 .2rem
min-width: w = 1.2rem
height: w
text-align: center
line-height: w
cursor: pointer
&.current
background: $theme-paginator-color
color: var(--white)
cursor: default
img.prev-cover,
img.next-cover
position: absolute
width: 100%
height: 100%
opacity: .4
transition: all .6s
object-fit: cover
.pagination-info
position: absolute
top: 50%
padding: 1rem 2rem
padding: 20px 40px
width: 100%
transform: translate(0, -50%)
@@ -57,6 +36,7 @@
.prev-post,
.next-post
@extend .postImgHover
width: 50%
+maxWidth768()
@@ -68,12 +48,35 @@
overflow: hidden
height: 150px
&:hover
img.prev-cover,
img.next-cover
opacity: .8
transform: scale(1.1)
&.pagination-post
margin-top: 2rem
background: $dark-black
overflow: hidden
margin-top: 40px
background: $dark-black
.layout
& > .recent-posts
.pagination
& > *
display: inline-block
margin: 0 6px
width: w = 2.5em
height: w
line-height: w
& > *:not(.space)
@extend .cardHover
&:hover
background: var(--btn-hover-color)
color: var(--btn-color)
& > div:not(.recent-posts)
.pagination
.page-number
display: inline-block
margin: 0 4px
min-width: w = 24px
height: w
text-align: center
line-height: w
cursor: pointer
+81 -119
View File
@@ -1,16 +1,13 @@
beautify()
headStyle(fontsize)
padding-left: unit(fontsize + .4, 'rem')
code
font-size: unit(fontsize, 'rem')
padding-left: unit(fontsize + 12, 'px')
&:before
margin-left: unit((-(fontsize + .2)), 'rem')
font-size: unit(fontsize, 'rem')
margin-left: unit((-(fontsize + 6)), 'px')
font-size: unit(fontsize, 'px')
&:hover
padding-left: unit(fontsize + .6, 'rem')
padding-left: unit(fontsize + 18, 'px')
h1,
h2,
@@ -22,7 +19,7 @@ beautify()
&:before
position: absolute
top: calc(50% - .35rem)
top: calc(50% - 7px)
color: $title-prefix-icon-color
content: $title-prefix-icon
line-height: 1
@@ -34,112 +31,40 @@ beautify()
color: $light-blue
h1
headStyle(1)
headStyle(20)
h2
headStyle(.9)
headStyle(18)
h3
headStyle(.8)
headStyle(16)
h4
headStyle(.7)
headStyle(14)
h5
headStyle(.6)
headStyle(12)
h6
headStyle(.6)
headStyle(12)
ol,
ul
margin-top: .4rem
padding: 0 0 0 .8rem
list-style: none
counter-reset: li
+maxWidth768()
padding: 0 0 0 .4rem
p
margin: 0 0 .5rem
margin: 0 0 8px
ol,
ul
padding-left: .6rem
li
&::marker
color: $light-blue
font-weight: 600
font-size: 1.05em
+maxWidth768()
padding-left: .2rem
&:hover
&::marker
color: var(--pseudo-hover)
li
&:not(.tab)
position: relative
margin: .2rem 0
&:hover
&:before
transform: rotate(360deg)
&:before
position: absolute
top: 0
left: 0
background: $light-blue
color: $white
cursor: pointer
transition: all .3s ease-out
ol
> li
&:not(.tab)
padding: .2em .2em .2em 1.8em
&:before
margin-top: .65em
width: w = 1.45em
height: h = w
border-radius: .5 * w
content: counter(li)
counter-increment: li
text-align: center
font-size: .85em
line-height: h
ul
> li:not(.tab)
padding: .2em .2em .2em 1.4em
&:hover
&:before
border-color: $pseudo-hover
&:before
$w = .42em
top: .78em
width: w = $w
height: h = w
border: .5 * w solid $light-blue
border-radius: w
background: transparent
content: ''
line-height: h
no-beautify()
ol,
ul
margin-top: .4rem
p
margin: 0 0 .5rem
ol,
ul
padding-left: .5rem
li
position: relative
margin: .3rem 0
padding-left: .3rem
ul > li
list-style-type: circle
#article-container
word-wrap: break-word
@@ -153,13 +78,15 @@ no-beautify()
img
display: block
margin: 0 auto .8rem
margin: 0 auto 20px
max-width: 100%
transition: filter 375ms ease-in .2s
p
margin: 0 0 .8rem
margin: 0 0 16px
iframe
margin: 0 0 1rem
margin: 0 0 20px
kbd
margin: 0 3px
@@ -175,15 +102,50 @@ no-beautify()
font-family: Monaco, 'Ubuntu Mono', monospace
line-height: 1em
if hexo-config('beautify.enable') && hexo-config('beautify.field') == 'site'
beautify()
else if hexo-config('beautify.enable') && hexo-config('beautify.field') == 'post'
no-beautify()
if hexo-config('anchor')
a.headerlink
&:after
@extend .fontawesomeIcon
float: right
color: var(--headline-presudo)
content: '\f0c1'
font-size: .95em
opacity: 0
transition: all .3s
&.post-content
&:hover
&:after
color: var(--pseudo-hover)
h1,
h2,
h3,
h4,
h5,
h6
&:hover
a.headerlink
&:after
opacity: 1
ol,
ul
ol,
ul
padding-left: 20px
li
margin: 4px 0
p
margin: 0 0 8px
if hexo-config('beautify.enable')
if hexo-config('beautify.field') == 'site'
beautify()
else
no-beautify()
else if hexo-config('beautify.field') == 'post'
&.post-content
beautify()
> :last-child
margin-bottom: 0 !important
@@ -196,11 +158,11 @@ no-beautify()
&__tags
display: inline-block
margin: .4rem .4rem .4rem 0
padding: 0 .6rem
margin: 8px 8px 8px 0
padding: 0 12px
width: fit-content
border: 1px solid $light-blue
border-radius: .6rem
border-radius: 12px
color: $light-blue
font-size: .85em
transition: all .2s ease-in-out
@@ -212,7 +174,7 @@ no-beautify()
.post_share
display: inline-block
float: right
margin: .4rem 0
margin: 8px 0
width: fit-content
.social-share
@@ -227,19 +189,19 @@ no-beautify()
.post-copyright
position: relative
margin: 2rem 0 .5rem
padding: .5rem .8rem
margin: 40px 0 10px
padding: 10px 16px
border: 1px solid var(--light-grey)
transition: box-shadow .3s ease-in-out
&:before
@extend .fontawesomeIcon
position: absolute
top: .1rem
right: .6rem
top: 2px
right: 12px
color: $theme-color
content: '\f1f9'
font-size: 1rem
font-size: 1.3em
&:hover
box-shadow: 0 0 8px 0 rgba(232, 237, 250, .6), 0 2px 4px 0 rgba(232, 237, 250, .5)
@@ -250,7 +212,7 @@ no-beautify()
font-weight: bold
&-info
padding-left: .3rem
padding-left: 6px
a
text-decoration: underline
@@ -261,7 +223,7 @@ no-beautify()
.post-outdate-notice
position: relative
margin: 0 0 1rem
margin: 0 0 20px
padding: .5em 1.2em
border-radius: 3px
background-color: $noticeOutdate-bg
@@ -281,4 +243,4 @@ no-beautify()
transform: translateY(-50%)
.ads-wrap
margin: 2rem 0
margin: 40px 0
@@ -1,5 +1,5 @@
.relatedPosts
margin-top: 2rem
margin-top: 40px
& > .headline
margin-bottom: 5px
@@ -16,11 +16,7 @@
height: 200px
background: $dark-black
vertical-align: bottom
&:hover
.cover
opacity: .8
transform: scale(1.1)
@extend .postImgHover
+maxWidth768()
margin: 2px
@@ -30,17 +26,10 @@
+maxWidth600()
width: calc(100% - 4px)
.cover
width: 100%
height: 100%
opacity: .4
transition: all .6s
object-fit: cover
.content
position: absolute
top: 50%
padding: 0 1rem
padding: 0 20px
width: 100%
transform: translate(0, -50%)
@@ -1,18 +1,24 @@
.post-reward
position: relative
margin-top: 4rem
margin-top: 80px
width: 100%
text-align: center
pointer-events: none
& > *
pointer-events: auto
.reward-button
display: inline-block
padding: .2rem 1.2rem
padding: 4px 24px
background: var(--btn-bg)
color: var(--btn-color)
cursor: pointer
transition: all .4s
&:hover
.reward-button
background: var(--btn-hover-color)
& > .reward-main
display: block
@@ -28,7 +34,7 @@
.reward-all
display: inline-block
margin: 0
padding: 1rem .5rem
padding: 20px 10px
border-radius: 4px
background: var(--reward-pop)
@@ -64,6 +70,5 @@
height: 130px
.post-qr-code-desc
padding-top: .4rem
width: 130px
color: $reward-pop-up-color
@@ -1,29 +1,39 @@
#rightside
position: fixed
right: -38px
right: -48px
bottom: $rightside-bottom
z-index: 100
opacity: 0
transition: all .5s
#rightside-config-hide
height: 0
opacity: 0
transition: transform .4s
transform: translate(35px, 0)
transform: translate(45px, 0)
&.show
transform: translate(0, 0) !important
height: auto
opacity: 1
transform: translate(0, 0)
&.status
height: auto
opacity: 1
& > div
& > button,
& > a
display: block
margin-bottom: 2px
width: 30px
height: 30px
margin-bottom: 5px
width: w = 35px
height: w
border-radius: 5px
background-color: var(--btn-bg)
color: var(--btn-color)
text-align: center
font-size: 16px
line-height: w
&:hover
background-color: var(--btn-hover-color)
@@ -1,26 +0,0 @@
/*电子钟字体*/
@font-face
font-family 'UnidreamLED'
src url('https://cdn.jsdelivr.net/gh/Akilarlxh/Akilarlxh.github.io@v3.3.3_3/clock/fonts/UnidreamLED.ttf')
font-display swap
//页脚计时器
div#runtime
width 180px
margin auto
color white
padding-inline 5px
border-radius 10px
background-color rgba(0,0,0,0.7)
font-family 'UnidreamLED'
// 夜间全局透明度
[data-theme="dark"]
div#runtime
color rgb(40, 180, 200)
box-shadow 0 0 5px rgba(28, 69, 218, 0.71)
animation flashlight 1s linear infinite alternate
@keyframes flashlight
from
box-shadow 0 0 5px rgb(20, 120, 210)
to
box-shadow 0 0 2px rgb(20, 120, 210)
@@ -23,39 +23,38 @@
transform: translate3d(-100%, 0, 0)
& > .avatar-img
margin: 1rem auto
margin: 20px auto
.site-data
display: table
padding: 0 .5rem
padding: 0 10px
width: 100%
table-layout: fixed
.data-item
display: table-cell
.data-item-link
& > a > div
@extend .limit-one-line
& > a > div
@extend .limit-one-line
.length-num
color: var(--text-highlight-color)
font-size: 1.28em
.length-num
color: var(--text-highlight-color)
font-size: 1.28em
.headline
color: var(--font-color)
.headline
color: var(--font-color)
hr
margin: 1rem auto
margin: 20px auto
.menus_items
padding: 0 .5rem 2rem
padding: 0 10px 40px
.site-page
@extend .limit-one-line
position: relative
display: block
padding: .3rem 1.5rem .3rem 1.1rem
padding: 6px 30px 6px 22px
color: var(--font-color)
font-size: 1.15em
@@ -66,18 +65,20 @@
width: 15%
text-align: left
.expand
position: absolute
top: .78em
right: .9rem
transition: transform .3s
&.group
& > i:last-child
position: absolute
top: .78em
right: 18px
transition: transform .3s
&.hide
transform: rotate(90deg) !important
&.hide
& > i:last-child
transform: rotate(90deg)
& + .menus_item_child
display: none
.menus_item_child
margin: 0
list-style: none
if hexo-config('hide_sidebar_menu_child')
display: none
list-style: none
@@ -24,7 +24,6 @@
--waline-font-size: 1.1em
--waline-theme-color: $button-bg
--waline-active-color: $button-hover-color
--waline-avatar-size: 2.75rem
.vuser
transition: all .5s
@@ -62,16 +61,9 @@ if hexo-config('waline.bg')
.medium-zoom-overlay
z-index: 99999 !important
.mermaid
overflow: auto
margin: 0 0 1rem
background: $white
.mermaid-wrap
margin: 0 0 20px
text-align: center
opacity: 0
transition: all .3s
&[data-processed]
opacity: 1
.utterances,
.fb-comments iframe
@@ -80,7 +72,7 @@ if hexo-config('waline.bg')
#gitalk-container
.gt-meta
margin: 0 0 .8em
padding: .3rem 0 .8em
padding: 6px 0 16px
.katex-wrap
overflow: auto
@@ -100,7 +92,7 @@ mjx-container[display],
#article-container
.aplayer
margin: 0 0 1rem
margin: 0 0 20px
if hexo-config('beautify.enable')
ol,