live2d-widget/waifu.css

294 lines
4.5 KiB
CSS
Raw Normal View History

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