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
229 lines
4.8 KiB
CSS
229 lines
4.8 KiB
CSS
/* ===== Content Footer ===== */
|
|
.article-footer {
|
|
margin-top: 32px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid var(--color-line);
|
|
}
|
|
|
|
.article-copyright {
|
|
font-size: 13px;
|
|
color: var(--color-ink-4, var(--color-ink-4));
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.article-end-separator {
|
|
text-align: center;
|
|
margin: 16px 0;
|
|
position: relative;
|
|
}
|
|
|
|
.article-end-separator::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
right: 0;
|
|
height: 1px;
|
|
background: var(--color-line);
|
|
}
|
|
|
|
.article-end-separator span {
|
|
position: relative;
|
|
display: inline-block;
|
|
padding: 0 14px;
|
|
background: var(--surface-page);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--color-ink-4, var(--color-ink-4));
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.article-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
/* ===== Action Buttons Card ===== */
|
|
.post-actions-wrap {
|
|
position: relative;
|
|
text-align: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.post-actions-wrap > .post-actions {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.theme-dark .post-drop-meta__menu,
|
|
html.dark .post-drop-meta__menu {
|
|
background: var(--surface-1, #323335);
|
|
border-color: var(--color-line);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
.theme-dark .post-drop-meta__item,
|
|
html.dark .post-drop-meta__item {
|
|
color: var(--color-ink-2, #ccc);
|
|
}
|
|
|
|
.theme-dark .post-drop-meta__item:hover,
|
|
html.dark .post-drop-meta__item:hover {
|
|
background: rgba(255,255,255,0.06);
|
|
color: #fff;
|
|
}
|
|
|
|
/* ===== Author Card — 对齐 legacy 卡片容器 ===== */
|
|
/* 原 .author-box 卡片规则已删除:全站仅评论区使用 .author-box(无装饰 flex 行,
|
|
由 comments/layout.css 接管),文章作者条使用 .article-author-bar。 */
|
|
|
|
.single-metabox {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.post-drop-meta {
|
|
position: relative;
|
|
}
|
|
|
|
.post-drop-meta__menu {
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
right: 0;
|
|
min-width: 150px;
|
|
padding: 8px;
|
|
border-radius: var(--radius, 8px);
|
|
border: 1px solid var(--color-line);
|
|
background: var(--surface-page, #fff);
|
|
box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.12));
|
|
display: none;
|
|
z-index: 20;
|
|
}
|
|
|
|
.post-drop-meta.is-open .post-drop-meta__menu {
|
|
display: grid;
|
|
gap: 4px;
|
|
}
|
|
|
|
.article-header:has(.post-drop-meta.is-open) {
|
|
z-index: 30;
|
|
}
|
|
|
|
.post-drop-meta__item {
|
|
width: 100%;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
border: 0;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: var(--color-ink-2, var(--color-ink));
|
|
text-decoration: none;
|
|
font-size: 13px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.post-drop-meta__item:hover {
|
|
background: var(--color-line, rgba(50, 50, 50, 0.06));
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
.post-drop-meta__item i {
|
|
width: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ===== legacy single-metabox / author bar ===== */
|
|
.article-avatar .user-info {
|
|
width: 100%;
|
|
}
|
|
|
|
.article-avatar .avatar-img {
|
|
--this-size: 42px;
|
|
}
|
|
|
|
.article-avatar .avatar-img img,
|
|
.article-avatar .avatar {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.article-avatar .display-name {
|
|
font-weight: 600;
|
|
color: var(--key-color, #333);
|
|
}
|
|
|
|
.article-header .article-avatar .single-meta-row {
|
|
margin-top: 20px;
|
|
position: relative;
|
|
min-height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.article-header .article-avatar .single-meta-row > .line-form-line {
|
|
bottom: 50%;
|
|
}
|
|
|
|
.article-header .article-avatar .single-meta-row > .single-metabox {
|
|
position: relative;
|
|
inset: auto;
|
|
transform: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
.single-metabox {
|
|
right: 0;
|
|
font-size: 15px;
|
|
--meta-color: var(--muted-color, #777);
|
|
}
|
|
|
|
.single-metabox .post-metas {
|
|
background: var(--body-bg-color, #f5f5f5);
|
|
right: 0;
|
|
padding: 2px 6px;
|
|
border-radius: 100px;
|
|
color: var(--meta-color);
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0;
|
|
}
|
|
|
|
.single-metabox .post-metas item,
|
|
.single-metabox .post-metas .item {
|
|
margin: 0 6px;
|
|
font-size: 13px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.single-metabox .post-drop-meta {
|
|
position: relative;
|
|
display: inline-block;
|
|
--this-size: 1.73em;
|
|
--this-color: var(--meta-color);
|
|
--this-bg: var(--body-bg-color, #f5f5f5);
|
|
}
|
|
|
|
/* line-form-line owned by legacy-utilities.css — only context here */
|
|
.article-avatar .line-form-line {
|
|
display: block;
|
|
}
|
|
|
|
.article-tags br { flex-basis: 100%; width: 100%; content: ""; display: block; height: 0; }
|
|
.article-tags .but.c-blue { color: #2196f3; }
|
|
.article-tags .but.c-yellow { color: #f0ad4e; }
|
|
.article-tags .but.c-green { color: #5cb85c; }
|
|
.article-tags .but.c-purple { color: #9c27b0; }
|
|
.article-tags .but.c-red { color: #f44336; }
|