The theme was renamed Zibll/子比 → AKSRT → Jio, but upstream branding survived the sweeps in CSS classes, the SVG sprite prefix, a persisted widget field ID, JS events, admin Vue class names, test infrastructure and docblocks. Renames: - zib-widget / zib-widget-wrap / zib-slider → jio-widget-box / jio-widget-box-wrap / jio-slider-box (jio-widget is taken by the modern widget shell, jio-box-* by the card primitives) - zib-partners-scroll + zps-* → jio-partners-scroll + jps-* - zib-combo-info-card + zci-* → jio-combo-info-card + jci-* - zibsvg- → jiosvg-, including the exported picker helpers and the fa-zibsvg- family-prefix guard - zibpay_type → pay_type; the dual-read fallback in PostQuery collapses to a single key - [zibajax="submit"] dropped (no PHP emitter); zib_ajax.success → jio_ajax.success - aks-* admin Vue classes → jio-* - zib_palette() → palette() User-facing vendor traces are gone: the floating "more" button default no longer ships a zibll.com link or 子比主题 marketing copy, the notice widget ships no preset promo entries, and the four 官网教程 links are removed from the post-list admin schema. Test infrastructure renamed to neutral names (docker-compose.reference.yml, Caddyfile, article-baseline.json, modern-widgets-contract.test.cjs) with their DB/volume/env/slug identifiers following. Kept intentionally, documented in tests/fixtures/README.md: the golden fixture reference fingerprint (a SHA-256 record of an external directory, read by validate-widget-golden / generate-widget-golden-fixture / audit-widget-system), the doesNotMatch guards that prove the old tokens are gone, and the reference theme's own meta key in the visual fixtures. No backward-compat or data migration: saved widget configs holding old icon keys or the old field ID silently lose them, per the project's rewrite-over-compatibility rule. Verified: 132/132 node contract tests, php tests/widget-system/run.php (146 assertions), audit-admin-contracts, audit-psr4-paths and validate-widget-golden all green; tracked bundles regenerated and in sync. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
551 lines
12 KiB
CSS
551 lines
12 KiB
CSS
#jio-admin-app,
|
|
#jio-admin-app * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#jio-admin-app {
|
|
--jio-color-primary: #18A058;
|
|
--jio-color-primary-hover: #36AD6A;
|
|
--jio-color-primary-pressed: #0C7A43;
|
|
--jio-color-primary-soft: #EAF7EF;
|
|
--jio-color-canvas: #F5F7F6;
|
|
--jio-color-surface: #FFFFFF;
|
|
--jio-color-text: #1F2923;
|
|
--jio-color-text-secondary: #465149;
|
|
--jio-color-muted: #6F7A72;
|
|
--jio-color-border: #E2E8E3;
|
|
--jio-color-border-strong: #CCD7CE;
|
|
--jio-shadow-card: 0 1px 2px rgba(31, 41, 35, .04);
|
|
--jio-shadow-floating: 0 12px 32px rgba(31, 41, 35, .12);
|
|
min-height: 100%;
|
|
color: var(--jio-color-text);
|
|
background: var(--jio-color-canvas);
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* ==================== FA5 Icon in NaiveUI Menu ==================== */
|
|
#jio-admin-app .n-menu .n-menu-item-content i[class*="fa-"],
|
|
#jio-admin-app .n-menu-item-content i[class*="fa-"] {
|
|
font-size: 18px;
|
|
width: 18px;
|
|
text-align: center;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: inherit;
|
|
opacity: 0.75;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
#jio-admin-app .n-menu-item-content--selected i[class*="fa-"],
|
|
#jio-admin-app .n-menu-item-content:hover i[class*="fa-"] {
|
|
opacity: 1;
|
|
}
|
|
|
|
#jio-admin-app .n-layout,
|
|
#jio-admin-app .n-layout-sider {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
#jio-admin-app .jio-admin-layout {
|
|
min-height: 100vh;
|
|
background: var(--jio-color-canvas);
|
|
}
|
|
|
|
#jio-admin-app .jio-admin-sider {
|
|
background: var(--jio-color-surface);
|
|
border-right: 1px solid var(--jio-color-border);
|
|
}
|
|
|
|
#jio-admin-app .jio-admin-sider .n-layout-toggle-button {
|
|
border: 1px solid var(--jio-color-border);
|
|
background: var(--jio-color-surface);
|
|
color: var(--jio-color-muted);
|
|
box-shadow: var(--jio-shadow-card);
|
|
}
|
|
|
|
#jio-admin-app .jio-admin-sider .n-layout-toggle-button:hover {
|
|
border-color: var(--jio-color-primary);
|
|
color: var(--jio-color-primary);
|
|
}
|
|
|
|
#jio-admin-app .jio-admin-menu {
|
|
padding: 10px 8px 18px;
|
|
}
|
|
|
|
#jio-admin-app .jio-admin-menu .n-menu-item-content {
|
|
position: relative;
|
|
border-radius: 8px;
|
|
transition: color .16s ease, background-color .16s ease;
|
|
}
|
|
|
|
#jio-admin-app .jio-admin-menu .n-menu-item-content--selected::after {
|
|
position: absolute;
|
|
top: 9px;
|
|
bottom: 9px;
|
|
left: 0;
|
|
width: 3px;
|
|
border-radius: 0 3px 3px 0;
|
|
background: var(--jio-color-primary);
|
|
content: '';
|
|
}
|
|
|
|
#jio-admin-app .jio-admin-menu .n-submenu-children {
|
|
margin: 2px 0 6px;
|
|
}
|
|
|
|
#jio-admin-app .jio-admin-menu .n-menu-item-content-header {
|
|
font-weight: 500;
|
|
}
|
|
|
|
#jio-admin-app .jio-menu-item--secondary .n-menu-item-content-header {
|
|
color: var(--jio-color-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
#jio-admin-app .jio-admin-content {
|
|
background: var(--jio-color-canvas);
|
|
}
|
|
|
|
#jio-admin-app .jio-schema-page,
|
|
#jio-admin-app .jio-page-container,
|
|
#jio-admin-app .content-page {
|
|
width: 100%;
|
|
max-width: 1180px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
#jio-admin-app .jio-form-renderer__save-bar {
|
|
right: 28px;
|
|
left: auto;
|
|
width: min(1180px, calc(100vw - 448px));
|
|
border: 1px solid var(--jio-color-border);
|
|
border-bottom: 0;
|
|
border-radius: 12px 12px 0 0;
|
|
background: rgba(255, 255, 255, .96);
|
|
box-shadow: var(--jio-shadow-floating);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
#jio-admin-app .jio-form-renderer__save-bar__inner {
|
|
max-width: 1180px;
|
|
}
|
|
|
|
#jio-admin-app .jio-form-renderer__save-bar .n-button--primary-type {
|
|
box-shadow: 0 4px 12px rgba(24, 160, 88, .18);
|
|
}
|
|
|
|
#jio-admin-app :where(a, button, input, textarea, select, [tabindex]):focus-visible {
|
|
outline: 2px solid var(--jio-color-primary);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
#jio-admin-app .jio-page-title {
|
|
margin: 0 0 12px;
|
|
color: var(--jio-color-text);
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
#jio-admin-app .jio-page-desc {
|
|
margin: 0 0 24px;
|
|
color: var(--jio-color-muted);
|
|
font-size: 13px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
#jio-admin-app .jio-section-card {
|
|
margin-bottom: 18px;
|
|
border-radius: 12px !important;
|
|
border: 1px solid var(--jio-color-border) !important;
|
|
background: var(--jio-color-surface);
|
|
box-shadow: var(--jio-shadow-card);
|
|
}
|
|
|
|
#jio-admin-app .jio-section-card .n-card__content {
|
|
padding: 18px 20px 20px !important;
|
|
}
|
|
|
|
#jio-admin-app .jio-section-card .n-card-header {
|
|
padding: 18px 20px 0 !important;
|
|
}
|
|
|
|
#jio-admin-app .jio-section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
#jio-admin-app .jio-section-header h3 {
|
|
margin: 0;
|
|
color: var(--jio-color-text);
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
#jio-admin-app .section-icon,
|
|
#jio-admin-app .header-icon {
|
|
font-size: 17px;
|
|
opacity: 0.8;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
#jio-admin-app .section-desc,
|
|
#jio-admin-app .jio-hint-text {
|
|
color: var(--jio-color-muted);
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
#jio-admin-app .section-desc {
|
|
margin: 0 0 14px;
|
|
}
|
|
|
|
#jio-admin-app .jio-form .n-form-item {
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
#jio-admin-app .jio-form .n-form-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
#jio-admin-app .jio-form .n-form-item-label {
|
|
color: var(--jio-color-text-secondary) !important;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
#jio-admin-app .jio-form .n-input,
|
|
#jio-admin-app .jio-form .n-select .n-base-selection,
|
|
#jio-admin-app .jio-form .n-input-number {
|
|
min-height: 36px;
|
|
--n-height: 36px !important;
|
|
}
|
|
|
|
#jio-admin-app .jio-form .n-input--textarea textarea {
|
|
min-height: 84px;
|
|
}
|
|
|
|
#jio-admin-app .jio-form .n-switch {
|
|
--n-rail-height: 26px !important;
|
|
--n-rail-width: 48px !important;
|
|
}
|
|
|
|
#jio-admin-app .jio-form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 24px 0 8px;
|
|
margin-top: 28px;
|
|
border-top: 1px solid var(--jio-color-border);
|
|
}
|
|
|
|
#jio-admin-app .jio-form-actions .n-button {
|
|
min-width: 120px;
|
|
height: 40px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
#jio-admin-app .jio-tabs .n-tabs-nav {
|
|
margin-bottom: 20px !important;
|
|
}
|
|
|
|
#jio-admin-app .jio-tabs .n-tabs-tab {
|
|
padding: 10px 20px !important;
|
|
font-size: 14px !important;
|
|
font-weight: 500;
|
|
}
|
|
|
|
#jio-admin-app .n-data-table {
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#jio-admin-app .n-data-table .n-data-table-th {
|
|
background: #f7f9f7;
|
|
}
|
|
|
|
#jio-admin-app .n-empty {
|
|
padding: 24px 0;
|
|
}
|
|
|
|
#jio-admin-app .jio-card-header-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
#jio-admin-app .jio-card-header-row__left {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
#jio-admin-app .jio-card-header-row__title {
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ==================== 卡片 header 行(标题 + 按钮) ==================== */
|
|
#jio-admin-app .jio-card-header-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
#jio-admin-app .jio-card-header-row__left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
#jio-admin-app .jio-card-header-row__title {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--jio-color-text);
|
|
}
|
|
|
|
/* ==================== 过渡 ==================== */
|
|
.fade-slide-enter-active,
|
|
.fade-slide-leave-active {
|
|
transition: opacity 0.24s ease, transform 0.24s ease;
|
|
}
|
|
|
|
.fade-slide-enter-from {
|
|
opacity: 0;
|
|
transform: translateY(12px);
|
|
}
|
|
|
|
.fade-slide-leave-to {
|
|
opacity: 0;
|
|
transform: translateY(-8px);
|
|
}
|
|
|
|
/* ==================== Modal 样式(弹层) ==================== */
|
|
.jio-modal-card {
|
|
width: 100%;
|
|
max-width: 520px;
|
|
}
|
|
|
|
/* 弹层底部操作栏;弹层 teleport 到 #jio-admin-app 之外,token 带回退值。 */
|
|
.jio-modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 16px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--jio-color-border, #E2E8E3);
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
#jio-admin-app .jio-form-renderer__save-bar {
|
|
right: 0;
|
|
left: 0;
|
|
width: auto;
|
|
border-right: 0;
|
|
border-left: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
#jio-admin-app .jio-page-wrapper {
|
|
width: 100%;
|
|
}
|
|
|
|
#jio-admin-app .jio-admin-menu {
|
|
padding-top: 8px;
|
|
}
|
|
}
|
|
|
|
/* ==================== 移动端适配 ==================== */
|
|
@media (max-width: 768px) {
|
|
/* 容器 */
|
|
#jio-admin-app .jio-page-container,
|
|
#jio-admin-app .content-page {
|
|
max-width: 100%;
|
|
padding: 0;
|
|
}
|
|
|
|
#jio-admin-app .jio-field__desc {
|
|
margin: 2px 0 8px;
|
|
}
|
|
|
|
#jio-admin-app .jio-page-title {
|
|
font-size: 18px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
#jio-admin-app .jio-page-desc {
|
|
font-size: 12px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
/* 卡片紧凑 */
|
|
#jio-admin-app .jio-section-card {
|
|
margin-bottom: 12px;
|
|
border-radius: 10px !important;
|
|
}
|
|
|
|
#jio-admin-app .jio-section-card .n-card__content {
|
|
padding: 14px !important;
|
|
}
|
|
|
|
#jio-admin-app .jio-section-card .n-card-header {
|
|
padding: 14px 14px 0 !important;
|
|
}
|
|
|
|
#jio-admin-app .jio-section-header {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
/* 表单:label 改为顶部排列(覆盖 left 模式) */
|
|
#jio-admin-app .jio-form .n-form-item {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
#jio-admin-app .jio-form .n-form-item .n-form-item-label {
|
|
text-align: left !important;
|
|
padding: 0 0 6px !important;
|
|
width: auto !important;
|
|
height: auto !important;
|
|
line-height: 1.5 !important;
|
|
justify-content: flex-start !important;
|
|
}
|
|
|
|
#jio-admin-app .jio-form .n-form-item-blank {
|
|
width: 100%;
|
|
}
|
|
|
|
/* 强制行内表单单列 */
|
|
#jio-admin-app .jio-form .n-form-item .n-form-item-label,
|
|
#jio-admin-app .jio-form .n-form-item-row {
|
|
display: block !important;
|
|
}
|
|
|
|
/* radio button 自动换行 */
|
|
#jio-admin-app .jio-form .n-radio-group {
|
|
width: 100%;
|
|
}
|
|
|
|
#jio-admin-app .jio-form .n-radio-group .n-space {
|
|
flex-wrap: wrap !important;
|
|
gap: 6px 8px !important;
|
|
}
|
|
|
|
#jio-admin-app .jio-form .n-radio-button {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* 输入组在窄屏堆叠 */
|
|
#jio-admin-app .jio-form .n-input-group {
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
#jio-admin-app .jio-form .n-input-group > .n-input,
|
|
#jio-admin-app .jio-form .n-input-group > .n-button {
|
|
border-radius: 6px !important;
|
|
}
|
|
|
|
/* 表单底部按钮区 */
|
|
#jio-admin-app .jio-form-actions {
|
|
flex-direction: column-reverse;
|
|
align-items: stretch;
|
|
padding: 16px 0 8px;
|
|
margin-top: 20px;
|
|
gap: 8px;
|
|
}
|
|
|
|
#jio-admin-app .jio-form-actions .n-button {
|
|
width: 100%;
|
|
min-width: 0;
|
|
height: 42px;
|
|
}
|
|
|
|
/* 卡片 header 行:换行排列 */
|
|
#jio-admin-app .jio-card-header-row {
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Naive 弹窗全屏 */
|
|
.n-modal-mask + .n-modal-body-wrapper .n-modal,
|
|
.n-modal-body-wrapper > .n-modal {
|
|
width: 100vw !important;
|
|
max-width: 100vw !important;
|
|
border-radius: 0 !important;
|
|
margin: 0 !important;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.jio-modal-card {
|
|
max-width: 100vw !important;
|
|
width: 100vw !important;
|
|
min-height: 100vh;
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
/* 数据表格隐藏次要列 */
|
|
.jio-table-mobile-hide,
|
|
#jio-admin-app .n-data-table .jio-table-mobile-hide {
|
|
display: none !important;
|
|
}
|
|
|
|
/* 表格内边距收紧 */
|
|
#jio-admin-app .n-data-table .n-data-table-td,
|
|
#jio-admin-app .n-data-table .n-data-table-th {
|
|
padding: 8px 10px !important;
|
|
}
|
|
|
|
/* tabs */
|
|
#jio-admin-app .jio-tabs .n-tabs-tab {
|
|
padding: 8px 12px !important;
|
|
font-size: 13px !important;
|
|
}
|
|
|
|
/* drawer 内菜单 */
|
|
.n-drawer .n-menu .n-menu-item-content {
|
|
padding-left: 18px !important;
|
|
}
|
|
}
|
|
|
|
/* ==================== 超窄设备(<= 480px)追加 ==================== */
|
|
@media (max-width: 480px) {
|
|
#jio-admin-app .jio-section-card .n-card__content {
|
|
padding: 12px !important;
|
|
}
|
|
|
|
#jio-admin-app .jio-section-card .n-card-header {
|
|
padding: 12px 12px 0 !important;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
#jio-admin-app *,
|
|
#jio-admin-app *::before,
|
|
#jio-admin-app *::after {
|
|
scroll-behavior: auto !important;
|
|
animation-duration: .01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: .01ms !important;
|
|
}
|
|
}
|
|
|
|
/* A legacy "fa fab / fa far" double-prefix beats FA5's own single-class
|
|
declarations in the cascade — re-assert the brand family/regular weight. */
|
|
.fa.fab{font-family:"Font Awesome 5 Brands";font-weight:400}
|
|
.fa.far{font-weight:400}
|