广场轮播去掉「喜报」标;书名号放标题外,截断时》也保留
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -486,13 +486,10 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
|
||||
.rww .rwl{margin:0}
|
||||
/* 11-07 用户:祈福树下面「投稿被选中得 ¥30…」一条 → 改成轮播「哪些妈妈的笔记上了广场」:真实投稿(审核通过)排前,
|
||||
不够时用广场里点赞高的笔记补;只说「上了广场 / 入选精选」,不写某人领了多少钱。右边「我也投稿」= 原来的规则弹层 */
|
||||
.rwc{position:relative;display:flex;align-items:center;gap:9px;height:46px;padding:0 12px 0 7px;border-radius:15px;overflow:hidden;
|
||||
.rwc{position:relative;display:flex;align-items:center;gap:9px;height:46px;padding:0 12px 0 10px;border-radius:15px;overflow:hidden;
|
||||
background:linear-gradient(100deg,#FFF8F1 0%,#fff 38%);border:1px solid #FFE2D2;box-shadow:0 8px 20px -14px rgba(214,96,60,.45)}
|
||||
/* 11-07 用户:轮播要有设计感 → 左边金红「喜报」小标 + 白底卡;「入选精选」挪到标题右边做小标签 */
|
||||
/* 11-07 用户:轮播要有设计感 → 白底卡(「喜报」小标后来去掉了);「入选精选」挪到标题右边做小标签 */
|
||||
.rwc::after{content:"";position:absolute;right:-18px;top:-26px;width:70px;height:70px;border-radius:50%;background:radial-gradient(circle,rgba(255,196,150,.28),transparent 70%);pointer-events:none}
|
||||
.rwh{flex:none;display:flex;align-items:center;gap:3px;height:30px;padding:0 8px 0 7px;border-radius:10px;
|
||||
background:linear-gradient(135deg,#FF7A4D,#E8343F);color:#FFE7A8;font-size:12px;font-weight:900;letter-spacing:1px;box-shadow:inset 0 0 0 1px rgba(255,220,150,.45),0 3px 8px -3px rgba(232,52,63,.6)}
|
||||
.rwh svg{width:13px;height:13px;fill:#FFD86B}
|
||||
.rwv{position:relative;flex:1;min-width:0;height:46px;overflow:hidden}
|
||||
.rwi{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;gap:7px;height:46px;border:0;background:none;padding:0;font:inherit;text-align:left;color:#8A6A5E;font-size:12.5px;
|
||||
transition:transform .4s ease,opacity .4s ease}
|
||||
@@ -500,7 +497,7 @@ 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:1 1 auto;min-width:2em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||
.rwi span{flex:0 1 auto;min-width:2em;margin:0 -7px;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)}
|
||||
@@ -1685,7 +1682,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>' +
|
||||
'<span>《' + esc(n.title) + '》</span>' + (n.real ? '<em>上了广场</em>' : '<em>入选精选</em>') + '</button>'; /* 11-07 用户:「入选精选」放到文章右边 */
|
||||
'<i class="bk">《</i><span>' + esc(n.title) + '</span><i class="bk">》</i>' + (n.real ? '<em>上了广场</em>' : '<em>入选精选</em>') + '</button>'; /* 11-07 用户:「入选精选」放到文章右边 */
|
||||
}
|
||||
function rwRun() {
|
||||
clearInterval(rwT); rwI = 0;
|
||||
@@ -1708,7 +1705,7 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff}
|
||||
标签作为唯一入口(末尾加「全部话题 ›」);选中标签时标签下露出这一类的 2~3 个热门话题(用户同意);投稿奖励一行挪到「大家在聊」上面。
|
||||
话题本身不变:投稿选话题、帖子卡上的 #话题#、话题详情页照旧。分类视图(catF)仍是原来的热门话题列表。 */
|
||||
el.innerHTML = qifuHTML() +
|
||||
'<div class="rww"><div class="rwc"><span class="rwh"><svg viewBox="0 0 20 20" aria-hidden="true"><path d="M10 .5C10.9 7.4 12.6 9.1 19.5 10 12.6 10.9 10.9 12.6 10 19.5 9.1 12.6 7.4 10.9.5 10 7.4 9.1 9.1 7.4 10 .5Z"/></svg>喜报</span><div class="rwv" id="rwv">' + rwItem(0) + '</div></div></div>'; /* 11-07 用户:去掉礼物图标和「我也投稿」 */
|
||||
'<div class="rww"><div class="rwc"><div class="rwv" id="rwv">' + rwItem(0) + '</div></div></div>'; /* 11-07 用户:去掉礼物图标和「我也投稿」 */
|
||||
rwRun();
|
||||
fh.className = 'shtg';
|
||||
fh.innerHTML = '<div class="sh"><h2>大家在聊</h2><small>孕妈们的分享</small></div>' +
|
||||
|
||||
Reference in New Issue
Block a user