fix(cms): use Mission Core neutral form groups without black inserts
DC CMS qualification / qualify (push) Successful in 1m49s
DC CMS qualification / qualify (push) Successful in 1m49s
This commit is contained in:
@@ -62,6 +62,7 @@ p {
|
||||
min-width: 0;
|
||||
}
|
||||
.cms-editor,
|
||||
.cms-content-section,
|
||||
.block-form,
|
||||
.knowledge-editor,
|
||||
.project-settings-editor,
|
||||
|
||||
@@ -135,12 +135,10 @@ function fields() {
|
||||
for (const input of all("input:not([type=hidden]):not([type=checkbox]):not([type=file]):not([type=range]),textarea")) if (!input.closest(".cms-ui-island")) addClass(input, "nodedc-field__control");
|
||||
}
|
||||
function cards() {
|
||||
// Use the library's opaque nested surface: translucent local layers made
|
||||
// collection backgrounds converge with the field material at greater depth.
|
||||
for (const region of all(".collection-item-card,.json-details,.field-grid,.group-grid")) {
|
||||
// As in Mission Core, fields sit directly in SettingsCard. Only independent
|
||||
// collection entries and disclosures own another shared neutral group.
|
||||
for (const region of all(".collection-item-card,.json-details")) {
|
||||
if (region.dataset.dsSurface) continue;
|
||||
// A collection already owns this surface; avoid stacking or double padding.
|
||||
if (region.matches(".field-grid,.group-grid") && (region.closest(".collection-item-card") || region.querySelector(".collection-field"))) continue;
|
||||
const surface = clone("nestedSurface");
|
||||
for (const attribute of surface.attributes) {
|
||||
if (attribute.name === "class") addClass(region, attribute.value);
|
||||
@@ -151,7 +149,8 @@ function cards() {
|
||||
for (const card of all(".settings-card,.content-group,.content-panel")) {
|
||||
if (card.dataset.dsCard) continue;
|
||||
card.dataset.dsCard = "true";
|
||||
addClass(card, "nodedc-settings-card");
|
||||
// The content overview is layout, not a third card around semantic groups.
|
||||
addClass(card, card.querySelector(":scope > #content-fields") ? "cms-content-section" : "nodedc-settings-card");
|
||||
const oldHead = $(":scope > .card-head,:scope > .group-head,:scope > .panel-head,:scope > .publish-progress-head", card);
|
||||
const template = clone("card"), head = $(".nodedc-settings-card__head", template), titles = $(".nodedc-settings-card__titles", template), body = $(".nodedc-settings-card__body", template);
|
||||
head.replaceChildren(titles);
|
||||
|
||||
Reference in New Issue
Block a user