Files
wordpress-theme-aksrt/assets/css/frontend/comments/mobile-item.css
T
kate522 e1f176429b feat(comments): 评论区按 Zibll 1:1 全量复刻
- 评论项/表单/工具栏/筛选/分页/空状态 DOM 全部替换为 zibll 原始类名
  (li.comment、comt-main、comt-meta、list-inline、dropup 工具栏、
  theme-pagination/pagenav、post_ajax_loader 骨架等)
- 移植 zibll main.css L9412–9751 桌面 + 移动端评论样式,
  缺失基础组件(title-theme/dropdown-menu/line-form/tab-nav-theme 等)
  以 #comments 作用域补齐
- 删除全部 aksrt-comment__* 旧类名与旧样式,无兼容层
- JS 选择器对齐 zibll DOM:片段整块替换 #postcomments、骨架加载、
  跳页输入、prepend 插入、addComment onclick 剥离,
  移除 WP comment-reply enqueue 避免双 moveForm
- 表情资源替换为 zibll 全套 gif(内容逐字节一致,git 无差异)
- REST 后端 (CommentActions) 不变

验证:php -l 全部通过;5 个改动 JS 语法校验通过;
node --test tests/widget-system/post-visual-contract.test.cjs 12/12 通过
2026-08-22 13:29:51 +08:00

176 lines
3.7 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ============================================================
* AKSRT Comments — Zibll 1:1 移动端 + FixedInput / virtual-input
*
* 移动端规则来源:zibll/css/main.css 移动端媒体查询中的评论段。
* ============================================================ */
.virtual-input {
display: none;
}
/* 移动端虚拟输入条 + 吸底表单(FixedInput) */
@media (max-width: 767.98px) {
.virtual-input {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
margin-bottom: 12px;
border-radius: 999px;
background: var(--surface-1, #fff);
box-shadow: var(--shadow-sm, 0 1px 4px rgba(0, 0, 0, .06));
cursor: pointer;
}
.virtual-input .avatar,
.virtual-input .avatar-img {
width: 32px;
height: 32px;
border-radius: 50%;
}
.virtual-input .simulation {
flex: 1;
color: var(--color-ink-4, #999);
font-size: 13px;
}
#respond.mobile-fixed {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 1050;
background: var(--surface-1, #fff);
border-radius: 12px 12px 0 0;
box-shadow: 0 -8px 28px rgba(0, 0, 0, .12);
padding: 12px 14px max(12px, env(safe-area-inset-bottom));
transform: translateY(110%);
transition: transform .25s ease;
max-height: 85vh;
overflow: auto;
}
#respond.mobile-fixed.show {
transform: translateY(0);
}
#respond.mobile-fixed .fixed-body {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, .35);
z-index: -1;
opacity: 0;
pointer-events: none;
transition: opacity .2s ease;
}
#respond.mobile-fixed.show .fixed-body {
opacity: 1;
pointer-events: auto;
}
#respond.mobile-fixed .comt-title {
display: none;
}
/* ---- zibll 移动端评论规则 ---- */
#comments .comt-title {
display: none;
}
#comments .comt-box {
width: 100%;
padding: 0;
}
#comments .list-inline {
padding: 15px 0;
margin: 0;
}
#comments .comment-signarea h3 {
font-size: 13px;
}
#comments .comt-tips-left .but svg,
#comments .comt-tips-left .but .fa {
margin: 0;
}
#comments .hide-sm {
display: none !important;
}
#comments .btn-input-expand {
width: 31px;
padding: 0;
height: 31px;
line-height: 31px;
}
#postcomments .comment-header {
font-size: 14px;
}
#postcomments .comt-meta {
font-size: 12px;
}
#postcomments .comment .list-inline > li {
padding: 0;
}
#postcomments .comment .list-inline > li + li {
padding-left: 10px;
}
#postcomments .avatar-img {
--this-size: 36px;
margin-right: 10px;
}
#postcomments .commentlist > .comment > .list-inline .comment-footer {
margin-left: 45px;
margin-top: -15px;
}
#postcomments .children {
margin-left: 0;
}
#postcomments .children .children {
margin-left: 13px;
}
#postcomments .children .list-inline {
padding: 15px;
}
#comments .pagenav a,
#comments .pagination ul > li {
display: none;
}
#comments .pagenav a.next,
#comments .pagenav a.prev {
display: inline-block;
}
#comments .pagenav .page-numbers {
font-size: 12px;
margin: 2px;
min-width: 28px;
}
#postcomments .post_ajax_loader .ml20 {
margin-left: 5px;
}
}
@media (min-width: 768px) {
.hide-pc {
display: none !important;
}
}