mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
fix: 修復本地搜索文章鏈接無法跳轉bugs
feat: 當點擊評論框時,valine背景圖片隱藏 feat: 網頁進入動畫效果可關閉 style: 部分css和js 調整
This commit is contained in:
@@ -497,6 +497,9 @@ footer_bg: false
|
|||||||
# the position of bottom right button/default unit: px (右下角按鈕距離底部的距離/默認單位為px)
|
# the position of bottom right button/default unit: px (右下角按鈕距離底部的距離/默認單位為px)
|
||||||
rightside-bottom:
|
rightside-bottom:
|
||||||
|
|
||||||
|
# Enter transitions (開啓網頁進入效果)
|
||||||
|
enter_transitions: true
|
||||||
|
|
||||||
# Background effects (背景特效)
|
# Background effects (背景特效)
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -68,4 +68,7 @@ div
|
|||||||
include ./head/aplayer.pug
|
include ./head/aplayer.pug
|
||||||
|
|
||||||
if theme.pjax.enable
|
if theme.pjax.enable
|
||||||
!=partial('includes/third-party/pjax', {}, {cache:theme.fragment_cache})
|
!=partial('includes/third-party/pjax', {}, {cache:theme.fragment_cache})
|
||||||
|
|
||||||
|
!=partial('includes/third-party/baidu_push', {}, {cache:theme.fragment_cache})
|
||||||
|
|
||||||
@@ -124,7 +124,6 @@ script.
|
|||||||
js: '!{theme.CDN.justifiedGallery_js}',
|
js: '!{theme.CDN.justifiedGallery_js}',
|
||||||
css: '!{theme.CDN.justifiedGallery_css}'
|
css: '!{theme.CDN.justifiedGallery_css}'
|
||||||
},
|
},
|
||||||
baiduPush: !{theme.baidu_push},
|
|
||||||
isPhotoFigcaption: !{theme.photofigcaption},
|
isPhotoFigcaption: !{theme.photofigcaption},
|
||||||
islazyload: !{theme.lazyload.enable},
|
islazyload: !{theme.lazyload.enable},
|
||||||
isanchor: !{theme.anchor}
|
isanchor: !{theme.anchor}
|
||||||
|
|||||||
@@ -47,14 +47,14 @@ header#page-header(class=isHomeClass style=bg_img)
|
|||||||
include ./post-info.pug
|
include ./post-info.pug
|
||||||
else if is_home()
|
else if is_home()
|
||||||
#site-info
|
#site-info
|
||||||
h1#site_title=site_title
|
h1#site-title=site_title
|
||||||
#site_subtitle
|
#site-subtitle
|
||||||
span#subtitle
|
span#subtitle
|
||||||
if(theme.social)
|
if(theme.social)
|
||||||
#site_social_icons
|
#site_social_icons
|
||||||
!=fragment_cache('social', function(){return partial('includes/header/social')})
|
!=fragment_cache('social', function(){return partial('includes/header/social')})
|
||||||
#scroll_down
|
#scroll-down
|
||||||
i.fas.fa-angle-down.scroll-down-effects
|
i.fas.fa-angle-down.scroll-down-effects
|
||||||
else
|
else
|
||||||
#page_site-info
|
#page-site-info
|
||||||
h1#site_title=site_title
|
h1#site-title=site_title
|
||||||
|
|||||||
@@ -78,4 +78,4 @@ mixin postUI(posts)
|
|||||||
|
|
||||||
if theme.ad && theme.ad.index
|
if theme.ad && theme.ad.index
|
||||||
if (index + 1) % 3 == 0
|
if (index + 1) % 3 == 0
|
||||||
.recent-post-item.ad_height!=theme.ad.index
|
.recent-post-item.ad-height!=theme.ad.index
|
||||||
|
|||||||
@@ -1 +1,4 @@
|
|||||||
|
if top_img === false
|
||||||
|
h1.page-title= page.title
|
||||||
|
|
||||||
#artitalk_main
|
#artitalk_main
|
||||||
15
layout/includes/third-party/baidu_push.pug
vendored
Normal file
15
layout/includes/third-party/baidu_push.pug
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
if theme.baidu_push
|
||||||
|
script.
|
||||||
|
(function(){
|
||||||
|
const bp = document.createElement('script');
|
||||||
|
const curProtocol = window.location.protocol.split(':')[0];
|
||||||
|
if (curProtocol === 'https'){
|
||||||
|
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
|
||||||
|
}
|
||||||
|
bp.dataset.pjax = ''
|
||||||
|
const s = document.getElementsByTagName("script")[0];
|
||||||
|
s.parentNode.insertBefore(bp, s);
|
||||||
|
})()
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "3.2.0-b5",
|
"version": "3.2.0-b6",
|
||||||
"description": "A Simple and Card UI Design theme for Hexo",
|
"description": "A Simple and Card UI Design theme for Hexo",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -45,31 +45,189 @@ minWidth2000()
|
|||||||
@media screen and (min-width: 2000px)
|
@media screen and (min-width: 2000px)
|
||||||
{block}
|
{block}
|
||||||
|
|
||||||
[data-theme='light']
|
// animation
|
||||||
--global-bg: $body-bg
|
if hexo-config('enter_transitions')
|
||||||
--font-color: $font-black
|
#content-inner,
|
||||||
--hr-border: lighten($theme-hr-color, 50%)
|
#footer
|
||||||
--hr-before-color: lighten($theme-hr-color, 30%)
|
animation: main 1s
|
||||||
--search-bg: $search-bg
|
|
||||||
--search-input-color: $search-input-color
|
#page-header
|
||||||
--search-result-title: $search-result-title
|
animation: header-effect 1s
|
||||||
--preloader-bg: $preloader-bg
|
|
||||||
--preloader-color: $preloader-word-color
|
#site-title,
|
||||||
--tab-border-color: $tab-border-color
|
#site-subtitle
|
||||||
--tab-botton-bg: $tab-botton-bg
|
animation: titlescale 1s
|
||||||
--tab-botton-color: $tab-botton-color
|
|
||||||
--tab-button-hover-bg: $tab-button-hover-bg
|
#nav.show
|
||||||
--tab-button-active-bg: $tab-button-active-bg
|
animation: headerNoOpacity 1s
|
||||||
--card-bg: $card-bg
|
|
||||||
--sidebar-bg: $sidebar-background
|
canvas:not(#ribbon-canvas),
|
||||||
--btn-hover-color: $button-hover-color
|
#web_bg
|
||||||
--btn-color: $button-color
|
animation: to_show 4s
|
||||||
--btn-bg: $button-bg
|
|
||||||
--text-bg-hover: $text-bg-hover
|
#ribbon-canvas
|
||||||
--light-grey: $light-grey
|
animation: ribbon_to_show 4s
|
||||||
--white: $white
|
|
||||||
--text-highlight-color: $text-highlight-color
|
.tocOpenPc
|
||||||
--blockquote-color: $blockquote-color
|
.sidebar-toc__title
|
||||||
--blockquote-bg: $blockquote-background-color
|
animation: tocsidebarLtoR .5s
|
||||||
--reward-pop: $reward-pop-up-bg
|
|
||||||
--sidebar-icon-color: $sidebar-icon-color
|
.sidebar-toc__progress
|
||||||
|
animation: tocsidebarLtoR .7s
|
||||||
|
|
||||||
|
.sidebar-toc__content
|
||||||
|
animation: tocsidebarLtoR .9s
|
||||||
|
|
||||||
|
.tocOpenMobile
|
||||||
|
.sidebar-toc__title
|
||||||
|
animation: tocsidebarRtoL .4s
|
||||||
|
|
||||||
|
.sidebar-toc__progress
|
||||||
|
animation: tocsidebarRtoL .6s
|
||||||
|
|
||||||
|
.sidebar-toc__content
|
||||||
|
animation: tocsidebarRtoL .7s
|
||||||
|
|
||||||
|
#mobile-sidebar-menus
|
||||||
|
&.open
|
||||||
|
for i in 1 2 3 4
|
||||||
|
> :nth-child({i})
|
||||||
|
animation: sidebarItem (i / 5)s
|
||||||
|
|
||||||
|
.card-announcement-animation
|
||||||
|
color: #FF0000
|
||||||
|
animation: announ_animation .8s linear infinite
|
||||||
|
|
||||||
|
.scroll-down-effects
|
||||||
|
animation: scroll-down-effect 1.5s infinite
|
||||||
|
|
||||||
|
if hexo-config('avatar.effect') == true
|
||||||
|
.avatar-img
|
||||||
|
animation: avatar_turn_around 2s linear infinite
|
||||||
|
|
||||||
|
.reward-main
|
||||||
|
animation: donate_effcet .3s .1s ease both
|
||||||
|
|
||||||
|
@keyframes scroll-down-effect
|
||||||
|
0%
|
||||||
|
top: 0
|
||||||
|
opacity: .4
|
||||||
|
|
||||||
|
50%
|
||||||
|
top: -16px
|
||||||
|
opacity: 1
|
||||||
|
|
||||||
|
100%
|
||||||
|
top: 0
|
||||||
|
opacity: .4
|
||||||
|
|
||||||
|
@keyframes header-effect
|
||||||
|
0%
|
||||||
|
opacity: 0
|
||||||
|
transform: translateY(-50px)
|
||||||
|
|
||||||
|
100%
|
||||||
|
opacity: 1
|
||||||
|
transform: translateY(0)
|
||||||
|
|
||||||
|
@keyframes headerNoOpacity
|
||||||
|
0%
|
||||||
|
transform: translateY(-50px)
|
||||||
|
|
||||||
|
100%
|
||||||
|
transform: translateY(0)
|
||||||
|
|
||||||
|
@keyframes main
|
||||||
|
0%
|
||||||
|
opacity: 0
|
||||||
|
transform: translateY(50px)
|
||||||
|
|
||||||
|
100%
|
||||||
|
opacity: 1
|
||||||
|
transform: translateY(0)
|
||||||
|
|
||||||
|
@keyframes titlescale
|
||||||
|
0%
|
||||||
|
opacity: 0
|
||||||
|
transform: scale(.7)
|
||||||
|
|
||||||
|
100%
|
||||||
|
opacity: 1
|
||||||
|
transform: scale(1)
|
||||||
|
|
||||||
|
@keyframes search_close
|
||||||
|
0%
|
||||||
|
opacity: 1
|
||||||
|
transform: scale(1)
|
||||||
|
|
||||||
|
100%
|
||||||
|
opacity: 0
|
||||||
|
transform: scale(.7)
|
||||||
|
|
||||||
|
@keyframes to_show
|
||||||
|
0%
|
||||||
|
opacity: 0
|
||||||
|
|
||||||
|
100%
|
||||||
|
opacity: 1
|
||||||
|
|
||||||
|
@keyframes ribbon_to_show
|
||||||
|
0%
|
||||||
|
opacity: 0
|
||||||
|
|
||||||
|
100%
|
||||||
|
opacity: hexo-config('canvas_ribbon.alpha')
|
||||||
|
|
||||||
|
@keyframes avatar_turn_around
|
||||||
|
from
|
||||||
|
transform: rotate(0)
|
||||||
|
|
||||||
|
to
|
||||||
|
transform: rotate(360deg)
|
||||||
|
|
||||||
|
@keyframes sub_menus
|
||||||
|
0%
|
||||||
|
opacity: 0
|
||||||
|
transform: translateY(10px)
|
||||||
|
|
||||||
|
100%
|
||||||
|
opacity: 1
|
||||||
|
transform: translateY(0)
|
||||||
|
|
||||||
|
@keyframes donate_effcet
|
||||||
|
0%
|
||||||
|
opacity: 0
|
||||||
|
transform: translateY(-20px)
|
||||||
|
|
||||||
|
100%
|
||||||
|
opacity: 1
|
||||||
|
transform: translateY(0)
|
||||||
|
|
||||||
|
@keyframes announ_animation
|
||||||
|
0%,
|
||||||
|
to
|
||||||
|
transform: scale(1)
|
||||||
|
|
||||||
|
50%
|
||||||
|
transform: scale(1.2)
|
||||||
|
|
||||||
|
@keyframes sidebarItem
|
||||||
|
0%
|
||||||
|
transform: translateX(200px)
|
||||||
|
|
||||||
|
100%
|
||||||
|
transform: translateX(0)
|
||||||
|
|
||||||
|
@keyframes tocsidebarRtoL
|
||||||
|
0%
|
||||||
|
transform: translateX(200px)
|
||||||
|
|
||||||
|
100%
|
||||||
|
transform: translateX(0)
|
||||||
|
|
||||||
|
@keyframes tocsidebarLtoR
|
||||||
|
0%
|
||||||
|
transform: translateX(-200px)
|
||||||
|
|
||||||
|
100%
|
||||||
|
transform: translateX(0)
|
||||||
@@ -1,3 +1,32 @@
|
|||||||
|
[data-theme='light']
|
||||||
|
--global-bg: $body-bg
|
||||||
|
--font-color: $font-black
|
||||||
|
--hr-border: lighten($theme-hr-color, 50%)
|
||||||
|
--hr-before-color: lighten($theme-hr-color, 30%)
|
||||||
|
--search-bg: $search-bg
|
||||||
|
--search-input-color: $search-input-color
|
||||||
|
--search-result-title: $search-result-title
|
||||||
|
--preloader-bg: $preloader-bg
|
||||||
|
--preloader-color: $preloader-word-color
|
||||||
|
--tab-border-color: $tab-border-color
|
||||||
|
--tab-botton-bg: $tab-botton-bg
|
||||||
|
--tab-botton-color: $tab-botton-color
|
||||||
|
--tab-button-hover-bg: $tab-button-hover-bg
|
||||||
|
--tab-button-active-bg: $tab-button-active-bg
|
||||||
|
--card-bg: $card-bg
|
||||||
|
--sidebar-bg: $sidebar-background
|
||||||
|
--btn-hover-color: $button-hover-color
|
||||||
|
--btn-color: $button-color
|
||||||
|
--btn-bg: $button-bg
|
||||||
|
--text-bg-hover: $text-bg-hover
|
||||||
|
--light-grey: $light-grey
|
||||||
|
--white: $white
|
||||||
|
--text-highlight-color: $text-highlight-color
|
||||||
|
--blockquote-color: $blockquote-color
|
||||||
|
--blockquote-bg: $blockquote-background-color
|
||||||
|
--reward-pop: $reward-pop-up-bg
|
||||||
|
--sidebar-icon-color: $sidebar-icon-color
|
||||||
|
|
||||||
html
|
html
|
||||||
height: 100%
|
height: 100%
|
||||||
font-size: 20px
|
font-size: 20px
|
||||||
@@ -112,8 +141,8 @@ button
|
|||||||
cursor: pointer
|
cursor: pointer
|
||||||
|
|
||||||
// font
|
// font
|
||||||
#page-header #site_title,
|
#site-title,
|
||||||
#page-header #site_subtitle,
|
#site-subtitle,
|
||||||
#site-name,
|
#site-name,
|
||||||
#aside_content .author-info__name,
|
#aside_content .author-info__name,
|
||||||
#aside_content .author-info__description
|
#aside_content .author-info__description
|
||||||
@@ -168,191 +197,6 @@ img:not([src])
|
|||||||
.post-ad
|
.post-ad
|
||||||
margin: 2rem 0
|
margin: 2rem 0
|
||||||
|
|
||||||
.ad_height
|
.ad-height
|
||||||
display: block !important
|
display: block !important
|
||||||
height: auto !important
|
height: auto !important
|
||||||
|
|
||||||
// animation
|
|
||||||
#content-inner,
|
|
||||||
#footer
|
|
||||||
animation: main 1s
|
|
||||||
|
|
||||||
#page-header
|
|
||||||
animation: header-effect 1s
|
|
||||||
|
|
||||||
#site_title,
|
|
||||||
#site_subtitle
|
|
||||||
animation: titlescale 1s
|
|
||||||
|
|
||||||
canvas:not(#ribbon-canvas),
|
|
||||||
#web_bg
|
|
||||||
animation: to_show 4s
|
|
||||||
|
|
||||||
#ribbon-canvas
|
|
||||||
animation: ribbon_to_show 4s
|
|
||||||
|
|
||||||
.card-announcement-animation
|
|
||||||
color: #FF0000
|
|
||||||
animation: announ_animation .8s linear infinite
|
|
||||||
|
|
||||||
.scroll-down-effects
|
|
||||||
animation: scroll-down-effect 1.5s infinite
|
|
||||||
|
|
||||||
if hexo-config('avatar.effect') == true
|
|
||||||
.avatar-img
|
|
||||||
animation: avatar_turn_around 2s linear infinite
|
|
||||||
|
|
||||||
.reward-main
|
|
||||||
animation: donate_effcet .3s .1s ease both
|
|
||||||
|
|
||||||
.tocOpenPc
|
|
||||||
.sidebar-toc__title
|
|
||||||
animation: tocsidebarLtoR .5s
|
|
||||||
|
|
||||||
.sidebar-toc__progress
|
|
||||||
animation: tocsidebarLtoR .7s
|
|
||||||
|
|
||||||
.sidebar-toc__content
|
|
||||||
animation: tocsidebarLtoR .9s
|
|
||||||
|
|
||||||
.tocOpenMobile
|
|
||||||
.sidebar-toc__title
|
|
||||||
animation: tocsidebarRtoL .4s
|
|
||||||
|
|
||||||
.sidebar-toc__progress
|
|
||||||
animation: tocsidebarRtoL .6s
|
|
||||||
|
|
||||||
.sidebar-toc__content
|
|
||||||
animation: tocsidebarRtoL .7s
|
|
||||||
|
|
||||||
#mobile-sidebar-menus
|
|
||||||
&.open
|
|
||||||
transform: translate3d(-100%, 0, 0)
|
|
||||||
|
|
||||||
for i in 1 2 3 4
|
|
||||||
> :nth-child({i})
|
|
||||||
animation: sidebarItem (i / 5)s
|
|
||||||
|
|
||||||
@keyframes scroll-down-effect
|
|
||||||
0%
|
|
||||||
top: 0
|
|
||||||
opacity: .4
|
|
||||||
|
|
||||||
50%
|
|
||||||
top: -16px
|
|
||||||
opacity: 1
|
|
||||||
|
|
||||||
100%
|
|
||||||
top: 0
|
|
||||||
opacity: .4
|
|
||||||
|
|
||||||
@keyframes header-effect
|
|
||||||
0%
|
|
||||||
opacity: 0
|
|
||||||
transform: translateY(-50px)
|
|
||||||
|
|
||||||
100%
|
|
||||||
opacity: 1
|
|
||||||
transform: translateY(0)
|
|
||||||
|
|
||||||
@keyframes headerNoOpacity
|
|
||||||
0%
|
|
||||||
transform: translateY(-50px)
|
|
||||||
|
|
||||||
100%
|
|
||||||
transform: translateY(0)
|
|
||||||
|
|
||||||
@keyframes main
|
|
||||||
0%
|
|
||||||
opacity: 0
|
|
||||||
transform: translateY(50px)
|
|
||||||
|
|
||||||
100%
|
|
||||||
opacity: 1
|
|
||||||
transform: translateY(0)
|
|
||||||
|
|
||||||
@keyframes titlescale
|
|
||||||
0%
|
|
||||||
opacity: 0
|
|
||||||
transform: scale(.7)
|
|
||||||
|
|
||||||
100%
|
|
||||||
opacity: 1
|
|
||||||
transform: scale(1)
|
|
||||||
|
|
||||||
@keyframes search_close
|
|
||||||
0%
|
|
||||||
opacity: 1
|
|
||||||
transform: scale(1)
|
|
||||||
|
|
||||||
100%
|
|
||||||
opacity: 0
|
|
||||||
transform: scale(.7)
|
|
||||||
|
|
||||||
@keyframes to_show
|
|
||||||
0%
|
|
||||||
opacity: 0
|
|
||||||
|
|
||||||
100%
|
|
||||||
opacity: 1
|
|
||||||
|
|
||||||
@keyframes ribbon_to_show
|
|
||||||
0%
|
|
||||||
opacity: 0
|
|
||||||
|
|
||||||
100%
|
|
||||||
opacity: hexo-config('canvas_ribbon.alpha')
|
|
||||||
|
|
||||||
@keyframes avatar_turn_around
|
|
||||||
from
|
|
||||||
transform: rotate(0)
|
|
||||||
|
|
||||||
to
|
|
||||||
transform: rotate(360deg)
|
|
||||||
|
|
||||||
@keyframes sub_menus
|
|
||||||
0%
|
|
||||||
opacity: 0
|
|
||||||
transform: translateY(10px)
|
|
||||||
|
|
||||||
100%
|
|
||||||
opacity: 1
|
|
||||||
transform: translateY(0)
|
|
||||||
|
|
||||||
@keyframes donate_effcet
|
|
||||||
0%
|
|
||||||
opacity: 0
|
|
||||||
transform: translateY(-20px)
|
|
||||||
|
|
||||||
100%
|
|
||||||
opacity: 1
|
|
||||||
transform: translateY(0)
|
|
||||||
|
|
||||||
@keyframes announ_animation
|
|
||||||
0%,
|
|
||||||
to
|
|
||||||
transform: scale(1)
|
|
||||||
|
|
||||||
50%
|
|
||||||
transform: scale(1.2)
|
|
||||||
|
|
||||||
@keyframes sidebarItem
|
|
||||||
0%
|
|
||||||
transform: translateX(200px)
|
|
||||||
|
|
||||||
100%
|
|
||||||
transform: translateX(0)
|
|
||||||
|
|
||||||
@keyframes tocsidebarRtoL
|
|
||||||
0%
|
|
||||||
transform: translateX(200px)
|
|
||||||
|
|
||||||
100%
|
|
||||||
transform: translateX(0)
|
|
||||||
|
|
||||||
@keyframes tocsidebarLtoR
|
|
||||||
0%
|
|
||||||
transform: translateX(-200px)
|
|
||||||
|
|
||||||
100%
|
|
||||||
transform: translateX(0)
|
|
||||||
@@ -19,14 +19,14 @@
|
|||||||
padding: 0 .5rem
|
padding: 0 .5rem
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
#site_title,
|
#site-title,
|
||||||
#site_subtitle,
|
#site-subtitle,
|
||||||
#scroll_down .scroll-down-effects
|
#scroll-down .scroll-down-effects
|
||||||
text-align: center
|
text-align: center
|
||||||
text-shadow: .1rem .1rem .2rem rgba(0, 0, 0, .15)
|
text-shadow: .1rem .1rem .2rem rgba(0, 0, 0, .15)
|
||||||
line-height: 1.5
|
line-height: 1.5
|
||||||
|
|
||||||
#site_title
|
#site-title
|
||||||
margin: 0
|
margin: 0
|
||||||
color: var(--white)
|
color: var(--white)
|
||||||
font-size: 1.85em
|
font-size: 1.85em
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
+minWidth768()
|
+minWidth768()
|
||||||
font-size: 2.85em
|
font-size: 2.85em
|
||||||
|
|
||||||
#site_subtitle
|
#site-subtitle
|
||||||
color: var(--light-grey)
|
color: var(--light-grey)
|
||||||
font-size: 1.15em
|
font-size: 1.15em
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
font-size: 1.43em
|
font-size: 1.43em
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
|
|
||||||
#scroll_down
|
#scroll-down
|
||||||
position: absolute
|
position: absolute
|
||||||
bottom: 0
|
bottom: 0
|
||||||
width: 100%
|
width: 100%
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
+maxWidth768()
|
+maxWidth768()
|
||||||
height: 14rem
|
height: 14rem
|
||||||
|
|
||||||
#page_site-info
|
#page-site-info
|
||||||
position: absolute
|
position: absolute
|
||||||
top: 10rem
|
top: 10rem
|
||||||
padding: 0 .5rem
|
padding: 0 .5rem
|
||||||
@@ -228,7 +228,6 @@ _:future,
|
|||||||
|
|
||||||
&.show
|
&.show
|
||||||
opacity: 1
|
opacity: 1
|
||||||
animation: headerNoOpacity 1s
|
|
||||||
|
|
||||||
#blog_name
|
#blog_name
|
||||||
flex: 1
|
flex: 1
|
||||||
|
|||||||
@@ -19,6 +19,9 @@
|
|||||||
background: var(--sidebar-bg)
|
background: var(--sidebar-bg)
|
||||||
transition: all .5s
|
transition: all .5s
|
||||||
|
|
||||||
|
&.open
|
||||||
|
transform: translate3d(-100%, 0, 0)
|
||||||
|
|
||||||
& > .mobile_author_icon
|
& > .mobile_author_icon
|
||||||
padding: 1.3rem 1.5rem 0
|
padding: 1.3rem 1.5rem 0
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|||||||
@@ -291,9 +291,6 @@ img
|
|||||||
iframe
|
iframe
|
||||||
margin: 0 0 1rem
|
margin: 0 0 1rem
|
||||||
|
|
||||||
& > .page-title
|
|
||||||
margin-top: .4rem
|
|
||||||
|
|
||||||
.post-outdate-notice
|
.post-outdate-notice
|
||||||
position: relative
|
position: relative
|
||||||
margin: 0 0 1rem
|
margin: 0 0 1rem
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#vcomment
|
#vcomment
|
||||||
font-size: 1.15em
|
font-size: 1.1em
|
||||||
|
|
||||||
.vbtn
|
.vbtn
|
||||||
border: none
|
border: none
|
||||||
@@ -13,6 +13,9 @@
|
|||||||
textarea
|
textarea
|
||||||
background: url(hexo-config('valine.bg')) 100% 100% no-repeat
|
background: url(hexo-config('valine.bg')) 100% 100% no-repeat
|
||||||
|
|
||||||
|
&:focus
|
||||||
|
background: none
|
||||||
|
|
||||||
.vimg
|
.vimg
|
||||||
transition: all .3s
|
transition: all .3s
|
||||||
|
|
||||||
|
|||||||
@@ -43,4 +43,8 @@ if hexo-config('aside.position') == 'left'
|
|||||||
+minWidth900()
|
+minWidth900()
|
||||||
.layout_page
|
.layout_page
|
||||||
& > div:first-child
|
& > div:first-child
|
||||||
order: 2
|
order: 2
|
||||||
|
|
||||||
|
#page
|
||||||
|
h1.page-title
|
||||||
|
margin-top: .4rem
|
||||||
@@ -186,7 +186,7 @@ $(function () {
|
|||||||
* 首頁top_img底下的箭頭
|
* 首頁top_img底下的箭頭
|
||||||
*/
|
*/
|
||||||
const scrollDownInIndex = () => {
|
const scrollDownInIndex = () => {
|
||||||
$('#scroll_down').on('click', function () {
|
$('#scroll-down').on('click', function () {
|
||||||
btf.scrollToDest('#content-inner')
|
btf.scrollToDest('#content-inner')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -656,22 +656,6 @@ $(function () {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 百度推送
|
|
||||||
*/
|
|
||||||
const pushToBaidu = () => {
|
|
||||||
const bp = document.createElement('script')
|
|
||||||
const curProtocol = window.location.protocol.split(':')[0]
|
|
||||||
if (curProtocol === 'https') {
|
|
||||||
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'
|
|
||||||
} else {
|
|
||||||
bp.src = 'http://push.zhanzhang.baidu.com/push.js'
|
|
||||||
}
|
|
||||||
bp.dataset.pjax = ''
|
|
||||||
const s = document.getElementsByTagName('script')[0]
|
|
||||||
s.parentNode.insertBefore(bp, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tag-hide
|
* tag-hide
|
||||||
*/
|
*/
|
||||||
@@ -789,7 +773,6 @@ $(function () {
|
|||||||
clickFnOfSubMenu()
|
clickFnOfSubMenu()
|
||||||
GLOBAL_CONFIG.islazyload && lazyloadImg()
|
GLOBAL_CONFIG.islazyload && lazyloadImg()
|
||||||
GLOBAL_CONFIG.copyright !== undefined && addCopyright()
|
GLOBAL_CONFIG.copyright !== undefined && addCopyright()
|
||||||
GLOBAL_CONFIG.baiduPush && pushToBaidu()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.refreshFn = function () {
|
window.refreshFn = function () {
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ $(function () {
|
|||||||
return {
|
return {
|
||||||
title: $('title', this).text(),
|
title: $('title', this).text(),
|
||||||
content: $('content', this).text(),
|
content: $('content', this).text(),
|
||||||
url: $('url', this).text()
|
url: GLOBAL_CONFIG.root + $('url', this).text()
|
||||||
}
|
}
|
||||||
}).get()
|
}).get()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user