布局优化替换CDN

This commit is contained in:
结发受长生
2019-06-13 23:08:29 +08:00
parent 46d2216d53
commit 4f5f3c2b2d
10 changed files with 17 additions and 14 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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>
+2 -4
View File
@@ -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>&nbsp;<%= 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 %>&nbsp;<i class="icon icon-arrow-circle-o-right"></i>
</div>
</a>
<% } %>
+2 -2
View File
@@ -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{
+3
View File
@@ -87,6 +87,9 @@ body.night {
}
#mobile-nav {
background: none;
.overlay {
display: none;
}
}
.overlay {
background: none;
+1 -1
View File
@@ -57,7 +57,7 @@
.waifu-tool {
color: $colorA;
top: 100px;
right: 10px;
right: 60px;
font-size: 14px;
position: absolute;
span {
+1
View File
@@ -59,6 +59,7 @@ new Vue({
}
},
linkMouseover(name) {
if(name === 'waifu' && waifuTipTimer) return
this.showMessage(waifuTips.mouseover[name], 3000)
},
toolsClick(name) {
+1 -1
View File
@@ -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'
}
}