From a2ae04dd917ec393aa6f2cb47cbaec035a311266 Mon Sep 17 00:00:00 2001 From: Simon Schrape Date: Sat, 13 May 2023 23:17:47 +0200 Subject: [PATCH] Work around Vite dilemma of `link[rel=stylesheet][media]`. Due to https://github.com/vitejs/vite/pull/6751 media-specific stylesheet links are ignored in the build pipeline and handled as static assets instead. --- css/axioms/config/specific/color/brand.scss | 1 - css/{dark-scheme.scss => dark.scheme.scss} | 0 css/index.scss | 2 -- css/{light-scheme.scss => light.scheme.scss} | 0 example/body-copy.html | 7 +++++-- example/color.html | 7 +++++-- example/elements-showcase.html | 7 +++++-- example/layout.html | 7 +++++-- example/shadow.html | 7 +++++-- index.html | 7 +++++-- vite.config.js | 16 +++++++++++++--- 11 files changed, 43 insertions(+), 18 deletions(-) rename css/{dark-scheme.scss => dark.scheme.scss} (100%) rename css/{light-scheme.scss => light.scheme.scss} (100%) diff --git a/css/axioms/config/specific/color/brand.scss b/css/axioms/config/specific/color/brand.scss index b48a934..5262e07 100644 --- a/css/axioms/config/specific/color/brand.scss +++ b/css/axioms/config/specific/color/brand.scss @@ -10,7 +10,6 @@ $suffix: ( factor: 1000, inverse: false, ) !default; -@debug $suffix; /// Brand colors. /// Kept separate from the default configuration to make it optional to import. diff --git a/css/dark-scheme.scss b/css/dark.scheme.scss similarity index 100% rename from css/dark-scheme.scss rename to css/dark.scheme.scss diff --git a/css/index.scss b/css/index.scss index a9a6d4e..a8fc516 100644 --- a/css/index.scss +++ b/css/index.scss @@ -34,5 +34,3 @@ @use "objects/scope/homepage"; @use "utilities"; @use "utilities/dev"; - -@use "fonts"; diff --git a/css/light-scheme.scss b/css/light.scheme.scss similarity index 100% rename from css/light-scheme.scss rename to css/light.scheme.scss diff --git a/example/body-copy.html b/example/body-copy.html index 008e7c4..34d82b8 100644 --- a/example/body-copy.html +++ b/example/body-copy.html @@ -7,8 +7,11 @@ - - + + + + +