From dcdbec764e7bf0949fa60c3fa8cecf294cfd5b7e Mon Sep 17 00:00:00 2001 From: Louis-Maxime Piton Date: Tue, 12 Nov 2024 14:59:33 +0100 Subject: [PATCH] feat: add Dimension tokens, utilities and documentation (#2754) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Julien Déramond Co-authored-by: Hannah Issermann Co-authored-by: Vincent Prothais --- .bundlewatch.config.json | 12 +- .cspell.json | 14 +- js/tests/integration/index.html | 8 +- js/tests/unit/toast.spec.js | 4 +- js/tests/visual/collapse.html | 8 +- js/tests/visual/dropdown.html | 14 +- js/tests/visual/input.html | 12 +- js/tests/visual/modal.html | 10 +- js/tests/visual/toast.html | 8 +- js/tests/visual/tooltip.html | 8 +- scss/_maps.scss | 112 +- scss/_ouds-maps.scss | 48 - scss/_root.scss | 41 + scss/_utilities.scss | 348 +- scss/_variables.scss | 16 +- scss/ouds-web-grid.scss | 2 +- scss/ouds-web-reboot.scss | 2 +- scss/ouds-web-utilities.scss | 2 +- scss/ouds-web.scss | 2 +- .../customize/_ouds-web-bootstrap.test.scss | 23526 +++++++++++++++- .../_auto-import-of-variables-dark.test.scss | 2 +- scss/tests/mixins/_color-modes.test.scss | 2 +- scss/tests/mixins/_utilities.test.scss | 2 +- scss/tests/utilities/_api.test.scss | 2 +- scss/tokens/_composite.scss | 15 + site/assets/js/stackblitz.js | 2 +- site/assets/js/tac.js | 2 +- site/assets/scss/_component-examples.scss | 17 + site/assets/scss/docs.scss | 2 +- site/assets/scss/search.scss | 2 +- site/content/404.md | 2 +- site/content/docs/0.0/about/team.md | 4 +- .../docs/0.0/customize/custom-libraries.md | 10 +- site/content/docs/0.0/customize/options.md | 8 +- .../docs/0.0/examples/grid-system/index.html | 32 +- .../content/docs/0.0/examples/grid/index.html | 106 +- site/content/docs/0.0/helpers/stacks.md | 36 +- .../docs/0.0/helpers/stretched-link.md | 10 +- site/content/docs/0.0/layout/columns.md | 8 +- site/content/docs/0.0/layout/containers.md | 2 +- site/content/docs/0.0/layout/css-grid.md | 2 +- site/content/docs/0.0/layout/grid.md | 4 +- site/content/docs/0.0/layout/gutters.md | 177 +- site/content/docs/0.0/layout/utilities.md | 4 +- .../docs/0.0/migration-from-boosted.md | 343 +- site/content/docs/0.0/migration.md | 300 +- site/content/docs/0.0/utilities/api.md | 22 +- site/content/docs/0.0/utilities/borders.md | 6 +- site/content/docs/0.0/utilities/display.md | 8 +- site/content/docs/0.0/utilities/flex.md | 478 +- site/content/docs/0.0/utilities/opacity.md | 28 +- site/content/docs/0.0/utilities/overflow.md | 24 +- site/content/docs/0.0/utilities/position.md | 8 +- site/content/docs/0.0/utilities/shadows.md | 24 +- site/content/docs/0.0/utilities/sizing.md | 55 +- site/content/docs/0.0/utilities/spacing.md | 365 +- site/content/docs/0.0/utilities/z-index.md | 10 +- site/content/docs/versions.md | 4 +- site/data/sidebar.yml | 3 - site/layouts/_default/404.html | 2 +- site/layouts/_default/docs.html | 32 +- site/layouts/_default/examples.html | 2 +- site/layouts/_default/single.html | 12 +- site/layouts/partials/docs-navbar.html | 8 +- site/layouts/partials/docs-sidebar.html | 8 +- site/layouts/partials/docs-subnav.html | 4 +- site/layouts/partials/docs-versions.html | 2 +- site/layouts/partials/examples/main.html | 14 +- site/layouts/partials/footer.html | 18 +- site/layouts/partials/guide-footer.md | 2 +- site/layouts/partials/home/css-variables.html | 18 +- site/layouts/partials/home/customize.html | 10 +- site/layouts/partials/home/get-started.html | 22 +- site/layouts/partials/home/masthead.html | 24 +- site/layouts/partials/skippy.html | 6 +- site/layouts/partials/theme-toggler.html | 10 +- .../shortcodes/bootstrap-compatibility.html | 6 +- .../shortcodes/design-callout-alert.html | 2 +- site/layouts/shortcodes/example.html | 6 +- site/layouts/shortcodes/js-docs.html | 8 +- site/layouts/shortcodes/scss-docs.html | 8 +- site/layouts/shortcodes/svg-docs.html | 2 +- stories/create-stories-from-doc.js | 2 +- 83 files changed, 25033 insertions(+), 1523 deletions(-) delete mode 100644 scss/_ouds-maps.scss create mode 100644 scss/tokens/_composite.scss diff --git a/.bundlewatch.config.json b/.bundlewatch.config.json index 1ab9bc448c..1505b2be6f 100644 --- a/.bundlewatch.config.json +++ b/.bundlewatch.config.json @@ -2,11 +2,11 @@ "files": [ { "path": "./dist/css/ouds-web-bootstrap.css", - "maxSize": "51.0 kB" + "maxSize": "61.0 kB" }, { "path": "./dist/css/ouds-web-bootstrap.min.css", - "maxSize": "47.75 kB" + "maxSize": "58.0 kB" }, { "path": "./dist/css/ouds-web-grid.css", @@ -26,19 +26,19 @@ }, { "path": "./dist/css/ouds-web-utilities.css", - "maxSize": "14.25 kB" + "maxSize": "20.75 kB" }, { "path": "./dist/css/ouds-web-utilities.min.css", - "maxSize": "13.5 kB" + "maxSize": "19.75 kB" }, { "path": "./dist/css/ouds-web.css", - "maxSize": "49.0 kB" + "maxSize": "54.75 kB" }, { "path": "./dist/css/ouds-web.min.css", - "maxSize": "45.5 kB" + "maxSize": "51.5 kB" }, { "path": "./dist/js/ouds-web.bundle.js", diff --git a/.cspell.json b/.cspell.json index 27b35a860b..1ed62dcfa0 100644 --- a/.cspell.json +++ b/.cspell.json @@ -80,7 +80,18 @@ "navigations", "navs", "Neue", + "nhuge", + "njumbo", + "nmedium", "noindex", + "nshort", + "nshorter", + "nshortest", + "nsmash", + "nspacious", + "ntall", + "ntaller", + "ntallest", "Noto", "offcanvas", "offcanvases", @@ -120,6 +131,7 @@ "svgs", "tabbable", "tarteaucitron", + "tblrsexy", "textareas", "tiktok", "toggleable", @@ -160,4 +172,4 @@ "CHANGELOG.md" ], "useGitignore": true -} \ No newline at end of file +} diff --git a/js/tests/integration/index.html b/js/tests/integration/index.html index b5dccb6af5..c4d9d30c14 100644 --- a/js/tests/integration/index.html +++ b/js/tests/integration/index.html @@ -11,15 +11,15 @@ Hello, world! -
+

Hello, world!

-
- -