live2d-widget/waifu.css

307 lines
4.8 KiB
CSS
Raw Permalink Normal View History

2019-11-12 17:27:00 +08:00
#waifu-toggle {
background-color: #fa0;
border-radius: 5px;
2019-12-04 23:29:51 +08:00
bottom: 66px;
color: #fff;
cursor: pointer;
2019-11-12 17:27:00 +08:00
font-size: 12px;
2019-12-04 23:29:51 +08:00
left: 0;
2019-12-29 20:12:58 +08:00
margin-left: -100px;
2019-12-04 23:29:51 +08:00
padding: 5px 2px 5px 5px;
position: fixed;
2019-12-29 20:12:58 +08:00
transition: margin-left 1s;
2019-11-12 17:27:00 +08:00
width: 60px;
2019-12-04 23:29:51 +08:00
writing-mode: vertical-rl;
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-12-29 20:12:58 +08:00
#waifu-toggle.waifu-toggle-active {
margin-left: -50px;
}
#waifu-toggle.waifu-toggle-active:hover {
margin-left: -30px;
}
2019-11-12 17:27:00 +08:00
#waifu {
bottom: -1000px;
left: 0;
line-height: 0;
2020-05-21 10:14:33 +08:00
margin-bottom: -10px;
2019-12-04 23:29:51 +08:00
position: fixed;
2019-11-12 17:27:00 +08:00
transform: translateY(3px);
2019-12-29 19:40:35 +08:00
transition: transform .3s ease-in-out, bottom 3s ease-in-out;
2019-12-04 23:29:51 +08:00
z-index: 1;
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
#waifu:hover {
transform: translateY(0);
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
#waifu-tips {
2019-12-04 23:29:51 +08:00
animation: shake 50s ease-in-out 5s infinite;
background-color: rgba(236, 217, 188, .5);
border: 1px solid rgba(224, 186, 140, .62);
2019-11-12 17:27:00 +08:00
border-radius: 12px;
2019-12-04 23:29:51 +08:00
box-shadow: 0 3px 15px 2px rgba(191, 158, 118, .2);
2019-11-12 17:27:00 +08:00
font-size: 14px;
line-height: 24px;
2019-12-04 23:29:51 +08:00
margin: -30px 20px;
min-height: 70px;
opacity: 0;
2019-11-12 17:27:00 +08:00
overflow: hidden;
2019-12-04 23:29:51 +08:00
padding: 5px 10px;
2019-11-12 17:27:00 +08:00
position: absolute;
2019-12-04 23:29:51 +08:00
text-overflow: ellipsis;
2019-12-29 23:04:20 +08:00
transition: opacity 1s;
2019-12-04 23:29:51 +08:00
width: 250px;
word-break: break-all;
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-12-29 23:04:20 +08:00
#waifu-tips.waifu-tips-active {
opacity: 1;
transition: opacity .2s;
}
2019-12-26 11:38:44 +08:00
#waifu-tips span {
color: #0099cc;
}
2019-11-12 17:27:00 +08:00
#waifu #live2d {
cursor: grab;
2020-04-08 17:41:28 +08:00
height: 300px;
2019-12-04 23:29:51 +08:00
position: relative;
2020-04-08 17:41:28 +08:00
width: 300px;
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
#waifu #live2d:active {
cursor: grabbing;
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
#waifu-tool {
color: #aaa;
opacity: 0;
2019-12-04 23:29:51 +08:00
position: absolute;
right: -10px;
top: 70px;
2019-11-12 17:27:00 +08:00
transition: opacity 1s;
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
#waifu:hover #waifu-tool {
opacity: 1;
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
#waifu-tool span {
2020-05-15 00:47:54 +08:00
color: #7b8c9d;
2019-11-12 17:27:00 +08:00
cursor: pointer;
2019-12-04 23:29:51 +08:00
display: block;
2019-11-12 17:27:00 +08:00
line-height: 30px;
text-align: center;
transition: color .3s;
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
#waifu-tool span:hover {
2019-12-04 23:29:51 +08:00
color: #0684bd; /* #34495e */
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
@keyframes shake {
2% {
2019-12-04 23:29:51 +08:00
transform: translate(.5px, -1.5px) rotate(-.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
4% {
2019-12-04 23:29:51 +08:00
transform: translate(.5px, 1.5px) rotate(1.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
6% {
transform: translate(1.5px, 1.5px) rotate(1.5deg);
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
8% {
2019-12-04 23:29:51 +08:00
transform: translate(2.5px, 1.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
10% {
2019-12-04 23:29:51 +08:00
transform: translate(.5px, 2.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
12% {
2019-12-04 23:29:51 +08:00
transform: translate(1.5px, 1.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
14% {
2019-12-04 23:29:51 +08:00
transform: translate(.5px, .5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
16% {
2019-12-04 23:29:51 +08:00
transform: translate(-1.5px, -.5px) rotate(1.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
18% {
2019-12-04 23:29:51 +08:00
transform: translate(.5px, .5px) rotate(1.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
20% {
transform: translate(2.5px, 2.5px) rotate(1.5deg);
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
22% {
2019-12-04 23:29:51 +08:00
transform: translate(.5px, -1.5px) rotate(1.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
24% {
2019-12-04 23:29:51 +08:00
transform: translate(-1.5px, 1.5px) rotate(-.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
26% {
2019-12-04 23:29:51 +08:00
transform: translate(1.5px, .5px) rotate(1.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
28% {
2019-12-04 23:29:51 +08:00
transform: translate(-.5px, -.5px) rotate(-.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
30% {
2019-12-04 23:29:51 +08:00
transform: translate(1.5px, -.5px) rotate(-.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
32% {
transform: translate(2.5px, -1.5px) rotate(1.5deg);
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
34% {
2019-12-04 23:29:51 +08:00
transform: translate(2.5px, 2.5px) rotate(-.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
36% {
2019-12-04 23:29:51 +08:00
transform: translate(.5px, -1.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
38% {
2019-12-04 23:29:51 +08:00
transform: translate(2.5px, -.5px) rotate(-.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
40% {
2019-12-04 23:29:51 +08:00
transform: translate(-.5px, 2.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
42% {
2019-12-04 23:29:51 +08:00
transform: translate(-1.5px, 2.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
44% {
2019-12-04 23:29:51 +08:00
transform: translate(-1.5px, 1.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
46% {
2019-12-04 23:29:51 +08:00
transform: translate(1.5px, -.5px) rotate(-.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
48% {
2019-12-04 23:29:51 +08:00
transform: translate(2.5px, -.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
50% {
2019-12-04 23:29:51 +08:00
transform: translate(-1.5px, 1.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
52% {
2019-12-04 23:29:51 +08:00
transform: translate(-.5px, 1.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
54% {
2019-12-04 23:29:51 +08:00
transform: translate(-1.5px, 1.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
56% {
2019-12-04 23:29:51 +08:00
transform: translate(.5px, 2.5px) rotate(1.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
58% {
2019-12-04 23:29:51 +08:00
transform: translate(2.5px, 2.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
60% {
transform: translate(2.5px, -1.5px) rotate(1.5deg);
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
62% {
2019-12-04 23:29:51 +08:00
transform: translate(-1.5px, .5px) rotate(1.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
64% {
transform: translate(-1.5px, 1.5px) rotate(1.5deg);
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
66% {
2019-12-04 23:29:51 +08:00
transform: translate(.5px, 2.5px) rotate(1.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
68% {
transform: translate(2.5px, -1.5px) rotate(1.5deg);
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
70% {
2019-12-04 23:29:51 +08:00
transform: translate(2.5px, 2.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
72% {
2019-12-04 23:29:51 +08:00
transform: translate(-.5px, -1.5px) rotate(1.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
74% {
transform: translate(-1.5px, 2.5px) rotate(1.5deg);
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
76% {
transform: translate(-1.5px, 2.5px) rotate(1.5deg);
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
78% {
2019-12-04 23:29:51 +08:00
transform: translate(-1.5px, 2.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
80% {
2019-12-04 23:29:51 +08:00
transform: translate(-1.5px, .5px) rotate(-.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
82% {
2019-12-04 23:29:51 +08:00
transform: translate(-1.5px, .5px) rotate(-.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
84% {
2019-12-04 23:29:51 +08:00
transform: translate(-.5px, .5px) rotate(1.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
86% {
2019-12-04 23:29:51 +08:00
transform: translate(2.5px, 1.5px) rotate(.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
88% {
2019-12-04 23:29:51 +08:00
transform: translate(-1.5px, .5px) rotate(1.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
90% {
2019-12-04 23:29:51 +08:00
transform: translate(-1.5px, -.5px) rotate(-.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
92% {
transform: translate(-1.5px, -1.5px) rotate(1.5deg);
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
94% {
2019-12-04 23:29:51 +08:00
transform: translate(.5px, .5px) rotate(-.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
96% {
2019-12-04 23:29:51 +08:00
transform: translate(2.5px, -.5px) rotate(-.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
98% {
2019-12-04 23:29:51 +08:00
transform: translate(-1.5px, -1.5px) rotate(-.5deg);
2019-11-12 17:27:00 +08:00
}
2019-12-04 23:29:51 +08:00
2019-11-12 17:27:00 +08:00
0%, 100% {
2019-12-04 23:29:51 +08:00
transform: translate(0, 0) rotate(0);
2019-11-12 17:27:00 +08:00
}
}