Skip to content

Commit

Permalink
workaround for vite cascade layers import bug vitejs/vite#9368
Browse files Browse the repository at this point in the history
  • Loading branch information
argyleink committed Jul 25, 2022
1 parent 9432602 commit 6d3c543
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
3 changes: 0 additions & 3 deletions carousel/carousel.css
@@ -1,6 +1,3 @@
@import "open-props/style";
@import "open-props/normalize";

/*
TODO:
- option for cyclical cycling
Expand Down
12 changes: 10 additions & 2 deletions carousel/index.css
@@ -1,5 +1,13 @@
@import "carousel.css" layer(library);
@import "custom-carousel-items.css" layer(custom);
@layer base, library, carousel, carousel-custom;

@import "op.min.css";
@import "op.norm.min.css";
/* bug in Vite with cascade layers.. */
/* @import "open-props/style"; */
/* @import "open-props/normalize"; */

@import "carousel.css" layer(carousel);
@import "custom-carousel-items.css" layer(carousel-custom);

body {
display: grid;
Expand Down
3 changes: 3 additions & 0 deletions carousel/op.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6d3c543

Please sign in to comment.