Full-project rename. `git grep -i aksrt` is now empty apart from the
DBMigrator 3.3.0 changelog note that documents the rename itself.
Code identifiers
- PHP namespace AKSRT\ -> Jio\ (composer PSR-4 + 378 declarations)
- global constants AKSRT_* -> JIO_* (VERSION/DIR/URI, PAY_TYPE_*, CAPTCHA_*)
- procedural functions, hooks, options, meta keys, table names,
cookies, query vars, ajax actions and nonces: aksrt_ -> jio_
- text domain aksrt -> jio; Theme Name -> Jio
- JS globals: aksrtData/aksrtAdminData/... -> jioData/jioAdminData/...,
window.AKSRTCaptcha & friends -> window.JioCaptcha, Aksrt* -> Jio*
- Vue components Aks*.vue -> Jio*.vue (15 files renamed + imports)
- CSS classes/data-attrs/custom properties: aksrt- -> jio-
- REST namespace aksrt/v1 -> jio/v1 (incl. payment gateway callbacks)
Storage layer
- DB tables {prefix}aksrt_* -> {prefix}jio_*; SCHEMA_VERSION 3.2.0 -> 3.3.0
so dbDelta creates the new names on install
- widget id_base aksrt_widget_* -> jio_widget_*
- uninstall.php drop list rebuilt from the actual migrator tables
(dropped 3 stale entries, added the 17 missing ones)
Removed
- hardcoded https://api.aksrt.com/version.json default update endpoint;
get_endpoint() now reads the 「更新端点」 setting and do_check() no-ops
when it is empty
Files renamed: inc/helpers/aksrt-*.php -> jio-*.php (54),
assets/admin/src/components/form/Aks*.vue -> Jio*.vue (15).
Build artifacts regenerated: assets/css/build, assets/js/runtime,
assets/admin/build.
Verified: audit-psr4-paths errors=0, audit-admin-contracts errors=0
(warnings=56, unchanged baseline), 813/813 widget-system tests,
44/44 phpunit, php -l clean across all PHP.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
310 lines
12 KiB
CSS
310 lines
12 KiB
CSS
.jio-widget-form {
|
|
--jio-field-border: #dcdcde;
|
|
--jio-field-accent: #0991f5;
|
|
display: grid;
|
|
gap: 0;
|
|
padding: 0 0 8px;
|
|
}
|
|
|
|
.jio-widget-field {
|
|
min-width: 0;
|
|
padding: 11px 0;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.jio-widget-field[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.jio-widget-field__label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
font-weight: 600;
|
|
color: #0991f5;
|
|
}
|
|
|
|
.customize-control-widget_form .jio-widget-field__label { color: inherit; }
|
|
|
|
.jio-widget-field .description {
|
|
margin: -2px 0 7px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.jio-widget-field--switcher {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
column-gap: 12px;
|
|
}
|
|
|
|
.jio-widget-field--switcher .jio-widget-field__label { margin: 0; }
|
|
.jio-widget-field--switcher .description { grid-column: 1 / -1; grid-row: 2; }
|
|
.jio-widget-field--switcher > .jio-widget-switch { grid-column: 2; grid-row: 1; }
|
|
|
|
/* Reference CSF row modifiers. */
|
|
.jio-widget-field.is-compact { margin-top: -12px; padding-top: 0; border-top: 0; }
|
|
.jio-widget-field__subtitle { margin: 0 0 5px; color: #646970; font-size: 12px; }
|
|
.jio-widget-field.is-inline .jio-widget-choices--radio label > span { padding: 0; border: 0; background: none; box-shadow: none; }
|
|
.jio-widget-field.is-inline .jio-widget-choices--radio { gap: 4px 14px; }
|
|
.jio-widget-field--content { padding: 10px 0; color: #50575e; }
|
|
.jio-widget-field--subheading { padding: 10px 12px; margin: 6px 0 0; border: 0; background: #f6f7f9; color: #0991f5; font-weight: 600; }
|
|
.jio-widget-field--submessage { padding: 8px 12px; margin: 8px 0; border: 0; border-radius: 4px; font-size: 13px; }
|
|
.jio-widget-field--submessage-normal { background: #f5f5f5; color: #555; }
|
|
.jio-widget-field--submessage-success { background: rgba(18, 185, 40, .1); color: #12b928; }
|
|
.jio-widget-field--submessage-info { background: rgba(41, 151, 247, .1); color: #2997f7; }
|
|
.jio-widget-field--submessage-warning { background: rgba(255, 156, 57, .1); color: #e18c47; }
|
|
.jio-widget-field--submessage-danger { background: rgba(255, 69, 69, .1); color: #ff4646; }
|
|
.jio-widget-field .c-yellow { color: #fc844c; }
|
|
|
|
.jio-widget-switch {
|
|
display: inline-flex;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.jio-widget-switch input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
}
|
|
|
|
.jio-widget-switch span {
|
|
position: relative;
|
|
width: 38px;
|
|
height: 22px;
|
|
border-radius: 999px;
|
|
background: #8c8f94;
|
|
transition: background .18s ease;
|
|
}
|
|
|
|
.jio-widget-switch span::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
transition: transform .18s ease;
|
|
}
|
|
|
|
.jio-widget-switch input:checked + span { background: var(--jio-field-accent); }
|
|
.jio-widget-switch input:checked + span::after { transform: translateX(16px); }
|
|
.jio-widget-switch input:focus-visible + span { outline: 2px solid #72aee6; outline-offset: 2px; }
|
|
|
|
.jio-widget-choices {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.jio-widget-choices label input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
}
|
|
|
|
.jio-widget-choices label > span {
|
|
display: block;
|
|
padding: 5px 10px;
|
|
border: 1px solid var(--jio-field-border);
|
|
border-radius: 4px;
|
|
background: #f7f8fa;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.jio-widget-choices label input:checked + span {
|
|
border-color: var(--jio-field-accent);
|
|
color: var(--jio-field-accent);
|
|
box-shadow: 0 0 0 1px var(--jio-field-accent);
|
|
}
|
|
|
|
.jio-widget-choices label input:focus-visible + span { outline: 2px solid #72aee6; outline-offset: 2px; }
|
|
|
|
.jio-widget-choices--palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 5px; }
|
|
.jio-widget-choices--palette label > span { padding: 4px; text-align: center; }
|
|
.jio-widget-palette-choice { display: grid; justify-items: center; gap: 3px; }
|
|
.jio-widget-palette-choice i { display: block; width: 100%; height: 18px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 3px; }
|
|
.jio-widget-palette-choice small { font-size: 10px; line-height: 1.2; }
|
|
|
|
.jio-widget-number,
|
|
.jio-widget-link,
|
|
.jio-widget-background {
|
|
display: grid;
|
|
gap: 7px;
|
|
}
|
|
|
|
.jio-widget-number {
|
|
grid-template-columns: minmax(0, 1fr) 50px;
|
|
align-items: center;
|
|
}
|
|
|
|
.jio-widget-upload {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 7px;
|
|
}
|
|
|
|
.jio-widget-upload img {
|
|
width: 100%;
|
|
max-height: 150px;
|
|
border-radius: 6px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.jio-widget-upload .widefat { flex: 1 1 100%; }
|
|
|
|
.jio-widget-spacing {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 6px;
|
|
}
|
|
|
|
.jio-widget-spacing--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
|
|
.jio-widget-spacing label span {
|
|
display: block;
|
|
margin-bottom: 3px;
|
|
color: #646970;
|
|
text-align: center;
|
|
}
|
|
|
|
.jio-widget-repeater__row,
|
|
.jio-widget-nested {
|
|
margin-bottom: 9px;
|
|
border: 1px solid var(--jio-field-border);
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
}
|
|
|
|
.jio-widget-repeater__bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 8px 10px;
|
|
border-bottom: 1px solid var(--jio-field-border);
|
|
background: #f9fafc;
|
|
}
|
|
|
|
.jio-widget-repeater__bar::-webkit-details-marker { display: none; }
|
|
.jio-widget-repeater__bar { list-style: none; cursor: pointer; }
|
|
.jio-widget-repeater__bar::after { content: "\f140"; margin-left: auto; font: 20px/1 dashicons; color: #646970; }
|
|
.jio-widget-repeater__row[open] > .jio-widget-repeater__bar::after { content: "\f142"; }
|
|
.jio-widget-repeater__bar .dashicons { cursor: move; }
|
|
.jio-widget-repeater__bar strong { flex: 1; }
|
|
.jio-widget-repeater__remove:disabled { visibility: hidden; }
|
|
.jio-widget-repeater__add:disabled { opacity: .55; cursor: not-allowed; }
|
|
.jio-widget-repeater__fields,
|
|
.jio-widget-nested__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px; }
|
|
.jio-widget-nested > summary { padding: 9px 10px; font-weight: 600; cursor: pointer; }
|
|
|
|
/* Keep accordions inside the narrow sidebar column: grid/flex items default to min-width:auto and grow to their widest child. */
|
|
.jio-widget-form,
|
|
.jio-widget-link,
|
|
.jio-widget-background { grid-template-columns: minmax(0, 1fr); }
|
|
.jio-widget-repeater,
|
|
.jio-widget-repeater__row,
|
|
.jio-widget-nested,
|
|
.jio-widget-nested__body > *,
|
|
.jio-widget-repeater__fields > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
|
|
.jio-widget-form input:not([type="checkbox"]):not([type="radio"]),
|
|
.jio-widget-form select,
|
|
.jio-widget-form textarea { max-width: 100%; box-sizing: border-box; }
|
|
.jio-widget-background select { width: 100%; }
|
|
.jio-widget-repeater__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
.jio-widget-form input[type="text"],
|
|
.jio-widget-form input[type="url"],
|
|
.jio-widget-form input[type="number"],
|
|
.jio-widget-form select,
|
|
.jio-widget-form textarea {
|
|
min-height: 32px;
|
|
border-color: #d5d8dc;
|
|
border-radius: 3px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.jio-widget-form input:focus,
|
|
.jio-widget-form select:focus,
|
|
.jio-widget-form textarea:focus {
|
|
border-color: #0991f5;
|
|
box-shadow: 0 0 0 1px #0991f5;
|
|
}
|
|
|
|
.jio-widget-form .button { min-height: 32px; line-height: 30px; border-radius: 3px; }
|
|
.jio-widget-form .button-primary { background: #0991f5; border-color: #087bcf; }
|
|
|
|
.jio-widget-form-lazy { padding: 10px 0; }
|
|
.jio-widget-form-lazy__status:empty { display: none; }
|
|
|
|
/* Reference t-notice boxes (lazy form status). */
|
|
.t-notice { padding: 8px 12px; border-radius: 4px; font-size: 13px; line-height: 1.5; }
|
|
.t-notice.t-loading { background: rgba(255, 156, 57, .1); color: #e18c47; }
|
|
.t-notice.t-error { background: rgba(255, 69, 69, .1); color: #ff4646; }
|
|
|
|
/* Sidebar toolbar: export / import / template import. */
|
|
.jio-wie-toolbar { margin: 8px 0 12px; }
|
|
.jio-wie-toolbar .button { margin-right: 6px; margin-bottom: 4px; }
|
|
.jio-wie-btn-delete { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; color: #b32d2e; font-size: 12px; cursor: pointer; }
|
|
.jio-wie-btn-delete::before { font: normal 16px/1 dashicons; content: '182'; }
|
|
.jio-wie-btn-delete:hover,
|
|
.jio-wie-btn-delete:focus { color: #d63638; }
|
|
|
|
/* WIE modal shell. */
|
|
.jio-wie-modal { display: none; position: fixed; inset: 0; z-index: 1000100; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
|
|
.jio-wie-modal.is-open { display: flex; }
|
|
.jio-wie-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
|
|
.jio-wie-modal__dialog { position: relative; z-index: 1; width: 100%; max-width: min(920px, 96vw); max-height: 90vh; overflow: auto; padding: 18px 20px 16px; box-sizing: border-box; border: 1px solid #c3c4c7; border-radius: 6px; background: #fff; box-shadow: 0 8px 32px rgba(0, 0, 0, .14); }
|
|
.jio-wie-modal__close { position: absolute; top: 10px; right: 10px; width: 2em; height: 2em; padding: 0; border: none; background: transparent; color: #646970; font-size: 20px; line-height: 1; cursor: pointer; }
|
|
.jio-wie-modal__close:hover { color: #1d2327; }
|
|
.jio-wie-modal__title { margin: 0 32px 10px 0; font-size: 16px; line-height: 1.3; }
|
|
.jio-wie-modal__hint { margin: 0 0 10px; font-size: 13px; }
|
|
.jio-wie-modal__import-mode { display: flex; flex-wrap: wrap; gap: 16px; align-items: baseline; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #dcdcde; border-radius: 4px; background: #f6f7f7; }
|
|
.jio-wie-modal__import-mode-title { margin: 0 0 8px; font-weight: 600; }
|
|
.jio-wie-modal__import-mode-row { display: block; margin: 6px 0 0; cursor: pointer; }
|
|
.jio-wie-modal__import-mode-row input { margin-right: 6px; vertical-align: middle; }
|
|
.jio-wie-modal__textarea { width: 100%; min-height: 240px; box-sizing: border-box; font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 1.45; }
|
|
.jio-wie-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
|
|
.jio-wie-modal__result { margin: 10px 0 0; font-size: 13px; }
|
|
.jio-wie-modal__result.is-ok { color: #008a20; }
|
|
.jio-wie-modal__result.is-warn { color: #996800; }
|
|
.jio-wie-modal__result.is-err { color: #d63638; }
|
|
.jio-wie-modal__reload-wrap { margin: 12px 0 0; }
|
|
.jio-wie-remind { margin-bottom: 10px; color: #fc844c; font-size: .9em; }
|
|
.jio-wie-remind b { color: inherit; }
|
|
|
|
/* Template picker layer. */
|
|
.jio-wie-template-layer { z-index: 1000120; }
|
|
.jio-wie-template-list-wrap { margin-bottom: 12px; }
|
|
.jio-wie-template-list { display: flex; flex-wrap: wrap; gap: 10px; max-height: 42vh; overflow: auto; }
|
|
.jio-wie-template-item { flex: 1 1 30%; min-width: 360px; }
|
|
.jio-wie-template-item-row { display: flex; gap: 8px; align-items: flex-start; height: 100%; }
|
|
.jio-wie-template-item-label { display: flex; flex: 1 1 auto; gap: 10px; align-items: flex-start; min-width: 0; height: stretch; margin: 0; padding: 10px 12px; border: 1px solid #efeeee; border-radius: 8px; background: #fbfbfb; cursor: pointer; }
|
|
.jio-wie-template-item-label:hover { background: #f7fbfe; }
|
|
.jio-wie-template-item-label input[type="radio"] { flex-shrink: 0; margin-top: 3px; }
|
|
.jio-wie-template-item-meta { display: flex; flex-direction: column; gap: 4px; }
|
|
.jio-wie-template-item-title { font-weight: 600; }
|
|
.jio-wie-template-item-desc { color: #646970; font-size: 12px; line-height: 1.4; }
|
|
.jio-wie-template-item-remind { color: #fc844c; font-size: 12px; line-height: 1.4; }
|
|
.jio-wie-template-item-modules { margin: 0; padding-left: 1.2em; font-size: 12px; line-height: 1.5; color: #50575e; }
|
|
|
|
@media (max-width: 600px) {
|
|
.jio-wie-modal { padding: 10px; }
|
|
.jio-wie-template-item { min-width: 100%; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.jio-widget-switch span,
|
|
.jio-widget-switch span::after { transition: none; }
|
|
}
|
|
|
|
|
|
/* terms: searchable multi-select with drag ordering */
|
|
.jio-widget-terms .jio-widget-terms__selected { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
|
|
.jio-widget-terms .jio-widget-terms__selected:empty { display: none; }
|
|
.jio-widget-terms .jio-widget-terms__chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 4px; background: #f0f0f1; border: 1px solid #dcdcde; font-size: 12px; cursor: move; }
|
|
.jio-widget-terms .jio-widget-terms__chip .dashicons { font-size: 14px; width: 14px; height: 14px; }
|
|
.jio-widget-terms .jio-widget-terms__remove { border: 0; background: none; cursor: pointer; line-height: 1; padding: 0 0 0 2px; text-decoration: none; }
|
|
.jio-widget-terms .jio-widget-terms__search { margin-bottom: 6px; }
|
|
.jio-widget-terms .jio-widget-terms__options { max-height: 180px; overflow-y: auto; border: 1px solid #dcdcde; border-radius: 4px; padding: 4px 8px; background: #fff; }
|
|
.jio-widget-terms .jio-widget-terms__option { display: block; padding: 2px 0; }
|