布局优化➕替换CDN
This commit is contained in:
@@ -71,7 +71,7 @@ google_analytics: ''
|
||||
favicon: /favicon.ico
|
||||
|
||||
#你的头像url
|
||||
avatar: https://blog-cdn.nos-eastchina1.126.net/resources/avatar.jpg
|
||||
avatar: https://cdn.colorfulsweet.site/resources/avatar.jpg
|
||||
|
||||
#是否开启分享
|
||||
share_jia: true
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="waifu" @mouseover="waifu.showTools=true" @mouseout="waifu.showTools=false">
|
||||
<div class="waifu-tips" v-text="waifu.tip" v-bind:style="{opacity: waifu.tipOpacity}"></div>
|
||||
<div style="width: 250px;overflow: hidden;">
|
||||
<canvas id="live2d" width="650" height="600" @mouseover="linkMouseover('waifu')" style="width: 325px;height: 300px;"></canvas>
|
||||
<div>
|
||||
<canvas id="live2d" width="520" height="480" @mouseover="linkMouseover('waifu')" style="width: 260px;height: 240px;"></canvas>
|
||||
</div>
|
||||
<div class="waifu-tool" v-show="waifu.showTools">
|
||||
<span class="icon icon-eye" @mouseover="linkMouseover('tools.eye')" @click="toolsClick('tools.eye')"></span>
|
||||
|
||||
@@ -3,16 +3,14 @@
|
||||
<% if (post.prev){ %>
|
||||
<a href="<%- url_for(post.prev.path) %>" id="article-nav-newer" class="article-nav-link-wrap">
|
||||
<div class="article-nav-title">
|
||||
<i class="icon icon-arrow-circle-o-left"></i>
|
||||
<%= post.prev.title %>
|
||||
<i class="icon icon-arrow-circle-o-left"></i> <%= post.prev.title %>
|
||||
</div>
|
||||
</a>
|
||||
<% } %>
|
||||
<% if (post.next){ %>
|
||||
<a href="<%- url_for(post.next.path) %>" id="article-nav-older" class="article-nav-link-wrap">
|
||||
<div class="article-nav-title">
|
||||
<%= post.next.title %>
|
||||
<i class="icon icon-arrow-circle-o-right"></i>
|
||||
<%= post.next.title %> <i class="icon icon-arrow-circle-o-right"></i>
|
||||
</div>
|
||||
</a>
|
||||
<% } %>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
}
|
||||
.overlay{
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
height: 130px;
|
||||
position: absolute;
|
||||
background: #4d4d4d;
|
||||
@extend %trans;
|
||||
@@ -20,7 +20,7 @@
|
||||
.intrude-less {
|
||||
width: 76%;
|
||||
text-align: center;
|
||||
margin: 82px auto 0;
|
||||
margin: 62px auto 0;
|
||||
}
|
||||
|
||||
#header{
|
||||
|
||||
@@ -87,6 +87,9 @@ body.night {
|
||||
}
|
||||
#mobile-nav {
|
||||
background: none;
|
||||
.overlay {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.overlay {
|
||||
background: none;
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
.waifu-tool {
|
||||
color: $colorA;
|
||||
top: 100px;
|
||||
right: 10px;
|
||||
right: 60px;
|
||||
font-size: 14px;
|
||||
position: absolute;
|
||||
span {
|
||||
|
||||
@@ -59,6 +59,7 @@ new Vue({
|
||||
}
|
||||
},
|
||||
linkMouseover(name) {
|
||||
if(name === 'waifu' && waifuTipTimer) return
|
||||
this.showMessage(waifuTips.mouseover[name], 3000)
|
||||
},
|
||||
toolsClick(name) {
|
||||
|
||||
@@ -16,7 +16,7 @@ export default {
|
||||
init() {
|
||||
if(!isMobile && isSupportWebGL()) {
|
||||
// 加载live2d模型
|
||||
loadlive2d('live2d', 'https://blog-cdn.nos-eastchina1.126.net/live2D/Kesshouban/model.json')
|
||||
loadlive2d('live2d', window.themeConfig.pictureCdn + '/live2D/Kesshouban/model.json')
|
||||
document.querySelector('.waifu').style.display = 'block'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user