Files
wordpress-theme-aksrt/assets/css/admin/pay-products.css
T
kate522andClaude Fable 5 dc6dbc05d8 feat(admin): quick-edit paid post settings in a dialog on the pay products page
- Rebuild aksrt_pay_products as list + in-page quick settings dialog
  (pay type, limit, cash/points prices, sales float, coupon, order expiry, copy)
- Query by _aksrt_pay_type with real pagination; drop order-summary fallback
  and the duplicate "Meta 销量" column
- Centralize pay meta writes in DomainModel::persist_pay_meta(); stop writing
  unread _aksrt_pay_modo / _aksrt_pay_limit keys

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-10-31 17:28:45 +08:00

85 lines
6.4 KiB
CSS

/* 付费文章(aksrt_pay_products):列表 + 快速设置弹窗。复用 native-ui.css 的 --an-* 令牌,规则限定在本页类名下。 */
.aksrt-products-page [hidden],
.aksrt-product-dialog [hidden] { display: none !important; }
/* ---------- 工具栏:类型视图 + 搜索 ---------- */
.aksrt-products-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 14px 20px; border-bottom: 1px solid var(--an-border-soft); }
.aksrt-products-toolbar .subsubsub { margin: 0; padding: 0; box-shadow: none; }
.aksrt-products-toolbar .aksrt-native-filters { margin: 0; }
/* ---------- 商品表 ---------- */
.aksrt-products-page .aksrt-products-table { min-width: 960px; table-layout: fixed; }
.aksrt-products-table .column-product { width: 32%; }
.aksrt-products-table .column-type { width: 13%; }
.aksrt-products-table .column-price { width: 17%; }
.aksrt-products-table .column-sales { width: 11%; }
.aksrt-products-table .column-revenue { width: 12%; }
.aksrt-products-table .column-actions { width: 15%; }
.aksrt-products-page .aksrt-products-table td { vertical-align: top; overflow-wrap: anywhere; }
.aksrt-products-table .row-title { font-weight: 600; }
.aksrt-products-sub { margin-top: 4px; color: var(--an-muted); font-size: 12px; line-height: 1.5; }
.aksrt-products-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; }
.aksrt-products-links a { text-decoration: none; }
.aksrt-products-table tr.is-highlight > td { background: var(--an-primary-soft); }
/* ---------- 快速设置弹窗 ---------- */
html.aksrt-products-modal-open { overflow: hidden; }
.aksrt-product-dialog { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow: hidden; color: var(--an-text-2); background: var(--an-card); border: 0; border-radius: var(--an-radius); box-shadow: 0 16px 64px rgba(15, 23, 42, .2); }
.aksrt-product-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.aksrt-product-dialog__frame { display: flex; flex-direction: column; max-height: inherit; margin: 0; }
.aksrt-product-dialog__head { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 18px; border-bottom: 1px solid var(--an-border-soft); }
.aksrt-product-dialog .aksrt-product-dialog__head h2 { margin: 0; padding: 0; color: var(--an-text); font-size: 18px; font-weight: 600; line-height: 1.5; }
.aksrt-product-dialog__head p { margin: 5px 0 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.aksrt-product-dialog__close { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; color: var(--an-text-2); background: transparent; border: 0; border-radius: var(--an-radius-sm); cursor: pointer; }
.aksrt-product-dialog__close:hover { color: var(--an-text); background: var(--an-bg-soft); }
.aksrt-product-dialog__body { min-height: 0; padding: 4px 24px 20px; overflow-y: auto; overscroll-behavior: contain; }
.aksrt-product-dialog__foot { display: flex; flex: none; justify-content: flex-end; gap: 8px; padding: 14px 24px; background: var(--an-card); border-top: 1px solid var(--an-border-soft); }
.aksrt-product-dialog__foot .button { min-width: 110px; }
.aksrt-product-dialog .button:disabled { opacity: .65; cursor: not-allowed; }
.aksrt-product-dialog :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--an-primary); outline-offset: 2px; }
.aksrt-product-section { padding: 18px 0; border-bottom: 1px solid var(--an-border-soft); }
.aksrt-product-section:last-child { border-bottom: 0; }
.aksrt-product-dialog .aksrt-product-section h3 { margin: 0 0 12px; color: var(--an-text); font-size: 14px; font-weight: 600; line-height: 1.5; }
.aksrt-product-section__hint { margin: -6px 0 12px; color: var(--an-muted); font-size: 12px; }
.aksrt-product-section .aksrt-native-callout { margin: 14px 0 0; }
.aksrt-product-dialog .aksrt-native-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aksrt-product-pane { min-width: 0; margin: 0; padding: 0; border: 0; }
.aksrt-product-pane + .aksrt-product-pane { margin-top: 0; }
.aksrt-product-dialog textarea { resize: vertical; }
.aksrt-product-radios { margin: 0; padding: 0; border: 0; }
.aksrt-product-radios legend { margin-bottom: 6px; padding: 0; }
.aksrt-product-radios > div { display: flex; flex-wrap: wrap; gap: 8px; }
.aksrt-product-radios label { position: relative; cursor: pointer; }
.aksrt-product-radios input[type="radio"] { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.aksrt-product-radios label > span { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; color: var(--an-text-2); background: var(--an-card); border: 1px solid var(--an-border); border-radius: var(--an-radius-sm); }
.aksrt-product-radios label:hover > span { border-color: var(--an-primary); }
.aksrt-product-radios input:checked + span { color: var(--an-primary); background: var(--an-primary-soft); border-color: var(--an-primary); font-weight: 600; }
.aksrt-product-radios input:focus-visible + span { outline: 2px solid var(--an-primary); outline-offset: 2px; }
.aksrt-product-section > [data-aksrt-product-pane="enabled"] { margin-top: 14px; }
.aksrt-product-inline { display: flex; align-items: center; gap: 6px; }
.aksrt-product-inline input { flex: 1 1 auto; min-width: 0; }
.aksrt-product-inline select { flex: none; width: auto; }
.aksrt-product-unit { flex: none; color: var(--an-muted); }
.aksrt-product-switches { justify-content: flex-end; gap: 8px; }
.aksrt-product-check { display: inline-flex; align-items: center; gap: 6px; color: var(--an-text); }
.aksrt-product-check input { margin: 0; }
.aksrt-product-expire { max-width: 50%; margin-top: 14px; }
.aksrt-product-note { margin: 4px 0 0; font-size: 12px; }
@media (max-width: 782px) {
.aksrt-products-toolbar { padding: 12px 14px; }
.aksrt-products-toolbar .aksrt-native-filters { width: 100%; }
}
@media (max-width: 600px) {
.aksrt-product-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
.aksrt-product-dialog__head,
.aksrt-product-dialog__body,
.aksrt-product-dialog__foot { padding-left: 16px; padding-right: 16px; }
.aksrt-product-dialog .aksrt-native-form-grid { grid-template-columns: 1fr; }
.aksrt-product-expire { max-width: none; }
.aksrt-product-dialog__foot .button { flex: 1; min-width: 0; }
}