-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththeme-maple.css
More file actions
142 lines (137 loc) · 5.87 KB
/
Copy paththeme-maple.css
File metadata and controls
142 lines (137 loc) · 5.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/* theme-maple.css — maple 專屬視覺 fx(不與其他主題共用,避免色彩污染)
* 生成自 scripts/gen-theme-fx.js(請勿手動修改;改完請重跑)
*/
:root{
--bp-on-color: #c54a0d;
--bp-on-glow: rgba(197,74,13,.55);
}
/* ── Power Card Glow:榮譽榜呼吸+掃光+角點+獎盃+CTA ── */
@keyframes maple-pcg-glow{
0%,100%{box-shadow:0 0 18px rgba(197,74,13,.2),0 0 0 1px rgba(197,74,13,.2) inset}
50% {box-shadow:0 0 36px #c54a0d,0 0 0 1.5px #c54a0d inset, 0 0 60px rgba(197,74,13,.2)}
}
@keyframes maple-pcg-sweep{
0%{transform:translateX(-150%) skewX(-25deg)}
100%{transform:translateX(250%) skewX(-25deg)}
}
@keyframes maple-pcg-cta-pulse{
0%,100%{transform:translateY(0);text-shadow:0 0 6px rgba(197,74,13,.2)}
50% {transform:translateY(-2px);text-shadow:0 0 14px #c54a0d,0 0 30px rgba(197,74,13,.2)}
}
@keyframes maple-pcg-arrow-bounce{
0%,100%{transform:translateY(0)}
50% {transform:translateY(3px)}
}
@keyframes maple-pcg-corner-blink{
0%,100%{opacity:.85}
50% {opacity:.25}
}
@keyframes maple-pcg-trophy-spin{
0%,100%{transform:rotate(-8deg) scale(1)}
50% {transform:rotate(8deg) scale(1.15)}
}
#maple-power-card{
position:relative;
padding:22px 22px 20px !important;
border-radius:14px !important;
animation:maple-pcg-glow 2.6s ease-in-out infinite;
overflow:hidden;
isolation:isolate;
}
#maple-power-card::before{
content:"";position:absolute;top:0;left:0;height:100%;width:35%;
background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent);
pointer-events:none;
animation:maple-pcg-sweep 3.8s ease-in-out infinite;
z-index:0;
}
#maple-power-card .mpc-title{
font-size:18px !important;letter-spacing:2.5px !important;
font-weight:800 !important;text-shadow:0 0 10px rgba(197,74,13,.2);
}
#maple-power-card .mpc-title-en{
font-size:11px !important;letter-spacing:3.5px !important;
}
#maple-power-card .mpc-mini{padding:9px 4px !important}
#maple-power-card .mpc-mini-lbl{font-size:11px !important;letter-spacing:.5px !important}
#maple-power-card .mpc-mini-val{
font-size:20px !important;font-weight:800 !important;
text-shadow:0 0 8px rgba(197,74,13,.2);
}
#maple-power-card .mpc-mini-val small{font-size:10px !important}
/* 角點+獎盃 — 由 power-card-glow.js 注入的 .pcg-corner / .pcg-trophy */
#maple-power-card .pcg-corner{
position:absolute;width:14px;height:14px;
border:2px solid #c54a0d;
pointer-events:none;z-index:1;
animation:maple-pcg-corner-blink 2.6s ease-in-out infinite;
}
#maple-power-card .pcg-corner.tl{top:6px;left:6px;border-right:none;border-bottom:none}
#maple-power-card .pcg-corner.tr{top:6px;right:6px;border-left:none;border-bottom:none;animation-delay:.65s}
#maple-power-card .pcg-corner.bl{bottom:6px;left:6px;border-right:none;border-top:none;animation-delay:1.3s}
#maple-power-card .pcg-corner.br{bottom:6px;right:6px;border-left:none;border-top:none;animation-delay:1.95s}
#maple-power-card .pcg-trophy{
position:absolute;top:-8px;right:14px;font-size:24px;line-height:1;
filter:drop-shadow(0 0 8px #c54a0d);
animation:maple-pcg-trophy-spin 1.6s ease-in-out infinite;
pointer-events:none;z-index:2;
}
#maple-power-card .pcg-cta{
display:flex;align-items:center;justify-content:center;gap:10px;
margin-top:14px;padding:10px 16px;
font-size:14px;font-weight:800;letter-spacing:2px;
color:#c54a0d;
background:linear-gradient(90deg,transparent,rgba(197,74,13,.2),transparent);
border-top:1px solid rgba(197,74,13,.2);border-bottom:1px solid rgba(197,74,13,.2);
border-radius:6px;text-transform:uppercase;
animation:maple-pcg-cta-pulse 1.6s ease-in-out infinite;
cursor:pointer;user-select:none;position:relative;z-index:1;
}
#maple-power-card .pcg-cta .arrow{
display:inline-block;font-size:18px;
animation:maple-pcg-arrow-bounce 1.1s ease-in-out infinite;
}
#maple-power-card .pcg-cta .star{
display:inline-block;
animation:maple-pcg-trophy-spin 1.6s ease-in-out infinite reverse;
}
#maple-power-card > *:not(.pcg-corner):not(.pcg-trophy){position:relative;z-index:1}
/* ── Card hover:使用 maple 主題色,不再 fallback 到橘色 ── */
.stat-card,.consistency-row,.quest-tile,.wq-tile,.seg-card,.activity-card,.act-card,
.am-cell,.am-lap,.am-itt-item{
transition:transform .22s cubic-bezier(.2,1,.4,1), border-color .2s ease,
box-shadow .25s ease, background-color .2s ease;
}
.stat-card:hover,.consistency-row:hover,.quest-tile:hover,.wq-tile:hover,
.seg-card:hover,.activity-card:hover,.act-card:hover,
.am-cell:hover,.am-lap:hover,.am-itt-item:hover{
transform:translateY(-2px);
border-color:#c54a0d !important;
box-shadow:0 6px 18px -4px rgba(0,0,0,.45),0 0 18px rgba(197,74,13,.2);
}
.section-title{position:relative;transition:color .2s ease,text-shadow .2s ease}
.section-title::after{
content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
background:linear-gradient(90deg,transparent,#c54a0d,transparent);
transform:scaleX(0);transform-origin:center;
transition:transform .35s cubic-bezier(.2,1,.4,1);
}
.section-title:hover{text-shadow:0 0 8px rgba(197,74,13,.2)}
.section-title:hover::after{transform:scaleX(1)}
.lap-strip:hover{
border-color:#c54a0d !important;transform:translateX(2px);
transition:all .2s ease;
}
@media (prefers-reduced-motion:reduce){
#maple-power-card,#maple-power-card::before,
#maple-power-card .pcg-corner,#maple-power-card .pcg-trophy,
#maple-power-card .pcg-cta,#maple-power-card .pcg-cta .arrow,#maple-power-card .pcg-cta .star,
.stat-card,.consistency-row,.quest-tile,.wq-tile,.seg-card,.activity-card,.act-card,
.section-title,.section-title::after,.lap-strip{animation:none;transition:none}
}
@media (max-width:560px){
#maple-power-card{padding:16px 14px 14px !important}
#maple-power-card .mpc-title{font-size:15px !important}
#maple-power-card .pcg-cta{font-size:12px;padding:8px 10px;letter-spacing:1.5px}
#maple-power-card .pcg-trophy{font-size:18px}
}