mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
feat(css): inline popover styles from carbon 10.47
This commit is contained in:
parent
bbd2cbe62c
commit
a2b3b3ba2d
1 changed files with 8 additions and 0 deletions
|
@ -5,6 +5,14 @@ const postcss = require("postcss");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
|
const popover = fs.readFileSync(
|
||||||
|
"node_modules/carbon-components-10.47/src/components/popover/_popover.scss",
|
||||||
|
"utf-8"
|
||||||
|
);
|
||||||
|
const popover_mod = popover.replace(/..\/..\//g, "carbon-components/scss/");
|
||||||
|
|
||||||
|
fs.writeFileSync("css/_popover.scss", popover_mod);
|
||||||
|
|
||||||
const scss = fs
|
const scss = fs
|
||||||
.readdirSync("css")
|
.readdirSync("css")
|
||||||
.filter((file) => file.endsWith(".scss"))
|
.filter((file) => file.endsWith(".scss"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue