doc: update butterfly theme
This commit is contained in:
1 parent
5123048924
commit
eafa4afbc3
118 files changed
+2158
-2564
No files matched your search
@@ -17,6 +17,63 @@
|
||||
text-rendering: auto
|
||||
-webkit-font-smoothing: antialiased
|
||||
|
||||
// card hover
|
||||
.cardHover
|
||||
border-radius: 8px
|
||||
background: var(--card-bg)
|
||||
box-shadow: var(--card-box-shadow)
|
||||
transition: all .3s
|
||||
|
||||
&:hover
|
||||
box-shadow: var(--card-hover-box-shadow)
|
||||
|
||||
.imgHover
|
||||
width: 100%
|
||||
height: 100%
|
||||
transition: filter 375ms ease-in .2s, transform .6s
|
||||
object-fit: cover
|
||||
|
||||
&:hover
|
||||
transform: scale(1.1)
|
||||
|
||||
.postImgHover
|
||||
&:hover
|
||||
img
|
||||
opacity: .8
|
||||
transform: scale(1.1)
|
||||
|
||||
img
|
||||
position: absolute
|
||||
width: 100%
|
||||
height: 100%
|
||||
opacity: .4
|
||||
transition: all .6s, filter 375ms ease-in .2s
|
||||
object-fit: cover
|
||||
|
||||
.list-beauty
|
||||
list-style: none
|
||||
|
||||
li
|
||||
position: relative
|
||||
padding 0.12em 0.4em 0.12em 1.4em
|
||||
|
||||
&:hover
|
||||
&:before
|
||||
border-color: var(--pseudo-hover)
|
||||
|
||||
&:before
|
||||
position: absolute
|
||||
top: .67em
|
||||
left: 0
|
||||
width: w = .43em
|
||||
height: h = w
|
||||
border: .5 * w solid $light-blue
|
||||
border-radius: w
|
||||
background: transparent
|
||||
content: ''
|
||||
cursor: pointer
|
||||
transition: all .3s ease-out
|
||||
|
||||
maxWidth600()
|
||||
@media screen and (max-width: 600px)
|
||||
{block}
|
||||
@@ -60,7 +117,7 @@ if hexo-config('enter_transitions')
|
||||
|
||||
#site-title,
|
||||
#site-subtitle
|
||||
animation: titlescale 1s
|
||||
animation: titleScale 1s
|
||||
|
||||
#nav.show
|
||||
animation: headerNoOpacity 1s
|
||||
@@ -123,14 +180,14 @@ if hexo-config('avatar.effect') == true
|
||||
|
||||
@keyframes bottom-top
|
||||
0%
|
||||
opacity: 0
|
||||
margin-top: 50px
|
||||
opacity: 0
|
||||
|
||||
100%
|
||||
opacity: 1
|
||||
margin-top: 0
|
||||
opacity: 1
|
||||
|
||||
@keyframes titlescale
|
||||
@keyframes titleScale
|
||||
0%
|
||||
opacity: 0
|
||||
transform: scale(.7)
|
||||
@@ -207,4 +264,4 @@ if hexo-config('avatar.effect') == true
|
||||
transform: translateX(200px)
|
||||
|
||||
100%
|
||||
transform: translateX(0)
|
||||
transform: translateX(0)
|
||||
@@ -21,18 +21,18 @@
|
||||
--btn-bg: $button-bg
|
||||
--text-bg-hover: rgba($text-bg-hover, .7)
|
||||
--light-grey: $light-grey
|
||||
--dark-grey: $dark-grey
|
||||
--white: $white
|
||||
--text-highlight-color: $text-highlight-color
|
||||
--blockquote-color: $blockquote-color
|
||||
--blockquote-bg: $blockquote-background-color
|
||||
--reward-pop: $reward-pop-up-bg
|
||||
--toc-link-color: $toc-link-color
|
||||
--card-box-shadow: 0 3px 8px 6px rgba(7, 17, 27, .06)
|
||||
--card-hover-box-shadow: 0 3px 8px 6px rgba(7, 17, 27, .15)
|
||||
|
||||
html
|
||||
height: 100%
|
||||
font-size: 20px
|
||||
--card-box-shadow: 0 3px 8px 6px rgba(7, 17, 27, .05)
|
||||
--card-hover-box-shadow: 0 3px 8px 6px rgba(7, 17, 27, .09)
|
||||
--pseudo-hover: $pseudo-hover
|
||||
--headline-presudo: #a0a0a0
|
||||
--scrollbar-color: $scrollbar-color
|
||||
|
||||
body
|
||||
position: relative
|
||||
@@ -47,16 +47,22 @@ body
|
||||
if !hexo-config('copy.enable')
|
||||
user-select: none
|
||||
|
||||
// scrollbar - chrome/safari
|
||||
*::-webkit-scrollbar
|
||||
width: 8px
|
||||
height: 8px
|
||||
|
||||
*::-webkit-scrollbar-thumb
|
||||
background: var(--btn-bg)
|
||||
background: var(--scrollbar-color)
|
||||
|
||||
*::-webkit-scrollbar-track
|
||||
background-color: transparent
|
||||
|
||||
// scrollbar - firefox
|
||||
*
|
||||
scrollbar-width: thin
|
||||
scrollbar-color: var(--scrollbar-color) transparent
|
||||
|
||||
input::placeholder
|
||||
color: var(--font-color)
|
||||
|
||||
@@ -79,7 +85,7 @@ h4,
|
||||
h5,
|
||||
h6
|
||||
position: relative
|
||||
margin: 1rem 0 .7rem
|
||||
margin: 20px 0 14px
|
||||
color: var(--text-highlight-color)
|
||||
font-weight: bold
|
||||
|
||||
@@ -91,7 +97,7 @@ h6
|
||||
|
||||
hr
|
||||
position: relative
|
||||
margin: 2rem auto
|
||||
margin: 40px auto
|
||||
border: 2px dashed var(--hr-border)
|
||||
|
||||
if hexo-config('hr_icon.enable')
|
||||
@@ -115,7 +121,7 @@ hr
|
||||
|
||||
.table-wrap
|
||||
overflow-x: scroll
|
||||
margin: 0 0 1rem
|
||||
margin: 0 0 20px
|
||||
|
||||
table
|
||||
display: table
|
||||
@@ -129,7 +135,7 @@ table
|
||||
|
||||
th,
|
||||
td
|
||||
padding: .3rem .6rem
|
||||
padding: 6px 12px
|
||||
border: 1px solid var(--light-grey)
|
||||
vertical-align: middle
|
||||
|
||||
@@ -143,6 +149,7 @@ button
|
||||
border: none
|
||||
background: none
|
||||
cursor: pointer
|
||||
touch-action: manipulation
|
||||
|
||||
a
|
||||
color: $a-link-color
|
||||
@@ -175,33 +182,7 @@ if $site-name-font
|
||||
.pull-right
|
||||
float: right
|
||||
|
||||
.button--animated
|
||||
position: relative
|
||||
z-index: 1
|
||||
transition: color 1s
|
||||
|
||||
&:before
|
||||
position: absolute
|
||||
top: 0
|
||||
right: 0
|
||||
bottom: 0
|
||||
left: 0
|
||||
z-index: -1
|
||||
background: var(--btn-hover-color)
|
||||
content: ''
|
||||
transition: transform .5s ease-out
|
||||
transform: scaleX(0)
|
||||
transform-origin: 0 50%
|
||||
|
||||
&:hover
|
||||
&:before
|
||||
transition-timing-function: cubic-bezier(.45, 1.64, .47, .66)
|
||||
transform: scaleX(1)
|
||||
|
||||
img
|
||||
max-width: 100%
|
||||
transition: all .2s
|
||||
|
||||
&[src=''],
|
||||
&:not([src])
|
||||
opacity: 0
|
||||
@@ -210,14 +191,30 @@ img
|
||||
if hexo-config('lazyload.enable') && hexo-config('lazyload.blur') && !hexo-config('lazyload.placeholder')
|
||||
img
|
||||
&[data-lazy-src]:not(.loaded)
|
||||
filter: blur(10px) brightness(1)
|
||||
filter: blur(8px) brightness(1)
|
||||
|
||||
&[data-lazy-src].error
|
||||
filter: none
|
||||
|
||||
.img-alt
|
||||
margin: -.5rem 0 .5rem
|
||||
margin: -10px 0 10px
|
||||
color: #858585
|
||||
|
||||
&:hover
|
||||
text-decoration: none !important
|
||||
text-decoration: none !important
|
||||
|
||||
blockquote
|
||||
margin: 0 0 20px
|
||||
padding: 12px 15px
|
||||
border-left: 3px solid $blockquote-padding-color
|
||||
background-color: var(--blockquote-bg)
|
||||
color: var(--blockquote-color)
|
||||
|
||||
footer
|
||||
cite
|
||||
&:before
|
||||
padding: 0 5px
|
||||
content: '—'
|
||||
|
||||
& > :last-child
|
||||
margin-bottom: 0 !important
|
||||
@@ -1,7 +1,5 @@
|
||||
$highlight_theme = hexo-config('highlight_theme')
|
||||
$highlighEnable = hexo-config('highlight_settings') && hexo-config('highlight_settings.enable')
|
||||
$prismjsEnable = hexo-config('prismjs_settings') && hexo-config('prismjs_settings.enable')
|
||||
wordWrap = !hexo-config('highlight_settings.line_number') && hexo-config('code_word_wrap')
|
||||
wordWrap = $highlight_enable && !$highlight_line_number && hexo-config('code_word_wrap')
|
||||
|
||||
@require 'theme'
|
||||
|
||||
@@ -15,15 +13,15 @@ wordWrap = !hexo-config('highlight_settings.line_number') && hexo-config('code_w
|
||||
--hlscrollbar-bg: $highlight-scrollbar
|
||||
--hlexpand-bg: linear-gradient(180deg, rgba($highlight-background, .6), rgba($highlight-background, .9))
|
||||
|
||||
if $highlighEnable
|
||||
if $highlight_enable
|
||||
@require 'highlight/index'
|
||||
|
||||
if $prismjsEnable
|
||||
if $prismjs_enable
|
||||
@require 'prismjs/index'
|
||||
|
||||
$code-block
|
||||
overflow: auto
|
||||
margin: 0 0 1rem
|
||||
margin: 0 0 20px
|
||||
padding: 0
|
||||
background: var(--hl-bg)
|
||||
color: var(--hl-color)
|
||||
@@ -33,28 +31,6 @@ $code-block
|
||||
counter-reset: line
|
||||
white-space: pre-wrap
|
||||
|
||||
blockquote
|
||||
margin: 0 0 1rem
|
||||
padding: .1rem .8rem
|
||||
border-left: .2rem solid $blockquote-padding-color
|
||||
background-color: var(--blockquote-bg)
|
||||
color: var(--blockquote-color)
|
||||
|
||||
a
|
||||
word-break: break-all
|
||||
|
||||
p
|
||||
margin: 0 !important
|
||||
padding: .5rem 0
|
||||
|
||||
footer
|
||||
padding: 0 0 .5rem
|
||||
|
||||
cite
|
||||
&:before
|
||||
padding: 0 .3em
|
||||
content: '—'
|
||||
|
||||
#article-container
|
||||
pre,
|
||||
code
|
||||
@@ -62,7 +38,7 @@ blockquote
|
||||
font-family: $code-font-family !important
|
||||
|
||||
code
|
||||
padding: .1rem .2rem
|
||||
padding: 2px 4px
|
||||
background: $code-background
|
||||
color: $code-foreground
|
||||
|
||||
@@ -87,7 +63,7 @@ blockquote
|
||||
|
||||
figcaption,
|
||||
.caption
|
||||
padding: .3rem 0 .1rem .7rem
|
||||
padding: 6px 0 2px 14px
|
||||
font-size: $code-font-size
|
||||
line-height: 1em
|
||||
|
||||
@@ -104,7 +80,7 @@ blockquote
|
||||
display: flex
|
||||
align-items: center
|
||||
overflow: hidden
|
||||
min-height: 1.2rem
|
||||
min-height: 24px
|
||||
height: 2.15em
|
||||
background: var(--hltools-bg)
|
||||
color: var(--hltools-color)
|
||||
@@ -115,12 +91,12 @@ blockquote
|
||||
|
||||
.expand
|
||||
position: absolute
|
||||
padding: .4rem .7rem
|
||||
padding: .57em .7em
|
||||
cursor: pointer
|
||||
transition: transform .3s
|
||||
|
||||
& + .code-lang
|
||||
left: 1.7rem
|
||||
left: 1.6em
|
||||
|
||||
&.closed
|
||||
transition: all .3s
|
||||
@@ -128,7 +104,7 @@ blockquote
|
||||
|
||||
.code-lang
|
||||
position: absolute
|
||||
left: .7rem
|
||||
left: 14px
|
||||
text-transform: uppercase
|
||||
font-weight: bold
|
||||
font-size: 1.15em
|
||||
@@ -136,13 +112,13 @@ blockquote
|
||||
|
||||
.copy-notice
|
||||
position: absolute
|
||||
right: 1.7rem
|
||||
right: 2.1em
|
||||
opacity: 0
|
||||
transition: opacity .4s
|
||||
|
||||
.copy-button
|
||||
position: absolute
|
||||
right: .7rem
|
||||
right: 14px
|
||||
cursor: pointer
|
||||
transition: color .2s
|
||||
|
||||
@@ -160,7 +136,7 @@ blockquote
|
||||
|
||||
if $highlight_theme == 'mac' || ($highlight_theme == 'mac light')
|
||||
figure.highlight
|
||||
margin: 0 0 1.2rem
|
||||
margin: 0 0 24px
|
||||
border-radius: 7px
|
||||
box-shadow: 0 5px 10px 0 $highlight-mac-border
|
||||
-webkit-transform: translateZ(0)
|
||||
@@ -168,7 +144,7 @@ blockquote
|
||||
.highlight-tools
|
||||
&:after
|
||||
position: absolute
|
||||
left: .7rem
|
||||
left: 14px
|
||||
width: 12px
|
||||
height: 12px
|
||||
border-radius: 50%
|
||||
@@ -184,13 +160,13 @@ blockquote
|
||||
transform: rotate(90deg) !important
|
||||
|
||||
& ~ .copy-notice
|
||||
right: 2.8rem
|
||||
right: 3.3em
|
||||
|
||||
& ~ .copy-button
|
||||
right: 1.8rem
|
||||
right: 2.1em
|
||||
|
||||
.code-lang
|
||||
left: 3.8rem !important
|
||||
left: 75px
|
||||
|
||||
if hexo-config('highlight_height_limit')
|
||||
.code-expand-btn
|
||||
@@ -204,12 +180,17 @@ blockquote
|
||||
cursor: pointer
|
||||
|
||||
i
|
||||
padding: .3rem 0
|
||||
padding: 6px 0
|
||||
color: var(--hlnumber-color)
|
||||
animation: code-expand-key 1.2s infinite
|
||||
|
||||
&.expand-done
|
||||
display: none !important
|
||||
& > i
|
||||
transform: rotate(180deg)
|
||||
|
||||
& + table,
|
||||
& + pre
|
||||
margin-bottom: 1.8em
|
||||
|
||||
&:not(.expand-done)
|
||||
& ~ table,
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
figure.highlight
|
||||
table
|
||||
scrollbar-color: var(--hlscrollbar-bg) transparent
|
||||
|
||||
&::-webkit-scrollbar-thumb
|
||||
background: var(--hlscrollbar-bg)
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ if $highlight_theme != false
|
||||
if wordWrap
|
||||
&:before
|
||||
display: inline-block
|
||||
padding: 0 .3rem 0 0
|
||||
min-width: 1.6rem
|
||||
padding: 0 6px 0 0
|
||||
min-width: 30px
|
||||
color: var(--hlnumber-color)
|
||||
content: counter(line)
|
||||
counter-increment: line
|
||||
@@ -27,13 +27,13 @@ if $highlight_theme != false
|
||||
border: none
|
||||
|
||||
.gutter pre
|
||||
padding-right: .5rem
|
||||
padding-left: .5rem
|
||||
padding-right: 10px
|
||||
padding-left: 10px
|
||||
background-color: var(--hlnumber-bg)
|
||||
color: var(--hlnumber-color)
|
||||
text-align: right
|
||||
|
||||
.code pre
|
||||
padding-right: .5rem
|
||||
padding-left: .5rem
|
||||
padding-right: 10px
|
||||
padding-left: 10px
|
||||
width: 100%
|
||||
@@ -1,4 +1,4 @@
|
||||
if hexo-fonfig('prismjs_settings.line_number')
|
||||
if $prismjs_line_number
|
||||
@require 'line-number'
|
||||
|
||||
if $highlight_theme != false
|
||||
@@ -6,6 +6,8 @@ if $highlight_theme != false
|
||||
|
||||
#article-container
|
||||
pre[class*='language-']
|
||||
scrollbar-color: var(--hlscrollbar-bg) transparent
|
||||
|
||||
&::-webkit-scrollbar-thumb
|
||||
background: var(--hlscrollbar-bg)
|
||||
|
||||
@@ -14,7 +16,7 @@ if $highlight_theme != false
|
||||
|
||||
.caption
|
||||
margin-left: -3.8em
|
||||
padding: .2rem .8rem !important
|
||||
padding: 4px 16px !important
|
||||
|
||||
a
|
||||
padding: 0 !important
|
||||
@@ -11,9 +11,9 @@ if $highlight_theme == 'darker' || ($highlight_theme == 'mac')
|
||||
color: alpha($highlight-foreground, .8),
|
||||
bg-color: darken($highlight-background, 2)
|
||||
}
|
||||
$highlight-scrollbar = darken($highlight-background, 6)
|
||||
$highlight-scrollbar = lighten($highlight-background, 8)
|
||||
|
||||
if $highlighEnable
|
||||
if $highlight_enable
|
||||
$highlight-comment = #969896
|
||||
$highlight-red = #FF5370
|
||||
$highlight-orange = #F78C6C
|
||||
@@ -37,9 +37,9 @@ if $highlight_theme == 'pale night'
|
||||
color: $highlight-foreground,
|
||||
bg-color: darken($highlight-background, 2)
|
||||
}
|
||||
$highlight-scrollbar = darken($highlight-background, 6)
|
||||
$highlight-scrollbar = lighten($highlight-background, 8)
|
||||
|
||||
if $highlighEnable
|
||||
if $highlight_enable
|
||||
$highlight-comment = #676E95
|
||||
$highlight-red = #FF5370
|
||||
$highlight-orange = #F78C6C
|
||||
@@ -63,9 +63,9 @@ if $highlight_theme == 'ocean'
|
||||
color: $highlight-foreground,
|
||||
bg-color: darken($highlight-background, 2)
|
||||
}
|
||||
$highlight-scrollbar = darken($highlight-background, 5)
|
||||
$highlight-scrollbar = lighten($highlight-background, 8)
|
||||
|
||||
if $highlighEnable
|
||||
if $highlight_enable
|
||||
$highlight-comment = rgba(101, 115, 126, .8)
|
||||
$highlight-red = #FF5370
|
||||
$highlight-orange = #F78C6C
|
||||
@@ -92,7 +92,7 @@ if $highlight_theme == 'light' || ($highlight_theme == 'mac light')
|
||||
}
|
||||
$highlight-scrollbar = darken($highlight-background, 8)
|
||||
|
||||
if $highlighEnable
|
||||
if $highlight_enable
|
||||
$highlight-comment = rgba(149, 165, 166, .8)
|
||||
$highlight-red = #E53935
|
||||
$highlight-orange = #F76D47
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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,
|
||||
|
||||
@@ -21,6 +21,7 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
|
||||
--btn-bg: lighten(#121212, 5)
|
||||
--text-bg-hover: lighten(#121212, 15)
|
||||
--light-grey: alpha(#FFFFFF, .7)
|
||||
--dark-grey: alpha(#FFFFFF, .2)
|
||||
--white: alpha(#FFFFFF, .9)
|
||||
--text-highlight-color: alpha(#FFFFFF, .9)
|
||||
--blockquote-color: alpha(#FFFFFF, .7)
|
||||
@@ -35,6 +36,8 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
|
||||
--hlnumber-color: alpha(#FFFFFF, .4)
|
||||
--hlscrollbar-bg: lighten(#121212, 5)
|
||||
--hlexpand-bg: linear-gradient(180deg, rgba(lighten(#121212, 2), .6), rgba(lighten(#121212, 2), .9))
|
||||
--scrollbar-color: lighten(#121212, 5)
|
||||
--timeline-bg: lighten(#121212, 5)
|
||||
|
||||
#web_bg:before,
|
||||
#footer:before,
|
||||
@@ -90,7 +93,6 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
|
||||
// hide-tags
|
||||
.hide-button,
|
||||
.btn-beautify,
|
||||
.mermaid,
|
||||
.hl-label,
|
||||
.post-outdate-notice,
|
||||
.error-img,
|
||||
|
||||
@@ -11,6 +11,7 @@ if hexo-config('readmode')
|
||||
--exit-btn-bg: #C0C0C0
|
||||
--exit-btn-color: #fff
|
||||
--exit-btn-hover: darken(#C0C0C0, 20)
|
||||
--pseudo-hover: none
|
||||
|
||||
[data-theme='dark']
|
||||
.read-mode
|
||||
@@ -33,6 +34,7 @@ if hexo-config('readmode')
|
||||
position: fixed
|
||||
top: 30px
|
||||
right: 30px
|
||||
z-index: 100
|
||||
width: 40px
|
||||
height: 40px
|
||||
border-radius: 8px
|
||||
@@ -41,6 +43,10 @@ if hexo-config('readmode')
|
||||
font-size: 16px
|
||||
transition: background .3s
|
||||
|
||||
+maxWidth768()
|
||||
top: initial
|
||||
bottom: 30px
|
||||
|
||||
&:hover
|
||||
background: var(--exit-btn-hover)
|
||||
|
||||
@@ -131,7 +137,7 @@ if hexo-config('readmode')
|
||||
ul
|
||||
>li
|
||||
&:before
|
||||
border: .15rem solid var(--gray) !important
|
||||
border-color: var(--gray) !important
|
||||
|
||||
.tabs
|
||||
border: 2px solid var(--tab-border-color)
|
||||
@@ -160,7 +166,7 @@ if hexo-config('readmode')
|
||||
color: var(--font-color)
|
||||
|
||||
blockquote
|
||||
border-left: .2rem solid var(--gray)
|
||||
border-color: var(--gray)
|
||||
background-color: var(--readmode-light-color)
|
||||
|
||||
kbd
|
||||
@@ -179,9 +185,6 @@ if hexo-config('readmode')
|
||||
background: var(--readmode-light-color) !important
|
||||
color: var(--font-color) !important
|
||||
|
||||
.button--animated:before
|
||||
background: var(--readmode-light-color) !important
|
||||
|
||||
.note
|
||||
border: 2px solid var(--gray)
|
||||
border-left-color: var(--gray) !important
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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)
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -1,69 +1,52 @@
|
||||
#algolia-search
|
||||
.search-dialog
|
||||
.ais-search-box
|
||||
margin: 0 auto
|
||||
max-width: 100%
|
||||
width: 100%
|
||||
|
||||
.ais-SearchBox
|
||||
input
|
||||
padding: .25rem .7rem
|
||||
padding: 5px 14px
|
||||
width: 100%
|
||||
outline: none
|
||||
border: 2px solid $search-color
|
||||
border-radius: 2rem
|
||||
border-radius: 40px
|
||||
background: var(--search-bg)
|
||||
color: var(--search-input-color)
|
||||
|
||||
.ais-hits--item.algolia-hit-item
|
||||
position: relative
|
||||
padding-left: 1.2rem
|
||||
|
||||
&:hover
|
||||
&:before
|
||||
border-color: $pseudo-hover
|
||||
|
||||
&:before
|
||||
$w = .5em
|
||||
position: absolute
|
||||
top: .53em
|
||||
left: 0
|
||||
width: w = $w
|
||||
height: h = w
|
||||
border: .15rem solid $search-color
|
||||
border-radius: w
|
||||
background: transparent
|
||||
content: ''
|
||||
line-height: h
|
||||
transition: all .2s ease-in-out
|
||||
.ais-Hits-list
|
||||
padding-left: 24px
|
||||
@extend .list-beauty
|
||||
|
||||
a
|
||||
display: block
|
||||
color: var(--search-result-title)
|
||||
cursor: pointer
|
||||
|
||||
&:hover
|
||||
color: $search-color
|
||||
|
||||
em
|
||||
mark
|
||||
background: transparent
|
||||
color: $search-keyword-highlight
|
||||
font-weight: bold
|
||||
|
||||
.ais-pagination.pagination
|
||||
margin: .8rem 0 0
|
||||
.ais-Pagination
|
||||
margin: 16px 0 0
|
||||
padding: 0
|
||||
text-align: center
|
||||
|
||||
.ais-pagination--item
|
||||
margin: 0 .2rem
|
||||
.ais-Pagination-list
|
||||
padding: 0
|
||||
list-style: none
|
||||
|
||||
.ais-Pagination-item
|
||||
display: inline
|
||||
margin: 0 4px
|
||||
padding: 0
|
||||
|
||||
a
|
||||
.ais-Pagination-link
|
||||
display: inline-block
|
||||
min-width: 1.2rem
|
||||
height: 1.2rem
|
||||
min-width: 24px
|
||||
height: 24px
|
||||
text-align: center
|
||||
line-height: 1.2rem
|
||||
line-height: 24px
|
||||
|
||||
.ais-pagination--item.current
|
||||
.ais-Pagination-item--selected
|
||||
a
|
||||
background: $theme-paginator-color
|
||||
color: #eee
|
||||
@@ -71,5 +54,5 @@
|
||||
|
||||
.algolia-logo
|
||||
padding-top: 2px
|
||||
width: 4rem
|
||||
height: 1.5rem
|
||||
width: 80px
|
||||
height: 30px
|
||||
@@ -1,15 +1,14 @@
|
||||
.search-dialog
|
||||
position: fixed
|
||||
top: 5rem
|
||||
top: 100px
|
||||
left: 50%
|
||||
z-index: 1001
|
||||
display: none
|
||||
margin-left: -15rem
|
||||
padding: 1rem
|
||||
width: 30rem
|
||||
margin-left: -300px
|
||||
padding: 20px
|
||||
width: 600px
|
||||
border-radius: 8px
|
||||
background: var(--search-bg)
|
||||
animation: titlescale .5s
|
||||
|
||||
+maxWidth768()
|
||||
top: 0
|
||||
@@ -20,27 +19,25 @@
|
||||
border-radius: 0
|
||||
|
||||
hr
|
||||
margin: 1rem auto
|
||||
margin: 20px auto
|
||||
|
||||
span.search-close-button
|
||||
position: absolute
|
||||
top: .8rem
|
||||
right: 1rem
|
||||
color: $grey
|
||||
font-size: 1.4em
|
||||
line-height: 1
|
||||
cursor: pointer
|
||||
transition: color .2s ease-in-out
|
||||
|
||||
&:hover
|
||||
color: $search-color
|
||||
|
||||
&__title
|
||||
padding: 0 0 .7rem
|
||||
.search-nav
|
||||
margin: 0 0 14px
|
||||
color: $search-color
|
||||
font-size: 1.4em
|
||||
line-height: 1
|
||||
|
||||
.search-dialog-title
|
||||
margin-right: 10px
|
||||
|
||||
.search-close-button
|
||||
float: right
|
||||
color: $grey
|
||||
transition: color .2s ease-in-out
|
||||
|
||||
&:hover
|
||||
color: $search-color
|
||||
|
||||
#search-mask
|
||||
position: fixed
|
||||
top: 0
|
||||
|
||||
@@ -6,23 +6,26 @@
|
||||
width: 100%
|
||||
|
||||
input
|
||||
padding: .25rem .7rem
|
||||
padding: 5px 14px
|
||||
width: 100%
|
||||
outline: none
|
||||
border: 2px solid $search-color
|
||||
border-radius: 2rem
|
||||
border-radius: 40px
|
||||
background: var(--search-bg)
|
||||
color: var(--search-input-color)
|
||||
-webkit-appearance: none
|
||||
|
||||
.search-wrap
|
||||
display: none
|
||||
|
||||
.local-search__hit-item
|
||||
position: relative
|
||||
padding-left: 1.2rem
|
||||
padding-left: 24px
|
||||
line-height: 1.7
|
||||
|
||||
&:hover
|
||||
&:before
|
||||
border-color: $pseudo-hover
|
||||
border-color: var(--pseudo-hover)
|
||||
|
||||
&:before
|
||||
$w = .5em
|
||||
@@ -31,7 +34,7 @@
|
||||
left: 0
|
||||
width: w = $w
|
||||
height: h = w
|
||||
border: .15rem solid $search-color
|
||||
border: 3px solid $search-color
|
||||
border-radius: w
|
||||
background: transparent
|
||||
content: ''
|
||||
@@ -48,7 +51,7 @@
|
||||
color: $search-color
|
||||
|
||||
.search-result
|
||||
margin: 0 0 .4rem
|
||||
margin: 0 0 8px
|
||||
word-break: break-all
|
||||
|
||||
.search-keyword
|
||||
@@ -57,8 +60,8 @@
|
||||
|
||||
.search-result-list
|
||||
overflow-y: auto
|
||||
max-height: 10.5rem
|
||||
max-height: 210px
|
||||
|
||||
+maxWidth768()
|
||||
padding-bottom: 2rem
|
||||
padding-bottom: 40px
|
||||
max-height: 75vh !important
|
||||
@@ -1,61 +1,55 @@
|
||||
#article-container
|
||||
.btn-center
|
||||
margin: 0 0 1rem
|
||||
margin: 0 0 20px
|
||||
text-align: center
|
||||
|
||||
.btn-beautify
|
||||
display: inline-block
|
||||
margin: 0 .2rem .3rem
|
||||
padding: 0 1rem
|
||||
background-color: $btn-default-color
|
||||
margin: 0 4px 6px
|
||||
padding: 0 15px
|
||||
background-color: var(--btn-beautify-color, $btn-default-color)
|
||||
color: $btn-color
|
||||
line-height: 2
|
||||
|
||||
for $type in $color-types
|
||||
&.{$type}
|
||||
--btn-beautify-color: lookup('$tagsP-' + $type + '-color')
|
||||
|
||||
&:hover
|
||||
background-color: var(--btn-hover-color)
|
||||
|
||||
i + span
|
||||
margin-left: .3rem
|
||||
margin-left: 6px
|
||||
|
||||
&:not(.block) + .btn-beautify:not(.block)
|
||||
margin: 0 .2rem 1rem
|
||||
margin: 0 4px 20px
|
||||
|
||||
&.block
|
||||
display: block
|
||||
margin: 0 0 1rem
|
||||
margin: 0 0 20px
|
||||
width: fit-content
|
||||
width: -moz-fit-content
|
||||
|
||||
&.center
|
||||
margin: 0 auto 1rem
|
||||
margin: 0 auto 20px
|
||||
|
||||
&.right
|
||||
margin: 0 0 1rem auto
|
||||
margin: 0 0 20px auto
|
||||
|
||||
&.larger
|
||||
padding: .3rem 1.3rem
|
||||
padding: 6px 15px
|
||||
|
||||
&:hover
|
||||
text-decoration: none
|
||||
|
||||
for $type in $tagsP-types
|
||||
&.{$type}
|
||||
background-color: lookup('$tagsP-' + $type + '-color')
|
||||
|
||||
&.outline
|
||||
border: 1px solid transparent
|
||||
border-color: $btn-default-color
|
||||
border-color: var(--btn-beautify-color, $btn-default-color)
|
||||
background-color: transparent
|
||||
color: $btn-default-color
|
||||
transition: all .3s
|
||||
color: var(--btn-beautify-color, $btn-default-color)
|
||||
|
||||
&.button--animated:before
|
||||
background: $btn-default-color
|
||||
&:hover
|
||||
background-color: var(--btn-beautify-color, $btn-default-color)
|
||||
|
||||
&:hover
|
||||
color: white !important
|
||||
|
||||
for $type in $tagsP-types
|
||||
&.{$type}
|
||||
border-color: lookup('$tagsP-' + $type + '-color')
|
||||
color: lookup('$tagsP-' + $type + '-color')
|
||||
|
||||
&.button--animated:before
|
||||
background: lookup('$tagsP-' + $type + '-color')
|
||||
@@ -1,107 +1,102 @@
|
||||
figure.gallery-group
|
||||
position: relative
|
||||
float: left
|
||||
overflow: hidden
|
||||
margin: .3rem .2rem
|
||||
width: calc(50% - .4rem)
|
||||
height: 250px
|
||||
border-radius: 8px
|
||||
background: $dark-black
|
||||
-webkit-transform: translate3d(0, 0, 0)
|
||||
|
||||
+maxWidth600()
|
||||
width: calc(100% - .4rem)
|
||||
|
||||
&:hover
|
||||
img
|
||||
opacity: .4
|
||||
transform: translate3d(0, 0, 0)
|
||||
|
||||
.gallery-group-name::after
|
||||
transform: translate3d(0, 0, 0)
|
||||
|
||||
p
|
||||
opacity: 1
|
||||
transform: translate3d(0, 0, 0)
|
||||
|
||||
img
|
||||
#article-container
|
||||
figure.gallery-group
|
||||
position: relative
|
||||
margin: 0 !important
|
||||
max-width: none
|
||||
width: calc(100% + 20px)
|
||||
float: left
|
||||
overflow: hidden
|
||||
margin: 6px 4px
|
||||
width: calc(50% - 8px)
|
||||
height: 250px
|
||||
backface-visibility: hidden
|
||||
opacity: .8
|
||||
transition: opacity .35s, transform .35s
|
||||
transform: translate3d(-10px, 0, 0)
|
||||
object-fit: cover
|
||||
border-radius: 8px
|
||||
background: $dark-black
|
||||
-webkit-transform: translate3d(0, 0, 0)
|
||||
|
||||
figcaption
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
padding: 1.5rem
|
||||
width: 100%
|
||||
height: 100%
|
||||
color: $gallery-color
|
||||
text-transform: uppercase
|
||||
backface-visibility: hidden
|
||||
+maxWidth600()
|
||||
width: calc(100% - 8px)
|
||||
|
||||
& > a
|
||||
&:hover
|
||||
img
|
||||
opacity: .4
|
||||
transform: translate3d(0, 0, 0)
|
||||
|
||||
.gallery-group-name::after
|
||||
transform: translate3d(0, 0, 0)
|
||||
|
||||
p
|
||||
opacity: 1
|
||||
transform: translate3d(0, 0, 0)
|
||||
|
||||
img
|
||||
position: relative
|
||||
margin: 0
|
||||
max-width: none
|
||||
width: calc(100% + 20px)
|
||||
height: 250px
|
||||
backface-visibility: hidden
|
||||
opacity: .8
|
||||
transition: all .3s, filter 375ms ease-in .2s
|
||||
transform: translate3d(-10px, 0, 0)
|
||||
object-fit: cover
|
||||
|
||||
figcaption
|
||||
position: absolute
|
||||
top: 0
|
||||
right: 0
|
||||
bottom: 0
|
||||
left: 0
|
||||
z-index: 1000
|
||||
opacity: 0
|
||||
|
||||
p
|
||||
@extend .limit-more-line
|
||||
margin: 0
|
||||
padding: .4rem 0 0
|
||||
letter-spacing: 1px
|
||||
font-size: 1.1em
|
||||
line-height: 1.5
|
||||
opacity: 0
|
||||
transition: opacity .35s, transform .35s
|
||||
transform: translate3d(100%, 0, 0)
|
||||
-webkit-line-clamp: 4
|
||||
|
||||
.gallery-group-name
|
||||
@extend .limit-more-line
|
||||
position: relative
|
||||
margin: 0
|
||||
padding: .4rem 0
|
||||
font-weight: bold
|
||||
font-size: 1.65em
|
||||
line-height: 1.5
|
||||
-webkit-line-clamp: 2
|
||||
|
||||
&:after
|
||||
position: absolute
|
||||
bottom: 0
|
||||
left: 0
|
||||
padding: 30px
|
||||
width: 100%
|
||||
height: 2px
|
||||
background: $gallery-color
|
||||
content: ''
|
||||
transition: transform .35s
|
||||
transform: translate3d(-100%, 0, 0)
|
||||
height: 100%
|
||||
color: $gallery-color
|
||||
text-transform: uppercase
|
||||
backface-visibility: hidden
|
||||
|
||||
.gallery-group-main
|
||||
overflow: auto
|
||||
padding: 0 0 .8rem
|
||||
& > a
|
||||
position: absolute
|
||||
top: 0
|
||||
right: 0
|
||||
bottom: 0
|
||||
left: 0
|
||||
z-index: 1000
|
||||
opacity: 0
|
||||
|
||||
.justified-gallery
|
||||
margin: 0 0 .8rem
|
||||
p
|
||||
@extend .limit-more-line
|
||||
margin: 0
|
||||
padding: 8px 0 0
|
||||
letter-spacing: 1px
|
||||
font-size: 1.1em
|
||||
line-height: 1.5
|
||||
opacity: 0
|
||||
transition: opacity .35s, transform .35s
|
||||
transform: translate3d(100%, 0, 0)
|
||||
-webkit-line-clamp: 4
|
||||
|
||||
img
|
||||
.gallery-group-name
|
||||
@extend .limit-more-line
|
||||
position: relative
|
||||
margin: 0
|
||||
padding: 8px 0
|
||||
font-weight: bold
|
||||
font-size: 1.65em
|
||||
line-height: 1.5
|
||||
-webkit-line-clamp: 2
|
||||
|
||||
&:after
|
||||
position: absolute
|
||||
bottom: 0
|
||||
left: 0
|
||||
width: 100%
|
||||
height: 2px
|
||||
background: $gallery-color
|
||||
content: ''
|
||||
transition: transform .35s
|
||||
transform: translate3d(-100%, 0, 0)
|
||||
|
||||
.gallery-group-main
|
||||
overflow: auto
|
||||
padding: 0 0 16px
|
||||
|
||||
.fj-gallery
|
||||
margin: 0 0 16px
|
||||
opacity: 0
|
||||
|
||||
.img-alt
|
||||
display: none
|
||||
|
||||
.fancybox
|
||||
width: auto
|
||||
text-align: inherit
|
||||
.img-alt
|
||||
display: none
|
||||
@@ -11,13 +11,13 @@ blockquote
|
||||
|
||||
&.right
|
||||
float: right
|
||||
margin: 1em 0 0 .5rem
|
||||
margin: 1em 0 0 .5em
|
||||
|
||||
// hexo tag video
|
||||
.video-container
|
||||
position: relative
|
||||
overflow: hidden
|
||||
margin-bottom: .8rem
|
||||
margin-bottom: 16px
|
||||
padding-top: 56.25%
|
||||
height: 0
|
||||
|
||||
|
||||
@@ -3,10 +3,13 @@
|
||||
.hide-block
|
||||
& > .hide-button
|
||||
display: inline-block
|
||||
padding: .3rem 1rem
|
||||
padding: 6px 20px
|
||||
background: $tag-hide-bg
|
||||
color: var(--white)
|
||||
|
||||
&:hover
|
||||
background-color: var(--btn-hover-color)
|
||||
|
||||
&.open
|
||||
display: none
|
||||
|
||||
@@ -21,20 +24,20 @@
|
||||
|
||||
.hide-inline
|
||||
& > .hide-button
|
||||
margin: 0 .3rem
|
||||
margin: 0 6px
|
||||
|
||||
& > .hide-content
|
||||
margin: 0 .3rem
|
||||
margin: 0 6px
|
||||
|
||||
.hide-block
|
||||
margin: 0 0 .8rem
|
||||
margin: 0 0 16px
|
||||
|
||||
.hide-toggle
|
||||
margin-bottom: 1rem
|
||||
margin-bottom: 20px
|
||||
border: 1px solid $tag-hide-toggle-bg
|
||||
|
||||
& > .hide-button
|
||||
padding: .3rem .5rem
|
||||
padding: 6px 10px
|
||||
background: $tag-hide-toggle-bg
|
||||
color: #1F2D3D
|
||||
cursor: pointer
|
||||
@@ -52,4 +55,4 @@
|
||||
|
||||
& > .hide-content
|
||||
display: none
|
||||
margin: 1.5rem 1.2rem
|
||||
margin: 30px 24px
|
||||
@@ -6,6 +6,6 @@
|
||||
&.default
|
||||
background-color: $btn-default-color
|
||||
|
||||
for $type in $tagsP-types
|
||||
for $type in $color-types
|
||||
&.{$type}
|
||||
background-color: lookup('$tagsP-' + $type + '-color')
|
||||
@@ -1,22 +1,22 @@
|
||||
.note
|
||||
$note-icons = hexo-config('note.icons')
|
||||
position: relative
|
||||
margin: 0 0 1rem
|
||||
margin: 0 0 20px
|
||||
padding: 15px
|
||||
|
||||
if hexo-config('note.border_radius') is a 'unit'
|
||||
border-radius: unit(hexo-config('note.border_radius'), px)
|
||||
|
||||
&.icon
|
||||
padding-left: 2.25rem
|
||||
padding-left: 3em
|
||||
|
||||
& > .note-icon
|
||||
position: absolute
|
||||
top: calc(50% - .4rem)
|
||||
left: .7rem
|
||||
top: calc(50% - .5em)
|
||||
left: .8em
|
||||
font-size: larger
|
||||
|
||||
for $type in $tagsP-types
|
||||
for $type in $color-types
|
||||
&.{$type}
|
||||
&:not(.disabled)
|
||||
border-left-color: lookup('$tagsP-' + $type + '-color') !important
|
||||
@@ -75,12 +75,12 @@
|
||||
|
||||
if $note-icons
|
||||
&:not(.no-icon)
|
||||
padding-left: 2.25rem
|
||||
padding-left: 3em
|
||||
|
||||
&::before
|
||||
position: absolute
|
||||
top: calc(50% - .8rem)
|
||||
left: .7rem
|
||||
top: calc(50% - .95em)
|
||||
left: .8em
|
||||
font-size: larger
|
||||
@extend .fontawesomeIcon
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#article-container
|
||||
.tabs
|
||||
position: relative
|
||||
margin: 0 0 1rem
|
||||
margin: 0 0 20px
|
||||
border-right: 1px solid var(--tab-border-color)
|
||||
border-bottom: 1px solid var(--tab-border-color)
|
||||
border-left: 1px solid var(--tab-border-color)
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
button
|
||||
display: block
|
||||
padding: .5rem 1rem
|
||||
padding: 8px 18px
|
||||
width: 100%
|
||||
border-top: 2px solid var(--tab-border-color)
|
||||
background: var(--tab-botton-bg)
|
||||
@@ -51,10 +51,10 @@
|
||||
.tab-item-content
|
||||
position: relative
|
||||
display: none
|
||||
padding: 1.8rem 1.2rem
|
||||
padding: 36px 24px
|
||||
|
||||
+maxWidth768()
|
||||
padding: 1.2rem .7rem
|
||||
padding: 24px 14px
|
||||
|
||||
&.active
|
||||
display: block
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
#article-container
|
||||
.timeline
|
||||
margin: 0 0 20px 10px
|
||||
padding: 14px 20px 5px
|
||||
border-left: 2px solid var(--timeline-color, $theme-color)
|
||||
|
||||
for $type in $color-types
|
||||
&.{$type}
|
||||
--timeline-color: lookup('$tagsP-' + $type + '-color')
|
||||
--timeline-bg: s('rgba(%s,%s,%s, 0.2)', red(lookup('$tagsP-' + $type + '-color')), green(lookup('$tagsP-' + $type + '-color')), blue(lookup('$tagsP-' + $type + '-color')))
|
||||
|
||||
.timeline-item
|
||||
margin: 0 0 15px
|
||||
|
||||
&:hover
|
||||
.item-circle
|
||||
&:before
|
||||
border-color: var(--timeline-color, $theme-color)
|
||||
|
||||
&.headline
|
||||
.timeline-item-title
|
||||
.item-circle
|
||||
> p
|
||||
font-weight: 600
|
||||
font-size: 1.2em
|
||||
|
||||
&:before
|
||||
left: -28px
|
||||
border: 4px solid var(--timeline-color, $theme-color)
|
||||
|
||||
&:hover
|
||||
.item-circle
|
||||
&:before
|
||||
border-color: var(--pseudo-hover)
|
||||
|
||||
.timeline-item-title
|
||||
position: relative
|
||||
|
||||
.item-circle
|
||||
&:before
|
||||
position: absolute
|
||||
top: 50%
|
||||
left: -27px
|
||||
width: 6px
|
||||
height: 6px
|
||||
border: 3px solid var(--pseudo-hover)
|
||||
border-radius: 50%
|
||||
background: var(--card-bg)
|
||||
content: ''
|
||||
transition: all .3s
|
||||
transform: translate(0, -50%)
|
||||
|
||||
> p
|
||||
margin: 0 0 8px
|
||||
font-weight: 500
|
||||
|
||||
.timeline-item-content
|
||||
position: relative
|
||||
padding: 12px 15px
|
||||
border-radius: 8px
|
||||
background: var(--timeline-bg, lighten($theme-color, 85%))
|
||||
font-size: .93em
|
||||
|
||||
& > :last-child
|
||||
margin-bottom: 0
|
||||
|
||||
& + .timeline
|
||||
margin-top: -20px
|
||||
@@ -1,27 +0,0 @@
|
||||
[data-theme="dark"]
|
||||
#post .post-copyright {
|
||||
background-color: rgb(7 8 10);
|
||||
text-shadow: #bfbeb8 1px 0 4px;
|
||||
}
|
||||
[data-theme="dark"]
|
||||
#post .post-copyright {
|
||||
border: 1px solid rgb(19 18 18 / 35%);
|
||||
}
|
||||
[data-theme="dark"]
|
||||
.post-copyright-info {
|
||||
color: #e0e0e4;
|
||||
}
|
||||
[data-theme="dark"]
|
||||
.copyright {
|
||||
color: #e0e0e4;
|
||||
}
|
||||
[data-theme="dark"]
|
||||
.footer_custom_text {
|
||||
color: #e0e0e4;
|
||||
}
|
||||
#post .post-copyright__title{
|
||||
font-size:22px;
|
||||
}
|
||||
#post .post-copyright__notice{
|
||||
font-size:15px;
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
.xdsoft_flipcountdown{display:inline-block;}
|
||||
|
||||
.xdsoft_flipcountdown .xdsoft_digit{float:left;background-repeat:no-repeat;}
|
||||
.xdsoft_flipcountdown .xdsoft_clearex{clear:both;float:none;}
|
||||
|
||||
|
||||
.xdsoft_flipcountdown .xdsoft_digit{
|
||||
background-position:0px 0px;
|
||||
}
|
||||
.xdsoft_flipcountdown .xdsoft_digit.xdsoft_separator,.xdsoft_flipcountdown .xdsoft_digit.xdsoft_dot{
|
||||
opacity:0.9;
|
||||
}
|
||||
.xdsoft_flipcountdown.xdsoft_size_lg .xdsoft_digit{
|
||||
width:53px;
|
||||
height:76px;
|
||||
background-image:url(/img/digit-lg.png);
|
||||
}
|
||||
.xdsoft_flipcountdown.xdsoft_size_lg .xdsoft_digit.xdsoft_space,
|
||||
.xdsoft_flipcountdown.xdsoft_size_lg .xdsoft_digit.xdsoft_separator,
|
||||
.xdsoft_flipcountdown.xdsoft_size_lg .xdsoft_digit.xdsoft_dot{
|
||||
width:14px;
|
||||
background-position:-19px -4620px;
|
||||
}
|
||||
.xdsoft_flipcountdown.xdsoft_size_lg .xdsoft_digit.xdsoft_dot{
|
||||
background-position:-41px -4620px;
|
||||
}
|
||||
.xdsoft_flipcountdown.xdsoft_size_lg .xdsoft_digit.xdsoft_space{
|
||||
background-position:-100px -4620px;
|
||||
}
|
||||
|
||||
.xdsoft_flipcountdown.xdsoft_size_md .xdsoft_digit{
|
||||
width:36px;
|
||||
height:51px;
|
||||
background-image:url(/img/digit-md.png);
|
||||
}
|
||||
.xdsoft_flipcountdown.xdsoft_size_md .xdsoft_digit.xdsoft_space,
|
||||
.xdsoft_flipcountdown.xdsoft_size_md .xdsoft_digit.xdsoft_separator,
|
||||
.xdsoft_flipcountdown.xdsoft_size_md .xdsoft_digit.xdsoft_dot{
|
||||
width:10px;
|
||||
background-position:-13px -3120px;
|
||||
}
|
||||
.xdsoft_flipcountdown.xdsoft_size_sm .xdsoft_digit{
|
||||
width:24px;
|
||||
height:34px;
|
||||
background-image:url(/img/digit-sm.png);
|
||||
}
|
||||
.xdsoft_flipcountdown.xdsoft_size_sm .xdsoft_digit.xdsoft_space,
|
||||
.xdsoft_flipcountdown.xdsoft_size_sm .xdsoft_digit.xdsoft_separator,
|
||||
.xdsoft_flipcountdown.xdsoft_size_sm .xdsoft_digit.xdsoft_dot{
|
||||
width:10px;
|
||||
background-position:-6px -2100px;
|
||||
}
|
||||
.xdsoft_flipcountdown.xdsoft_size_xs .xdsoft_digit{
|
||||
width:16px;
|
||||
height:23px;
|
||||
background-image:url(/img/digit-xs.png);
|
||||
}
|
||||
.xdsoft_flipcountdown.xdsoft_size_xs .xdsoft_digit.xdsoft_space,
|
||||
.xdsoft_flipcountdown.xdsoft_size_xs .xdsoft_digit.xdsoft_separator,
|
||||
.xdsoft_flipcountdown.xdsoft_size_xs .xdsoft_digit.xdsoft_dot{
|
||||
width:5px;
|
||||
background-position:-5px -1440px;
|
||||
}
|
||||
@@ -24,13 +24,12 @@ $hr-icon = $hrEnable && hexo-config('hr_icon.icon') ? hexo-config('hr_icon.icon'
|
||||
$hr-icon-top = $hrEnable && hexo-config('hr_icon.icon-top') ? convert(hexo-config('hr_icon.icon-top')) : -10px
|
||||
// page beatutify
|
||||
$beautifyEnable = hexo-config('beautify.enable')
|
||||
$title-prefix-icon = $beautifyEnable ? hexo-config('beautify.title-prefix-icon') : '\f0c1'
|
||||
$title-prefix-icon-color = $beautifyEnable ? convert(hexo-config('beautify.title-prefix-icon-color')) : $light-red
|
||||
$title-prefix-icon = $beautifyEnable && hexo-config('beautify.title-prefix-icon') ? hexo-config('beautify.title-prefix-icon') : '\f0c1'
|
||||
$title-prefix-icon-color = $beautifyEnable && hexo-config('beautify.title-prefix-icon-color') ? convert(hexo-config('beautify.title-prefix-icon-color')) : $light-red
|
||||
// Global Variables
|
||||
$font-size = hexo-config('font.global-font-size') ? convert(hexo-config('font.global-font-size')) : 14px
|
||||
$code-font-size = hexo-config('font.code-font-size') ? convert(hexo-config('font.code-font-size')) : var(--global-font-size)
|
||||
$font-color = #1F2D3D
|
||||
$rem = 20px
|
||||
$text-line-height = 2
|
||||
$web-bg = hexo-config('background') && unquote(hexo-config('background'))
|
||||
$index_top_img_height = hexo-config('index_top_img_height') ? convert(hexo-config('index_top_img_height')) : 100vh
|
||||
@@ -40,6 +39,7 @@ $light-blue = $theme-color
|
||||
$dark-black = #000000
|
||||
$light-grey = #EEEEEE
|
||||
$grey = #858585
|
||||
$dark-grey = #cacaca
|
||||
$white = #FFFFFF
|
||||
$whitesmoke = #f5f5f5
|
||||
$font-black = #4C4948
|
||||
@@ -62,13 +62,16 @@ $sidebar-background = #f6f8fa
|
||||
$sidebar-width = 300px
|
||||
// aside
|
||||
$toc-link-color = #666261
|
||||
$toc-mobile-width = 300px
|
||||
$toc-mobile-width = calc(100% - 80px)
|
||||
$toc-mobile-maxWidth = 380px
|
||||
$toc-active-color = #fff
|
||||
// Button
|
||||
$button-color = #fff
|
||||
$button-hover-color = $themeColorEnable && hexo-config('theme_color.button_hover') ? convert(hexo-config('theme_color.button_hover')) : $light-orange
|
||||
$button-bg = $theme-color
|
||||
$pseudo-hover = $button-hover-color
|
||||
// scrollbar
|
||||
$scrollbar-color= $themeColorEnable && hexo-config('theme_color.scrollbar_color') ? convert(hexo-config('theme_color.scrollbar_color')) : $theme-color
|
||||
// table
|
||||
$table-thead-bg = #99a9bf
|
||||
// reward
|
||||
@@ -159,7 +162,7 @@ $note-modern-danger-bg = lighten(spin($note-modern-danger-border, 10), 35% + ($l
|
||||
$note-modern-danger-text = #a94442
|
||||
$note-modern-danger-hover = darken(spin($note-modern-danger-text, -10), 22%)
|
||||
// Tag Plugins - Button/note
|
||||
$tagsP-types = 'blue' 'pink' 'red' 'purple' 'orange' 'green'
|
||||
$color-types = 'blue' 'pink' 'red' 'purple' 'orange' 'green'
|
||||
$btn-color = #fff
|
||||
$btn-default-color = #777
|
||||
$tagsP-blue-color = #428bca
|
||||
@@ -175,4 +178,6 @@ $tab-botton-color = $font-color
|
||||
$tab-button-hover-bg = darken($tab-border-color, 8)
|
||||
$tab-active-border-color = $theme-color
|
||||
$tab-button-active-bg = $card-bg
|
||||
$tab-to-top-color = #99a9bf
|
||||
$tab-to-top-color = #99a9bf
|
||||
// Tag Plugins - timeline
|
||||
$timeline-default-color = $theme-color
|
||||
Reference in new issue
Block a user