🏷️ 2.3.0發佈

This commit is contained in:
Jerry
2020-04-26 23:29:38 +08:00
Unverified
parent 796b8e6df4
commit 0d56db50e4
16 changed files with 127 additions and 87 deletions

View File

@@ -192,6 +192,10 @@ img:not([src])
.img-alt
margin: -.5rem 0 .5rem
color: $font-black
&:hover
text-decoration: none !important
// hexo tag video
.video-container

View File

@@ -147,20 +147,20 @@
.aside-post_title
height: auto
.card-archives ul.archive-list,
.card-categories ul.aside-category-list
.card-archives ul.card-archive-list,
.card-categories ul.card-category-list
margin: 0
padding: .2rem 0 0
list-style: none
.card-archives ul.archive-list > .archive-list-item,
.card-categories ul.aside-category-list > .aside-category-list-item
padding: .2rem 1rem
.card-archives ul.card-archive-list > .card-archive-list-item,
.card-categories ul.card-category-list > .card-category-list-item
padding: .15rem 1rem
cursor: pointer
transition: all .3s
transition: all .5s
&:hover
padding: .2rem .85rem
padding: .15rem .85rem
background-color: $light-blue
a
@@ -180,8 +180,18 @@
width: 20%
text-align: right
&.more
span
padding-right: .3rem
width: auto !important
transition: .5s
&:hover
span
padding-right: .6rem
.card-categories
.aside-category-list
.card-category-list
&.child
padding: 0 0 0 1.2rem

View File

@@ -159,8 +159,8 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
border-top: 13px solid lighten(#121212, 10) !important
.md-links-item:before,
.aside-category-list-item:hover,
.archive-list-item:hover,
.card-category-list-item:hover,
.card-archive-list-item:hover,
#bookmark-it
background-color: lighten(#121212, 10) !important
@@ -177,11 +177,11 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
.headline,
.length_num,
.aside-post_title,
.aside-category-list-link,
.archive-list-link,
.card-category-list-link,
.card-archive-list-link,
.social-icon,
.aside-category-list-item-more,
.archive-list-link-more
.card-category-list-link-more,
.card-archive-list-link-more
color: alpha(#FFFFFF, .6) !important
.button--animated:before
@@ -190,7 +190,8 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
#post-meta,
#post-meta a,
#footer-wrap,
#footer-wrap a
#footer-wrap a,
.img-alt
color: alpha(#FFFFFF, .6) !important
.posttitle,
@@ -286,9 +287,6 @@ if hexo-config('darkmode.enable') || hexo-config('display_mode') == 'dark'
if hexo-config('valine') && hexo-config('valine.enable')
#vcomment
.vsys
background: #2c2c2c !important
.vbtn,
.vat
border: 1px solid alpha(#FFFFFF, .6)

View File

@@ -362,6 +362,21 @@ $(function () {
}
}
/**
* PhotoFigcaption
*/
function addPhotoFigcaption () {
var images = $('#article-container img')
images.each(function (i, o) {
var $this = $(o)
if ($this.attr('alt')) {
var t = $('<div class="img-alt is-center">' + $this.attr('alt') + '</div>')
$this.after(t)
}
})
}
if (GLOBAL_CONFIG.isPhotoFigcaption) addPhotoFigcaption()
/**
* justified-gallery 圖庫排版
*/
@@ -518,8 +533,8 @@ $(function () {
}
var updateAnchor = function (anchor) {
if (window.history.replaceState && anchor !== window.location.hash) {
window.history.replaceState(undefined, undefined, anchor)
if (anchor !== window.location.hash) {
location.replace(window.location.href.split('#')[0] + anchor)
}
}
@@ -758,19 +773,4 @@ $(function () {
}
})
}
/**
* PhotoFigcaption
*/
function addPhotoFigcaption () {
var images = $('#article-container img')
images.each(function (i, o) {
var $this = $(o)
if ($this.attr('alt')) {
var t = $('<div class="img-alt is-center">' + $this.attr('alt') + '</div>')
$this.after(t)
}
})
}
if (GLOBAL_CONFIG.isPhotoFigcaption) addPhotoFigcaption()
})