fix(cms): reuse canonical profile and nested form surfaces
DC CMS qualification / qualify (push) Successful in 1m39s
DC CMS qualification / qualify (push) Successful in 1m39s
This commit is contained in:
@@ -135,6 +135,17 @@ 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")) {
|
||||
if (region.dataset.dsSurface) continue;
|
||||
const surface = clone("nestedSurface");
|
||||
for (const attribute of surface.attributes) {
|
||||
if (attribute.name === "class") addClass(region, attribute.value);
|
||||
else region.setAttribute(attribute.name, attribute.value);
|
||||
}
|
||||
region.dataset.dsSurface = "true";
|
||||
}
|
||||
for (const card of all(".settings-card,.content-group,.content-panel")) {
|
||||
if (card.dataset.dsCard) continue;
|
||||
card.dataset.dsCard = "true";
|
||||
|
||||
Reference in New Issue
Block a user