This commit is contained in:
@@ -139,9 +139,11 @@ function ADD_TOUCH_ICON() {
|
||||
git clone https://githubfast.com/stevenjoezhang/live2d-widget.git /hexo/node_modules/hexo-theme-async/source/live2d-widget
|
||||
sed -i '1i<script src="/live2d-widget/dist/autoload.js"></script>' /hexo/node_modules/hexo-theme-async/layout/_partial/head.ejs
|
||||
# sed -i '1i<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css">' /hexo/node_modules/hexo-theme-async/layout/_partial/head.ejs
|
||||
# sed -i 's/z-index: 1;/z-index: 9999;/g' /hexo/node_modules/hexo-theme-async/source/live2d-widget/dist/waifu.css
|
||||
# sed -i 's/e=1/e=5/g' /hexo/node_modules/hexo-theme-async/source/live2d-widget/dist/waifu-tips.js
|
||||
mv /live2d-widget/autoload.js /hexo/node_modules/hexo-theme-async/source/live2d-widget/dist/autoload.js
|
||||
# 配置本地话
|
||||
mv /app/autoload.js /hexo/node_modules/hexo-theme-async/source/live2d-widget/dist/autoload.js
|
||||
# 修改看板娘层级
|
||||
sed -i 's/z-index: 1;/z-index: 9999;/g' /hexo/node_modules/hexo-theme-async/source/live2d-widget/dist/waifu.css
|
||||
}
|
||||
|
||||
# 音乐位置 : 符号去除
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,269 +0,0 @@
|
||||
#waifu-toggle {
|
||||
background-color: #fa0;
|
||||
border-radius: 5px;
|
||||
bottom: 66px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
left: 0;
|
||||
margin-left: -100px;
|
||||
padding: 5px;
|
||||
position: fixed;
|
||||
transition: margin-left 1s;
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
#waifu-toggle.waifu-toggle-active {
|
||||
margin-left: -50px;
|
||||
}
|
||||
|
||||
#waifu-toggle.waifu-toggle-active:hover {
|
||||
margin-left: -30px;
|
||||
}
|
||||
|
||||
#waifu-toggle svg {
|
||||
fill: #fff;
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
#waifu {
|
||||
bottom: -500px;
|
||||
left: 0;
|
||||
position: fixed;
|
||||
transform: translateY(25px);
|
||||
transition: transform .3s ease-in-out, bottom 3s ease-in-out;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#waifu.waifu-active {
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
#waifu.waifu-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#waifu:hover {
|
||||
transform: translateY(20px);
|
||||
}
|
||||
|
||||
#waifu-tips {
|
||||
animation: waifu-shake 50s ease-in-out 5s infinite;
|
||||
background-color: rgba(236, 217, 188, .5);
|
||||
border: 1px solid rgba(224, 186, 140, .62);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 3px 15px 2px rgba(191, 158, 118, .2);
|
||||
font-size: 14px;
|
||||
line-height: 24px;
|
||||
margin: -30px 20px;
|
||||
min-height: 70px;
|
||||
opacity: 0;
|
||||
overflow: hidden;
|
||||
padding: 5px 10px;
|
||||
position: absolute;
|
||||
text-overflow: ellipsis;
|
||||
transition: opacity 1s;
|
||||
width: 250px;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
#waifu-tips.waifu-tips-active {
|
||||
opacity: 1;
|
||||
transition: opacity .2s;
|
||||
}
|
||||
|
||||
#waifu-tips span {
|
||||
color: #0099cc;
|
||||
}
|
||||
|
||||
#live2d {
|
||||
cursor: grab;
|
||||
height: 300px;
|
||||
position: relative;
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
#live2d:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
#waifu-tool {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
right: -10px;
|
||||
top: 70px;
|
||||
transition: opacity 1s;
|
||||
}
|
||||
|
||||
#waifu:hover #waifu-tool {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#waifu-tool svg {
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
fill: #7b8c9d;
|
||||
height: 25px;
|
||||
transition: fill .3s;
|
||||
}
|
||||
|
||||
#waifu-tool svg:hover {
|
||||
fill: #0684bd; /* #34495e */
|
||||
}
|
||||
|
||||
@keyframes waifu-shake {
|
||||
2% {
|
||||
transform: translate(.5px, -1.5px) rotate(-.5deg);
|
||||
}
|
||||
4% {
|
||||
transform: translate(.5px, 1.5px) rotate(1.5deg);
|
||||
}
|
||||
6% {
|
||||
transform: translate(1.5px, 1.5px) rotate(1.5deg);
|
||||
}
|
||||
8% {
|
||||
transform: translate(2.5px, 1.5px) rotate(.5deg);
|
||||
}
|
||||
10% {
|
||||
transform: translate(.5px, 2.5px) rotate(.5deg);
|
||||
}
|
||||
12% {
|
||||
transform: translate(1.5px, 1.5px) rotate(.5deg);
|
||||
}
|
||||
14% {
|
||||
transform: translate(.5px, .5px) rotate(.5deg);
|
||||
}
|
||||
16% {
|
||||
transform: translate(-1.5px, -.5px) rotate(1.5deg);
|
||||
}
|
||||
18% {
|
||||
transform: translate(.5px, .5px) rotate(1.5deg);
|
||||
}
|
||||
20% {
|
||||
transform: translate(2.5px, 2.5px) rotate(1.5deg);
|
||||
}
|
||||
22% {
|
||||
transform: translate(.5px, -1.5px) rotate(1.5deg);
|
||||
}
|
||||
24% {
|
||||
transform: translate(-1.5px, 1.5px) rotate(-.5deg);
|
||||
}
|
||||
26% {
|
||||
transform: translate(1.5px, .5px) rotate(1.5deg);
|
||||
}
|
||||
28% {
|
||||
transform: translate(-.5px, -.5px) rotate(-.5deg);
|
||||
}
|
||||
30% {
|
||||
transform: translate(1.5px, -.5px) rotate(-.5deg);
|
||||
}
|
||||
32% {
|
||||
transform: translate(2.5px, -1.5px) rotate(1.5deg);
|
||||
}
|
||||
34% {
|
||||
transform: translate(2.5px, 2.5px) rotate(-.5deg);
|
||||
}
|
||||
36% {
|
||||
transform: translate(.5px, -1.5px) rotate(.5deg);
|
||||
}
|
||||
38% {
|
||||
transform: translate(2.5px, -.5px) rotate(-.5deg);
|
||||
}
|
||||
40% {
|
||||
transform: translate(-.5px, 2.5px) rotate(.5deg);
|
||||
}
|
||||
42% {
|
||||
transform: translate(-1.5px, 2.5px) rotate(.5deg);
|
||||
}
|
||||
44% {
|
||||
transform: translate(-1.5px, 1.5px) rotate(.5deg);
|
||||
}
|
||||
46% {
|
||||
transform: translate(1.5px, -.5px) rotate(-.5deg);
|
||||
}
|
||||
48% {
|
||||
transform: translate(2.5px, -.5px) rotate(.5deg);
|
||||
}
|
||||
50% {
|
||||
transform: translate(-1.5px, 1.5px) rotate(.5deg);
|
||||
}
|
||||
52% {
|
||||
transform: translate(-.5px, 1.5px) rotate(.5deg);
|
||||
}
|
||||
54% {
|
||||
transform: translate(-1.5px, 1.5px) rotate(.5deg);
|
||||
}
|
||||
56% {
|
||||
transform: translate(.5px, 2.5px) rotate(1.5deg);
|
||||
}
|
||||
58% {
|
||||
transform: translate(2.5px, 2.5px) rotate(.5deg);
|
||||
}
|
||||
60% {
|
||||
transform: translate(2.5px, -1.5px) rotate(1.5deg);
|
||||
}
|
||||
62% {
|
||||
transform: translate(-1.5px, .5px) rotate(1.5deg);
|
||||
}
|
||||
64% {
|
||||
transform: translate(-1.5px, 1.5px) rotate(1.5deg);
|
||||
}
|
||||
66% {
|
||||
transform: translate(.5px, 2.5px) rotate(1.5deg);
|
||||
}
|
||||
68% {
|
||||
transform: translate(2.5px, -1.5px) rotate(1.5deg);
|
||||
}
|
||||
70% {
|
||||
transform: translate(2.5px, 2.5px) rotate(.5deg);
|
||||
}
|
||||
72% {
|
||||
transform: translate(-.5px, -1.5px) rotate(1.5deg);
|
||||
}
|
||||
74% {
|
||||
transform: translate(-1.5px, 2.5px) rotate(1.5deg);
|
||||
}
|
||||
76% {
|
||||
transform: translate(-1.5px, 2.5px) rotate(1.5deg);
|
||||
}
|
||||
78% {
|
||||
transform: translate(-1.5px, 2.5px) rotate(.5deg);
|
||||
}
|
||||
80% {
|
||||
transform: translate(-1.5px, .5px) rotate(-.5deg);
|
||||
}
|
||||
82% {
|
||||
transform: translate(-1.5px, .5px) rotate(-.5deg);
|
||||
}
|
||||
84% {
|
||||
transform: translate(-.5px, .5px) rotate(1.5deg);
|
||||
}
|
||||
86% {
|
||||
transform: translate(2.5px, 1.5px) rotate(.5deg);
|
||||
}
|
||||
88% {
|
||||
transform: translate(-1.5px, .5px) rotate(1.5deg);
|
||||
}
|
||||
90% {
|
||||
transform: translate(-1.5px, -.5px) rotate(-.5deg);
|
||||
}
|
||||
92% {
|
||||
transform: translate(-1.5px, -1.5px) rotate(1.5deg);
|
||||
}
|
||||
94% {
|
||||
transform: translate(.5px, .5px) rotate(-.5deg);
|
||||
}
|
||||
96% {
|
||||
transform: translate(2.5px, -.5px) rotate(-.5deg);
|
||||
}
|
||||
98% {
|
||||
transform: translate(-1.5px, -1.5px) rotate(-.5deg);
|
||||
}
|
||||
0%, 100% {
|
||||
transform: translate(0, 0) rotate(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user