From 8a3a88ece7458d8524ca0b176a66e70172db4249 Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 16 Sep 2024 12:54:25 -0400 Subject: [PATCH] chore: align style use between docs and demo (#1862) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: align style use between docs and demo/dev-server use cases * chore: add tokens layer to layer cascade * chore: organize demo/dev-server styles * chore: correct stylesheet name * chore: call individiual layers instead of styles.css as a whole * chore: remove demo layer forgot to remove last commit * fix: ignore tokens loaded from node_modules in litcssOptions --------- Co-authored-by: Benny Powers - עם ישראל חי! --- .pfe.config.json | 2 +- docs/_includes/layouts/base.njk | 1 - docs/_includes/layouts/demo.njk | 4 +-- docs/styles/demo/dev-server.css | 56 +++++++++++++++++++++++++++++++ docs/styles/demo/styles.css | 11 ++++++ docs/styles/dev-server/styles.css | 53 ----------------------------- docs/styles/styles.css | 2 ++ scripts/playgrounds.ts | 7 +--- web-dev-server.config.js | 2 +- 9 files changed, 74 insertions(+), 64 deletions(-) create mode 100644 docs/styles/demo/dev-server.css create mode 100644 docs/styles/demo/styles.css delete mode 100644 docs/styles/dev-server/styles.css diff --git a/.pfe.config.json b/.pfe.config.json index 24499216d2..a37b6a7d91 100644 --- a/.pfe.config.json +++ b/.pfe.config.json @@ -16,7 +16,7 @@ "description": "Red Hat Design System", "componentSubpath": "elements", "stylesheets": [ - "/docs/styles/dev-server/styles.css" + "/docs/styles/demo/dev-server.css" ] } } diff --git a/docs/_includes/layouts/base.njk b/docs/_includes/layouts/base.njk index d31a4ce675..4e29ddc3d3 100644 --- a/docs/_includes/layouts/base.njk +++ b/docs/_includes/layouts/base.njk @@ -17,7 +17,6 @@ {% include "../partials/meta.html" %} - {# On browsers that don't yet support native declarative shadow DOM, a diff --git a/docs/_includes/layouts/demo.njk b/docs/_includes/layouts/demo.njk index 92aa17ebc1..d55178d07d 100644 --- a/docs/_includes/layouts/demo.njk +++ b/docs/_includes/layouts/demo.njk @@ -8,8 +8,8 @@ - - + +