@nldd/design-system 0.8.96 → 0.8.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -10
- package/custom-elements.json +494 -92
- package/dist/components/components.js +609 -177
- package/dist/components/content/icon/icon-aliases.js +1 -1
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.js +15 -4
- package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
- package/dist/components/content/icon/icon-registry.js +12 -12
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/image/image.d.ts +19 -3
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +25 -4
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +36 -0
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/image/image.template.d.ts.map +1 -1
- package/dist/components/content/image/image.template.js +13 -1
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +25 -12
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +25 -12
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/{icon-DQHT2C7z.js → icon-D_ZGezHx.js} +13 -13
- package/dist/components/{icon-button-mevRsl4C.js → icon-button-NN0SrgS3.js} +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/box/box.d.ts +1 -1
- package/dist/components/layout/box/box.js +1 -1
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +2 -1
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +9 -3
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +36 -13
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.js +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +2 -0
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +3 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +5 -0
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +57 -11
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +158 -15
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.js +95 -41
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +4 -0
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +8 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +13 -0
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +4 -0
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +8 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +17 -0
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.d.ts +11 -1
- package/dist/components/layout/page-sections/page-section-controls.d.ts.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.js +11 -2
- package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +5 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +6 -2
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +11 -10
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +2 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +3 -2
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +2 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +4 -0
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +8 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +17 -0
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.js +1 -1
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/{app-view/app-view.d.ts → shell/shell.d.ts} +11 -11
- package/dist/components/layout/shell/shell.d.ts.map +1 -0
- package/dist/components/layout/{app-view/app-view.js → shell/shell.js} +24 -24
- package/dist/components/layout/shell/shell.js.map +1 -0
- package/dist/components/layout/shell/shell.styles.d.ts +2 -0
- package/dist/components/layout/shell/shell.styles.d.ts.map +1 -0
- package/dist/components/layout/{app-view/app-view.styles.js → shell/shell.styles.js} +8 -8
- package/dist/components/layout/shell/shell.styles.js.map +1 -0
- package/dist/components/layout/shell/shell.template.d.ts +4 -0
- package/dist/components/layout/shell/shell.template.d.ts.map +1 -0
- package/dist/components/layout/shell/shell.template.js +9 -0
- package/dist/components/layout/shell/shell.template.js.map +1 -0
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +2 -0
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +2 -0
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +15 -5
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +20 -7
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +4 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +8 -2
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +5 -0
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +13 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +12 -2
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +11 -10
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +10 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +21 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/css/document-reset.css +3 -3
- package/dist/css/rich-text.css +36 -90
- package/dist/nldd.min.js +506 -349
- package/dist/types/vue.d.ts +67 -24
- package/dist/utilities/page-section-mixin.d.ts +5 -0
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +10 -1
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/scroll-mode-controller.d.ts +29 -13
- package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
- package/dist/utilities/scroll-mode-controller.js +48 -13
- package/dist/utilities/scroll-mode-controller.js.map +1 -1
- package/package.json +4 -4
- package/dist/components/layout/app-view/app-view.d.ts.map +0 -1
- package/dist/components/layout/app-view/app-view.js.map +0 -1
- package/dist/components/layout/app-view/app-view.styles.d.ts +0 -2
- package/dist/components/layout/app-view/app-view.styles.d.ts.map +0 -1
- package/dist/components/layout/app-view/app-view.styles.js.map +0 -1
- package/dist/components/layout/app-view/app-view.template.d.ts +0 -4
- package/dist/components/layout/app-view/app-view.template.d.ts.map +0 -1
- package/dist/components/layout/app-view/app-view.template.js +0 -9
- package/dist/components/layout/app-view/app-view.template.js.map +0 -1
- package/dist/components/palettes.html +0 -245
- package/dist/components/sample-images/butterfly-1200.jpg +0 -0
- package/dist/components/sample-images/butterfly-1600.jpg +0 -0
- package/dist/components/sample-images/butterfly-480.jpg +0 -0
- package/dist/components/sample-images/butterfly-960.jpg +0 -0
- package/dist/palettes.html +0 -245
- package/dist/sample-images/butterfly-1200.jpg +0 -0
- package/dist/sample-images/butterfly-1600.jpg +0 -0
- package/dist/sample-images/butterfly-480.jpg +0 -0
- package/dist/sample-images/butterfly-960.jpg +0 -0
|
@@ -8,6 +8,15 @@ export function template(component) {
|
|
|
8
8
|
const ariaCurrent = component.current ? component.currentType : nothing;
|
|
9
9
|
const ariaHaspopup = component.expandable ? 'menu' : (component.haspopup || nothing);
|
|
10
10
|
const ariaExpanded = (component.expandable || component.haspopup) ? String(component.expanded) : nothing;
|
|
11
|
+
// The slot is always rendered, so a slotted icon is noticed when it arrives;
|
|
12
|
+
// the icon name is its fallback.
|
|
13
|
+
const icon = html `
|
|
14
|
+
<span class="menu-bar-item__icon" ?hidden=${!component.icon && !component._hasSlottedIcon}>
|
|
15
|
+
<slot name="icon" @slotchange=${component._onIconSlotChange}>
|
|
16
|
+
${component.icon ? html `<nldd-icon icon=${component.icon}></nldd-icon>` : nothing}
|
|
17
|
+
</slot>
|
|
18
|
+
</span>
|
|
19
|
+
`;
|
|
11
20
|
if (isLink) {
|
|
12
21
|
return html `
|
|
13
22
|
<a class="menu-bar-item"
|
|
@@ -19,11 +28,7 @@ export function template(component) {
|
|
|
19
28
|
aria-haspopup=${ariaHaspopup}
|
|
20
29
|
aria-expanded=${ariaExpanded}
|
|
21
30
|
>
|
|
22
|
-
${
|
|
23
|
-
<span class="menu-bar-item__icon">
|
|
24
|
-
<nldd-icon icon=${component.icon}></nldd-icon>
|
|
25
|
-
</span>
|
|
26
|
-
` : nothing}
|
|
31
|
+
${icon}
|
|
27
32
|
<span class="menu-bar-item__text">
|
|
28
33
|
${component.text}
|
|
29
34
|
</span>
|
|
@@ -47,11 +52,7 @@ export function template(component) {
|
|
|
47
52
|
.popoverTargetElement=${component.popoverTargetElement}
|
|
48
53
|
.popoverTargetAction=${component.popoverTargetAction}
|
|
49
54
|
>
|
|
50
|
-
${
|
|
51
|
-
<span class="menu-bar-item__icon">
|
|
52
|
-
<nldd-icon icon=${component.icon}></nldd-icon>
|
|
53
|
-
</span>
|
|
54
|
-
` : nothing}
|
|
55
|
+
${icon}
|
|
55
56
|
<span class="menu-bar-item__text">
|
|
56
57
|
${component.text}
|
|
57
58
|
</span>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar-item.template.js","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEjE,MAAM,UAAU,QAAQ,CAAC,SAA0B;IAClD,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IACjC,MAAM,UAAU,GAAG,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,IAAI,CAAC,SAAS,CAAC,eAAe,KAAK,MAAM,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;IAClI,MAAM,SAAS,GAAG,SAAS,CAAC,eAAe,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACvF,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC;IACxE,MAAM,YAAY,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,IAAI,OAAO,CAAC,CAAC;IACrF,MAAM,YAAY,GAAG,CAAC,SAAS,CAAC,UAAU,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"menu-bar-item.template.js","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,O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nF,CAAC;IAEF,IAAI,MAAM,EAAE,CAAC;QACZ,OAAO,IAAI,CAAA;;WAEF,QAAkB;oBACT,SAAS,CAAC,QAAQ,IAAI,OAAO;eAClC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO;mBAC/B,WAAW;iBACb,SAAS;oBACN,YAAY;oBACZ,YAAY;;MAE1B,IAAI;;OAEH,SAAS,CAAC,IAAI;;MAEf,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAA;;;;KAI5B,CAAC,CAAC,CAAC,OAAO;;uBAEQ,SAAS,CAAC,aAAa;GAC3C,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAA;;;eAGG,SAAS,CAAC,QAAQ;kBACf,WAAW;gBACb,SAAS;mBACN,YAAY;mBACZ,YAAY;2BACJ,SAAS,CAAC,oBAAoB;0BAC/B,SAAS,CAAC,mBAAmB;;KAElD,IAAI;;MAEH,SAAS,CAAC,IAAI;;KAEf,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAA;;;;IAI5B,CAAC,CAAC,CAAC,OAAO;;sBAEQ,SAAS,CAAC,aAAa;EAC3C,CAAC;AACH,CAAC"}
|
|
@@ -144,7 +144,7 @@ let NLDDTopTitleBar = class NLDDTopTitleBar extends LitElement {
|
|
|
144
144
|
}
|
|
145
145
|
this._wireScrollTarget();
|
|
146
146
|
// The page's scroll target flips when it switches scroll mode (nested
|
|
147
|
-
// inner scroller <-> the document, derived on resize by nldd-
|
|
147
|
+
// inner scroller <-> the document, derived on resize by nldd-shell).
|
|
148
148
|
// Re-wire onto the new target whenever the page reflects a new
|
|
149
149
|
// [data-scroll], so the collapse keeps tracking the live scroller.
|
|
150
150
|
if (this._pageElement) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top-title-bar.js","sourceRoot":"","sources":["../../../../src/components/navigation/top-title-bar/top-title-bar.ts"],"names":[],"mappings":"AAAA;;;;;;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CAAC,WAAW,EAAiB,CAAC,IAAI;gBACvC,CAAC,CAAC,IAAI,CACP,CAAC;QACH,CAAC;IACF,CAAC;IAED,gBAAgB;IAChB,IAAI,UAAU;QACb,OAAO,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC;IACrC,CAAC;IAEO,cAAc;QACrB,IAAI,CAAC,IAAI,CAAC,cAAc;YAAE,OAAO;QAEjC,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAA2B,CAAC;QACzD,IAAI,CAAC,cAAc,GAAI,IAAiB,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC;eAC1E,IAAI,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;QAElD,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;YAC1B,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;gBAC1B,OAAO,CAAC,IAAI,CACX,yCAAyC,IAAI,CAAC,cAAc,yBAAyB;sBACnF,0EAA0E,CAC5E,CAAC;YACH,CAAC;YACD,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC1B,OAAO;QACR,CAAC;QAED,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAEzB,sEAAsE;QACtE,
|
|
1
|
+
{"version":3,"file":"top-title-bar.js","sourceRoot":"","sources":["../../../../src/components/navigation/top-title-bar/top-title-bar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,mBAAm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C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;uDACrC;AAGpB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;iDAChF;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;iDACrC;AAGd;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;oDAChF;AAGjB;IADC,KAAK,EAAE;yDACiB;AASjB;IADP,KAAK,EAAE;uDACsC;AAlClC,eAAe;IAD3B,aAAa,CAAC,oBAAoB,CAAC;GACvB,eAAe,CA8O3B"}
|
|
@@ -20,6 +20,13 @@
|
|
|
20
20
|
* action per bar at most; several actions, or links in running text, belong in
|
|
21
21
|
* nldd-banner.
|
|
22
22
|
*
|
|
23
|
+
* ## Placement
|
|
24
|
+
* The bar is the first thing on the screen: above nldd-top-navigation-bar or
|
|
25
|
+
* nldd-top-title-bar, across the whole app, also when a split view shows
|
|
26
|
+
* several panes. It reports the state of the service, not of one page, so it
|
|
27
|
+
* never sits inside the content or below a top bar. Below a top bar it says so
|
|
28
|
+
* in development.
|
|
29
|
+
*
|
|
23
30
|
* ## ARIA
|
|
24
31
|
* role and aria-live are set automatically from the variant:
|
|
25
32
|
* - critical → role="alert" (implies aria-live="assertive"; interrupts the screen reader)
|
|
@@ -52,6 +59,9 @@ export declare class NLDDStatusBar extends LitElement {
|
|
|
52
59
|
rel: string;
|
|
53
60
|
button: boolean;
|
|
54
61
|
connectedCallback(): void;
|
|
62
|
+
firstUpdated(): void;
|
|
63
|
+
/** DEV-only: warns when a top bar comes before the status bar. Top bars in an overlay are left out, since a sheet or dialog has its own. */
|
|
64
|
+
private _checkPlacement;
|
|
55
65
|
updated(changed: Map<string, unknown>): void;
|
|
56
66
|
private _applyAriaForVariant;
|
|
57
67
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-bar.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/status-bar/status-bar.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"status-bar.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/status-bar/status-bar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,OAAO,4BAA4B,CAAC;AAEpC,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAEzF,qBACa,aAAc,SAAQ,UAAU;IAC5C,OAAgB,MAAM,0BAAmB;IAGzC,OAAO,EAAE,gBAAgB,CAAa;IAGtC,IAAI,SAAM;IAGV,IAAI,SAAM;IAEV,+DAA+D;IAE/D,MAAM,SAAM;IAEZ,sDAAsD;IAEtD,GAAG,SAAM;IAGT,MAAM,UAAS;IAEN,iBAAiB,IAAI,IAAI;IAYzB,YAAY,IAAI,IAAI;IAI7B,4IAA4I;IAC5I,OAAO,CAAC,eAAe;IAWd,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAIrD,OAAO,CAAC,oBAAoB;IAmBnB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,aAAa,CAAC;KACjC;CACD"}
|
|
@@ -26,6 +26,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
26
26
|
* action per bar at most; several actions, or links in running text, belong in
|
|
27
27
|
* nldd-banner.
|
|
28
28
|
*
|
|
29
|
+
* ## Placement
|
|
30
|
+
* The bar is the first thing on the screen: above nldd-top-navigation-bar or
|
|
31
|
+
* nldd-top-title-bar, across the whole app, also when a split view shows
|
|
32
|
+
* several panes. It reports the state of the service, not of one page, so it
|
|
33
|
+
* never sits inside the content or below a top bar. Below a top bar it says so
|
|
34
|
+
* in development.
|
|
35
|
+
*
|
|
29
36
|
* ## ARIA
|
|
30
37
|
* role and aria-live are set automatically from the variant:
|
|
31
38
|
* - critical → role="alert" (implies aria-live="assertive"; interrupts the screen reader)
|
|
@@ -73,6 +80,20 @@ let NLDDStatusBar = class NLDDStatusBar extends LitElement {
|
|
|
73
80
|
// on later variant changes.
|
|
74
81
|
this._applyAriaForVariant(this.variant);
|
|
75
82
|
}
|
|
83
|
+
firstUpdated() {
|
|
84
|
+
if (import.meta.env?.DEV)
|
|
85
|
+
this._checkPlacement();
|
|
86
|
+
}
|
|
87
|
+
/** DEV-only: warns when a top bar comes before the status bar. Top bars in an overlay are left out, since a sheet or dialog has its own. */
|
|
88
|
+
_checkPlacement() {
|
|
89
|
+
const root = this.getRootNode();
|
|
90
|
+
const above = [...root.querySelectorAll('nldd-top-navigation-bar, nldd-top-title-bar')].some((bar) => !bar.closest('nldd-sheet, nldd-modal-dialog, nldd-popover, dialog')
|
|
91
|
+
&& (bar.compareDocumentPosition(this) & Node.DOCUMENT_POSITION_FOLLOWING) !== 0
|
|
92
|
+
&& !bar.contains(this));
|
|
93
|
+
if (above) {
|
|
94
|
+
console.warn('<nldd-status-bar>: The status bar sits below a top bar. It belongs above it, as the first thing on the screen.', this);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
76
97
|
updated(changed) {
|
|
77
98
|
if (changed.has('variant'))
|
|
78
99
|
this._applyAriaForVariant(this.variant);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-bar.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/status-bar/status-bar.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"status-bar.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/status-bar/status-bar.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,4BAA4B,CAAC;AAK7B,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,UAAU;IAAtC;;QAIN,YAAO,GAAqB,SAAS,CAAC;QAGtC,SAAI,GAAG,EAAE,CAAC;QAGV,SAAI,GAAG,EAAE,CAAC;QAEV,+DAA+D;QAE/D,WAAM,GAAG,EAAE,CAAC;QAEZ,sDAAsD;QAEtD,QAAG,GAAG,EAAE,CAAC;QAGT,WAAM,GAAG,KAAK,CAAC;IAwDhB,CAAC;IAtDS,iBAAiB;QACzB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,wEAAwE;QACxE,uEAAuE;QACvE,4EAA4E;QAC5E,4EAA4E;QAC5E,4EAA4E;QAC5E,6EAA6E;QAC7E,4BAA4B;QAC5B,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;IAEQ,YAAY;QACpB,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG;YAAE,IAAI,CAAC,eAAe,EAAE,CAAC;IAClD,CAAC;IAED,4IAA4I;IACpI,eAAe;QACtB,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAA2B,CAAC;QACzD,MAAM,KAAK,GAAG,C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AAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAmB,SAAS,CAAC,EAAE,CAAC;8CACjD;AAGtC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;2CAC5D;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CACjB;AAIV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CACf;AAIZ;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CAClB;AAGT;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAC5B;AArBH,aAAa;IADzB,aAAa,CAAC,iBAAiB,CAAC;GACpB,aAAa,CA6EzB"}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
text-size-adjust: 100%;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
html:has(nldd-
|
|
10
|
-
html:has(nldd-
|
|
9
|
+
html:has(nldd-shell),
|
|
10
|
+
html:has(nldd-shell) body {
|
|
11
11
|
margin: 0;
|
|
12
12
|
height: 100%;
|
|
13
13
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
consumer writes in the light DOM fell back to the browser default, so every
|
|
17
17
|
app solved it with its own `body { font: … }`, each one slightly different.
|
|
18
18
|
Inside @layer reset, so any consumer rule beats it without effort. */
|
|
19
|
-
html:has(nldd-
|
|
19
|
+
html:has(nldd-shell) body {
|
|
20
20
|
font: var(--primitives-font-body-md-regular-snug);
|
|
21
21
|
color: var(--semantics-content-color);
|
|
22
22
|
}
|
package/dist/css/rich-text.css
CHANGED
|
@@ -87,31 +87,33 @@ nldd-rich-text[color="inherit"] figcaption {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/* # Child placement
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
A child belongs to the text unless it is listed: it reads at the main
|
|
91
|
+
measure, so a new component lands there too, and so does code. Media,
|
|
92
|
+
tables and a step bar get the wide accent, and what needs the room (a
|
|
93
|
+
collection, a container) gets the full span. justify-self: start makes room available without
|
|
94
|
+
forcing it: width-100% children fill their span, the rest shrinkwraps.
|
|
94
95
|
In the left-aligned layout the full/wide start lines collapse onto
|
|
95
96
|
main-start, so `full` and `wide` read as rightward bleed there and as
|
|
96
97
|
symmetric spans in [centered]. */
|
|
97
98
|
|
|
98
|
-
nldd-rich-text > div:only-child:not([class], [style], [role], [data-width]) {
|
|
99
|
+
nldd-rich-text > div:only-child:not([class], [style], [role], [data-rich-text-width]) {
|
|
99
100
|
display: contents;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
nldd-rich-text > *,
|
|
103
|
-
nldd-rich-text > div:only-child:not([class], [style], [role], [data-width]) > * {
|
|
104
|
-
grid-column:
|
|
104
|
+
nldd-rich-text > div:only-child:not([class], [style], [role], [data-rich-text-width]) > * {
|
|
105
|
+
grid-column: main;
|
|
105
106
|
justify-self: start;
|
|
107
|
+
max-width: 100%;
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
nldd-rich-text[centered] > *,
|
|
109
|
-
nldd-rich-text[centered] > div:only-child:not([class], [style], [role], [data-width]) > * {
|
|
111
|
+
nldd-rich-text[centered] > div:only-child:not([class], [style], [role], [data-rich-text-width]) > * {
|
|
110
112
|
justify-self: center;
|
|
111
113
|
}
|
|
112
114
|
|
|
113
115
|
nldd-rich-text > :is(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, div, section, blockquote),
|
|
114
|
-
nldd-rich-text > div:only-child:not([class], [style], [role], [data-width]) > :is(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, div, section, blockquote) {
|
|
116
|
+
nldd-rich-text > div:only-child:not([class], [style], [role], [data-rich-text-width]) > :is(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, div, section, blockquote) {
|
|
115
117
|
grid-column: main;
|
|
116
118
|
/* Fill the main column so short text blocks keep a shared left edge —
|
|
117
119
|
justify-self: center would otherwise float a shrinkwrapped heading
|
|
@@ -121,42 +123,45 @@ nldd-rich-text > div:only-child:not([class], [style], [role], [data-width]) > :i
|
|
|
121
123
|
width: 100%;
|
|
122
124
|
}
|
|
123
125
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
nldd-rich-text > :is(img, figure, video, iframe, table),
|
|
127
|
-
nldd-rich-text > div:only-child:not([class], [style], [role], [data-width]) > :is(img, figure, video, iframe, table) {
|
|
126
|
+
nldd-rich-text > :is(img, figure, video, iframe, table, nldd-table, nldd-image, nldd-step-bar),
|
|
127
|
+
nldd-rich-text > div:only-child:not([class], [style], [role], [data-rich-text-width]) > :is(img, figure, video, iframe, table, nldd-table, nldd-image, nldd-step-bar) {
|
|
128
128
|
grid-column: wide;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
nldd-rich-text > :is(hr, nldd-collection, nldd-container),
|
|
132
|
+
nldd-rich-text > div:only-child:not([class], [style], [role], [data-rich-text-width]) > :is(hr, nldd-collection, nldd-container) {
|
|
133
|
+
grid-column: full;
|
|
134
|
+
}
|
|
135
|
+
|
|
131
136
|
nldd-rich-text > :is(pre, nldd-code-viewer),
|
|
132
|
-
nldd-rich-text > div:only-child:not([class], [style], [role], [data-width]) > :is(pre, nldd-code-viewer) {
|
|
137
|
+
nldd-rich-text > div:only-child:not([class], [style], [role], [data-rich-text-width]) > :is(pre, nldd-code-viewer) {
|
|
133
138
|
width: 100%;
|
|
134
139
|
}
|
|
135
140
|
|
|
136
141
|
/* Per-item override for editors; wins on specificity from every default
|
|
137
142
|
above. */
|
|
138
|
-
nldd-rich-text > [data-width="main"],
|
|
139
|
-
nldd-rich-text > div:only-child:not([class], [style], [role], [data-width]) > [data-width="main"] {
|
|
143
|
+
nldd-rich-text > [data-rich-text-width="main"],
|
|
144
|
+
nldd-rich-text > div:only-child:not([class], [style], [role], [data-rich-text-width]) > [data-rich-text-width="main"] {
|
|
140
145
|
grid-column: main;
|
|
141
146
|
}
|
|
142
147
|
|
|
143
|
-
nldd-rich-text > [data-width="wide"],
|
|
144
|
-
nldd-rich-text > div:only-child:not([class], [style], [role], [data-width]) > [data-width="wide"] {
|
|
148
|
+
nldd-rich-text > [data-rich-text-width="wide"],
|
|
149
|
+
nldd-rich-text > div:only-child:not([class], [style], [role], [data-rich-text-width]) > [data-rich-text-width="wide"] {
|
|
145
150
|
grid-column: wide;
|
|
146
151
|
}
|
|
147
152
|
|
|
148
|
-
nldd-rich-text > [data-width="full"],
|
|
149
|
-
nldd-rich-text > div:only-child:not([class], [style], [role], [data-width]) > [data-width="full"] {
|
|
153
|
+
nldd-rich-text > [data-rich-text-width="full"],
|
|
154
|
+
nldd-rich-text > div:only-child:not([class], [style], [role], [data-rich-text-width]) > [data-rich-text-width="full"] {
|
|
150
155
|
grid-column: full;
|
|
151
156
|
}
|
|
152
157
|
|
|
153
158
|
nldd-rich-text > :first-child,
|
|
154
|
-
nldd-rich-text > div:only-child:not([class], [style], [role], [data-width]) > :first-child {
|
|
159
|
+
nldd-rich-text > div:only-child:not([class], [style], [role], [data-rich-text-width]) > :first-child {
|
|
155
160
|
margin-top: 0;
|
|
156
161
|
}
|
|
157
162
|
|
|
158
163
|
nldd-rich-text > :last-child,
|
|
159
|
-
nldd-rich-text > div:only-child:not([class], [style], [role], [data-width]) > :last-child {
|
|
164
|
+
nldd-rich-text > div:only-child:not([class], [style], [role], [data-rich-text-width]) > :last-child {
|
|
160
165
|
margin-bottom: 0;
|
|
161
166
|
}
|
|
162
167
|
|
|
@@ -176,6 +181,7 @@ nldd-rich-text *:focus:not(:focus-visible) {
|
|
|
176
181
|
nldd-rich-text :is(h1, h2, h3, h4, h5, h6) {
|
|
177
182
|
margin-top: var(--_rich-text-spacing);
|
|
178
183
|
margin-bottom: 0;
|
|
184
|
+
overflow-wrap: break-word;
|
|
179
185
|
text-wrap: balance;
|
|
180
186
|
}
|
|
181
187
|
|
|
@@ -183,102 +189,42 @@ nldd-rich-text :is(h1, h2, h3, h4, h5, h6) {
|
|
|
183
189
|
/* # Heading 1 */
|
|
184
190
|
|
|
185
191
|
nldd-rich-text h1 {
|
|
186
|
-
|
|
187
|
-
font: var(--primitives-font-display-1-sm);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
@container (min-width: 641px) and (max-width: 1007px) {
|
|
191
|
-
font: var(--primitives-font-display-1-md);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
@container (min-width: 1008px) {
|
|
195
|
-
font: var(--primitives-font-display-1-lg);
|
|
196
|
-
}
|
|
192
|
+
font: var(--primitives-font-display-1-sm);
|
|
197
193
|
}
|
|
198
194
|
|
|
199
195
|
|
|
200
196
|
/* # Heading 2 */
|
|
201
197
|
|
|
202
198
|
nldd-rich-text h2 {
|
|
203
|
-
|
|
204
|
-
font: var(--primitives-font-display-2-sm);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
@container (min-width: 641px) and (max-width: 1007px) {
|
|
208
|
-
font: var(--primitives-font-display-2-md);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
@container (min-width: 1008px) {
|
|
212
|
-
font: var(--primitives-font-display-2-lg);
|
|
213
|
-
}
|
|
199
|
+
font: var(--primitives-font-display-2-sm);
|
|
214
200
|
}
|
|
215
201
|
|
|
216
202
|
|
|
217
203
|
/* # Heading 3 */
|
|
218
204
|
|
|
219
205
|
nldd-rich-text h3 {
|
|
220
|
-
|
|
221
|
-
font: var(--primitives-font-display-3-sm);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
@container (min-width: 641px) and (max-width: 1007px) {
|
|
225
|
-
font: var(--primitives-font-display-3-md);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
@container (min-width: 1008px) {
|
|
229
|
-
font: var(--primitives-font-display-3-lg);
|
|
230
|
-
}
|
|
206
|
+
font: var(--primitives-font-display-3-sm);
|
|
231
207
|
}
|
|
232
208
|
|
|
233
209
|
|
|
234
210
|
/* # Heading 4 */
|
|
235
211
|
|
|
236
212
|
nldd-rich-text h4 {
|
|
237
|
-
|
|
238
|
-
font: var(--primitives-font-display-4-sm);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
@container (min-width: 641px) and (max-width: 1007px) {
|
|
242
|
-
font: var(--primitives-font-display-4-md);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
@container (min-width: 1008px) {
|
|
246
|
-
font: var(--primitives-font-display-4-lg);
|
|
247
|
-
}
|
|
213
|
+
font: var(--primitives-font-display-4-sm);
|
|
248
214
|
}
|
|
249
215
|
|
|
250
216
|
|
|
251
217
|
/* # Heading 5 */
|
|
252
218
|
|
|
253
219
|
nldd-rich-text h5 {
|
|
254
|
-
|
|
255
|
-
font: var(--primitives-font-display-5-sm);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
@container (min-width: 641px) and (max-width: 1007px) {
|
|
259
|
-
font: var(--primitives-font-display-5-md);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
@container (min-width: 1008px) {
|
|
263
|
-
font: var(--primitives-font-display-5-lg);
|
|
264
|
-
}
|
|
220
|
+
font: var(--primitives-font-display-5-sm);
|
|
265
221
|
}
|
|
266
222
|
|
|
267
223
|
|
|
268
224
|
/* # Heading 6 */
|
|
269
225
|
|
|
270
226
|
nldd-rich-text h6 {
|
|
271
|
-
|
|
272
|
-
font: var(--primitives-font-display-6-sm);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
@container (min-width: 641px) and (max-width: 1007px) {
|
|
276
|
-
font: var(--primitives-font-display-6-md);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
@container (min-width: 1008px) {
|
|
280
|
-
font: var(--primitives-font-display-6-lg);
|
|
281
|
-
}
|
|
227
|
+
font: var(--primitives-font-display-6-sm);
|
|
282
228
|
}
|
|
283
229
|
|
|
284
230
|
|
|
@@ -322,7 +268,7 @@ nldd-rich-text ol {
|
|
|
322
268
|
}
|
|
323
269
|
|
|
324
270
|
nldd-rich-text > :is(ul, ol),
|
|
325
|
-
nldd-rich-text > div:only-child:not([class], [style], [role], [data-width]) > :is(ul, ol) {
|
|
271
|
+
nldd-rich-text > div:only-child:not([class], [style], [role], [data-rich-text-width]) > :is(ul, ol) {
|
|
326
272
|
margin-block: calc(var(--_rich-text-spacing) / -2);
|
|
327
273
|
}
|
|
328
274
|
|
|
@@ -336,7 +282,7 @@ nldd-rich-text ol > li > ol {
|
|
|
336
282
|
nldd-rich-text li {
|
|
337
283
|
margin: calc(var(--_rich-text-spacing) / 2) 0;
|
|
338
284
|
padding: 0;
|
|
339
|
-
/*
|
|
285
|
+
/* Same safety net as p: long strings break instead of overflowing. */
|
|
340
286
|
overflow-wrap: break-word;
|
|
341
287
|
text-wrap: pretty;
|
|
342
288
|
}
|