fix(single): match reference article action bar 1:1
The action bar used a locally invented pill-chip style that overrode the reference theme's 80px icon-over-text columns, and the JS toggled a class no stylesheet targeted — so likes/favorites showed no selected state at all. - restore reference markup: <svg class="icon"> + <text>/<count> and the actived class, with data-stat-count/data-base-count preserved - toggle actived plus a transient action-animation so the lovestar keyframes finally reach the DOM - drop the CSS overrides and now-dead action-btn/.action-btn--reward and .post-actions-card rules; main.css already carried the reference rules the overrides were shadowing
This commit is contained in:
1 parent
1ce8e263c3
commit
8d16ce6e02
13 files changed
+43
-255
No files matched your search
@@ -1,14 +1,6 @@
|
||||
/* ============================================================
|
||||
* 8. 打赏按钮
|
||||
* 8. 打赏弹窗
|
||||
* ============================================================ */
|
||||
.action-btn--reward {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.action-btn--reward.is-active {
|
||||
color: var(--color-warning, #F59E0B);
|
||||
}
|
||||
|
||||
.reward-modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
|
||||
Reference in new issue
Block a user