@nldd/design-system 0.8.96 → 0.8.98
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 +528 -107
- package/dist/components/components.js +894 -267
- package/dist/components/content/code-viewer/code-viewer.d.ts +4 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +43 -5
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +11 -0
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.js +1 -0
- package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
- 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/content/tooltip/tooltip.d.ts +7 -0
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +29 -2
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/{dist-CH9m014O.js → dist-B2QcygzG.js} +1 -1
- package/dist/components/{dist-DMHTTJRJ.js → dist-BB5mlo7D.js} +2 -2
- package/dist/components/{dist-C3uWRipu.js → dist-Bo5Jeyfn.js} +1 -1
- package/dist/components/{dist-CpW8MF-L.js → dist-Bud_7w5g.js} +232 -214
- package/dist/components/{dist-CvL6_ezZ.js → dist-CA0yDFIt.js} +2 -2
- package/dist/components/{dist-DV6Mp5N1.js → dist-CaxHkqR2.js} +3 -3
- package/dist/components/{dist-BWRYv3Mp.js → dist-Ch3gNAuT.js} +1 -1
- package/dist/components/{dist-PlhQXXtE.js → dist-DbNhCpS5.js} +1 -1
- package/dist/components/{dist-DTOshgo1.js → dist-DkqAbJH8.js} +1 -1
- package/dist/components/{dist-BWEAw34D.js → dist-DnZmcpbQ.js} +1 -1
- package/dist/components/{dist-Bi4EHsFY.js → dist-iC2RTM0V.js} +2 -2
- package/dist/components/forms/validation-list/validation-list.d.ts +19 -9
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +38 -12
- package/dist/components/forms/validation-list/validation-list.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-CJIikwyu.js} +16 -3
- 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/inputs/segmented-control/segmented-control.d.ts +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +1 -4
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +1 -4
- package/dist/components/inputs/toggle-button/toggle-button.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 +13 -10
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +6 -6
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.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/list.d.ts +6 -1
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +7 -2
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +31 -6
- 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 +55 -11
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +7 -6
- package/dist/components/lists-and-tables/list-item/list-item.template.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/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +19 -2
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +7 -2
- 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 +15 -3
- 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 +1 -0
- 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 +55 -40
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts +50 -4
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +140 -13
- package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.js +1 -0
- package/dist/components/navigation/skip-link/skip-link.template.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +8 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +9 -2
- 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 +912 -736
- package/dist/types/vue.d.ts +85 -38
- 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 +5 -5
- 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
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
|
}
|