广场轮播:书名号样式补上(rbk)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-07 05:49:00 +00:00
parent 9c0c9f4c0e
commit 67111af060

View File

@@ -497,7 +497,9 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
.rwi img{flex:none;width:24px;height:24px;border-radius:50%;object-fit:cover;background:#FFE3D3;box-shadow:0 0 0 1.5px #fff,0 0 0 2.5px #FFD2BD}
/* 11-07 用户:名字、「入选精选」都完整显示不省略,标题按剩下的宽度自动截 */
.rwi b{flex:none;font-weight:800;color:#5A3226;white-space:nowrap}
.rwi span{flex:0 1 auto;min-width:2em;margin:0 -7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 书名号《》放在标题外面,标题太长截成…时右边的》也留着 */
.rwi .rbk{flex:none;font-style:normal;color:#8A6A5E;margin:0 -7px 0 0}.rwi .rbk.r{margin:0 0 0 -7px}
.rwi span{flex:0 1 auto;min-width:2em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rwi em{flex:none;padding:0 7px;height:20px;line-height:20px;border-radius:99px;font-style:normal;font-size:10.5px;font-weight:800;color:#E8343F;background:#FFEDEA;box-shadow:inset 0 0 0 1px #FFD0C8}
.rwb{flex:none;height:26px;padding:0 10px;border:0;border-radius:99px;background:linear-gradient(135deg,#FF8A65,#F2553A);color:#fff;font:inherit;font-size:11.5px;font-weight:800}
.gtp{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:2px 14px 4px;padding:10px 12px;border-radius:14px;background:#fff;box-shadow:0 6px 16px -14px rgba(120,60,40,.35)}
@@ -1682,7 +1684,7 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff}
var L = rwList(); if (!L.length) return '';
var n = L[k % L.length];
return '<button type="button" class="rwi" data-id="' + esc(n.id) + '"><img src="' + esc(avOf(n)) + '" alt="" loading="lazy"><b>' + esc(n.author) + '</b>' +
'<i class="bk">《</i><span>' + esc(n.title) + '</span><i class="bk r">》</i>' + (n.real ? '<em>上了广场</em>' : '<em>入选精选</em>') + '</button>'; /* 11-07 用户:「入选精选」放到文章右边 */
'<i class="rbk">《</i><span>' + esc(n.title) + '</span><i class="rbk r">》</i>' + (n.real ? '<em>上了广场</em>' : '<em>入选精选</em>') + '</button>'; /* 11-07 用户:「入选精选」放到文章右边 */
}
function rwRun() {
clearInterval(rwT); rwI = 0;