- rewrite schemas for posts, tab_posts, oneline_posts, hot_posts, term_cards, term_aggregation, media_cards, combo_info, partners, recent_comments, posts_toc and slider_media_combo to mirror the modern reference modules field by field (options, defaults, dependencies, min/max/step, subheadings) - port reference renderers: hot ranking with TOP badges, category aggregation card, graphic cover cards, partners CSS marquee, combo info cards with auto band palette, recent comment list - rename 分类与标签聚合卡片 to 分类聚合卡片 and restrict it to categories (no tags/topics branch in this project) - drop topics filter fields and the topics query branch; align orderby value domain with supported post meta - add searchable sortable terms admin field type and spinner unit suffix rendering - unify widget pagination and lazy loading on the REST client with the runtime-owned ias reveal trigger; remove the legacy post_ajax_trigger dual path - align section-navs TOC with the reference contract (wznav ids, 3-heading minimum, zib-widget box)
210 lines
5.6 KiB
CSS
210 lines
5.6 KiB
CSS
.aksrt-widget-form {
|
|
--aksrt-field-border: #dcdcde;
|
|
--aksrt-field-accent: #2271b1;
|
|
display: grid;
|
|
gap: 14px;
|
|
padding: 4px 0 10px;
|
|
}
|
|
|
|
.aksrt-widget-field {
|
|
min-width: 0;
|
|
}
|
|
|
|
.aksrt-widget-field[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.aksrt-widget-field__label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.aksrt-widget-field .description {
|
|
margin: -2px 0 7px;
|
|
}
|
|
|
|
.aksrt-widget-switch {
|
|
display: inline-flex;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.aksrt-widget-switch input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
}
|
|
|
|
.aksrt-widget-switch span {
|
|
position: relative;
|
|
width: 38px;
|
|
height: 22px;
|
|
border-radius: 999px;
|
|
background: #8c8f94;
|
|
transition: background .18s ease;
|
|
}
|
|
|
|
.aksrt-widget-switch span::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
transition: transform .18s ease;
|
|
}
|
|
|
|
.aksrt-widget-switch input:checked + span { background: var(--aksrt-field-accent); }
|
|
.aksrt-widget-switch input:checked + span::after { transform: translateX(16px); }
|
|
.aksrt-widget-switch input:focus-visible + span { outline: 2px solid #72aee6; outline-offset: 2px; }
|
|
|
|
.aksrt-widget-choices {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.aksrt-widget-choices label input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
}
|
|
|
|
.aksrt-widget-choices label span {
|
|
display: block;
|
|
padding: 5px 9px;
|
|
border: 1px solid var(--aksrt-field-border);
|
|
border-radius: 5px;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.aksrt-widget-choices label input:checked + span {
|
|
border-color: var(--aksrt-field-accent);
|
|
color: var(--aksrt-field-accent);
|
|
box-shadow: 0 0 0 1px var(--aksrt-field-accent);
|
|
}
|
|
|
|
.aksrt-widget-number,
|
|
.aksrt-widget-icon,
|
|
.aksrt-widget-link,
|
|
.aksrt-widget-background {
|
|
display: grid;
|
|
gap: 7px;
|
|
}
|
|
|
|
.aksrt-widget-number {
|
|
grid-template-columns: minmax(0, 1fr) 50px;
|
|
align-items: center;
|
|
}
|
|
|
|
.aksrt-widget-upload {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 7px;
|
|
}
|
|
|
|
.aksrt-widget-upload img {
|
|
width: 100%;
|
|
max-height: 150px;
|
|
border-radius: 6px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.aksrt-widget-upload .widefat { flex: 1 1 100%; }
|
|
|
|
.aksrt-widget-spacing {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 6px;
|
|
}
|
|
|
|
.aksrt-widget-spacing label span {
|
|
display: block;
|
|
margin-bottom: 3px;
|
|
color: #646970;
|
|
text-align: center;
|
|
}
|
|
|
|
.aksrt-widget-repeater__row,
|
|
.aksrt-widget-nested {
|
|
margin-bottom: 9px;
|
|
border: 1px solid var(--aksrt-field-border);
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
}
|
|
|
|
.aksrt-widget-repeater__bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 8px 10px;
|
|
border-bottom: 1px solid var(--aksrt-field-border);
|
|
background: #f6f7f7;
|
|
}
|
|
|
|
.aksrt-widget-repeater__bar .dashicons { cursor: move; }
|
|
.aksrt-widget-repeater__bar strong { flex: 1; }
|
|
.aksrt-widget-repeater__fields,
|
|
.aksrt-widget-nested__body { display: grid; gap: 12px; padding: 10px; }
|
|
.aksrt-widget-nested > summary { padding: 9px 10px; font-weight: 600; cursor: pointer; }
|
|
|
|
.aksrt-widget-form-lazy {
|
|
padding: 14px;
|
|
border: 1px dashed #c3c4c7;
|
|
border-radius: 6px;
|
|
text-align: center;
|
|
}
|
|
|
|
.aksrt-widget-form-lazy__status { margin-top: 0; color: #646970; }
|
|
|
|
.aksrt-widget-placement-hint {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: flex-start;
|
|
margin: 10px 0 0;
|
|
padding: 8px;
|
|
border-left: 3px solid #72aee6;
|
|
background: #f0f6fc;
|
|
color: #50575e;
|
|
}
|
|
|
|
.aksrt-widget-placement-hint.is-warning {
|
|
border-color: #dba617;
|
|
background: #fcf9e8;
|
|
color: #614200;
|
|
}
|
|
|
|
.aksrt-widget-transfer { margin: 16px 20px 16px 0; }
|
|
.aksrt-widget-transfer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
|
|
.aksrt-widget-transfer form { display: grid; align-content: start; gap: 9px; padding: 12px; border: 1px solid #dcdcde; border-radius: 6px; }
|
|
.aksrt-widget-transfer form h3 { margin: 0 0 3px; }
|
|
.aksrt-widget-transfer select,
|
|
.aksrt-widget-transfer input[type="file"] { width: 100%; }
|
|
.aksrt-widget-transfer__actions { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.aksrt-widget-template-preview-output { grid-column: 1 / -1; max-height: 520px; overflow: auto; padding: 14px; border: 1px solid #dcdcde; background: #fff; }
|
|
.aksrt-widget-template-preview__area { margin-bottom: 18px; }
|
|
.aksrt-widget-template-preview__module { margin: 10px 0; padding: 12px; border: 1px dashed #c3c4c7; border-radius: 6px; }
|
|
|
|
@media (max-width: 1100px) {
|
|
.aksrt-widget-transfer__grid { grid-template-columns: 1fr; }
|
|
.aksrt-widget-template-preview-output { grid-column: auto; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.aksrt-widget-switch span,
|
|
.aksrt-widget-switch span::after { transition: none; }
|
|
}
|
|
|
|
|
|
/* terms: searchable multi-select with drag ordering */
|
|
.aksrt-widget-terms .aksrt-widget-terms__selected { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
|
|
.aksrt-widget-terms .aksrt-widget-terms__selected:empty { display: none; }
|
|
.aksrt-widget-terms .aksrt-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; }
|
|
.aksrt-widget-terms .aksrt-widget-terms__chip .dashicons { font-size: 14px; width: 14px; height: 14px; }
|
|
.aksrt-widget-terms .aksrt-widget-terms__remove { border: 0; background: none; cursor: pointer; line-height: 1; padding: 0 0 0 2px; text-decoration: none; }
|
|
.aksrt-widget-terms .aksrt-widget-terms__search { margin-bottom: 6px; }
|
|
.aksrt-widget-terms .aksrt-widget-terms__options { max-height: 180px; overflow-y: auto; border: 1px solid #dcdcde; border-radius: 4px; padding: 4px 8px; background: #fff; }
|
|
.aksrt-widget-terms .aksrt-widget-terms__option { display: block; padding: 2px 0; }
|