diff --git a/src/hljs.scss b/src/components/Utils/HighlightCode.scss similarity index 98% rename from src/hljs.scss rename to src/components/Utils/HighlightCode.scss index a121a58..9127907 100644 --- a/src/hljs.scss +++ b/src/components/Utils/HighlightCode.scss @@ -1,5 +1,5 @@ $color-mode-type: data; -@import "../node_modules/bootstrap/scss/mixins"; +@import "../../../node_modules/bootstrap/scss/mixins"; @include color-mode(dark) { /*! diff --git a/src/components/Utils/HighlightCode.tsx b/src/components/Utils/HighlightCode.tsx index 504022b..2aadbb9 100644 --- a/src/components/Utils/HighlightCode.tsx +++ b/src/components/Utils/HighlightCode.tsx @@ -1,3 +1,4 @@ +import './HighlightCode.scss'; import { Component, ComponentProps, createMemo, splitProps } from "solid-js"; import hljs from 'highlight.js/lib/core'; import hljsLangC from 'highlight.js/lib/languages/c'; diff --git a/src/bootstrap.scss b/src/index.scss similarity index 67% rename from src/bootstrap.scss rename to src/index.scss index b48c163..10abe62 100644 --- a/src/bootstrap.scss +++ b/src/index.scss @@ -1,56 +1,56 @@ // 1. Include functions first (so you can manipulate colors, SVGs, calc, etc) -@import "../node_modules/bootstrap/scss/functions"; +@import "bootstrap/scss/functions"; // 2. Include any default variable overrides here $info: #0aa7c7; // 3. Include remainder of required Bootstrap stylesheets (including any separate color mode stylesheets) -@import "../node_modules/bootstrap/scss/variables"; -@import "../node_modules/bootstrap/scss/variables-dark"; +@import "bootstrap/scss/variables"; +@import "bootstrap/scss/variables-dark"; // 4. Include any default map overrides here // 5. Include remainder of required parts -@import "../node_modules/bootstrap/scss/maps"; -@import "../node_modules/bootstrap/scss/mixins"; -@import "../node_modules/bootstrap/scss/utilities"; +@import "bootstrap/scss/maps"; +@import "bootstrap/scss/mixins"; +@import "bootstrap/scss/utilities"; // 6. Optionally include any other parts as needed -@import "../node_modules/bootstrap/scss/root"; -@import "../node_modules/bootstrap/scss/reboot"; -@import "../node_modules/bootstrap/scss/type"; -@import "../node_modules/bootstrap/scss/images"; -@import "../node_modules/bootstrap/scss/containers"; -@import "../node_modules/bootstrap/scss/grid"; -@import "../node_modules/bootstrap/scss/tables"; -@import "../node_modules/bootstrap/scss/forms"; -@import "../node_modules/bootstrap/scss/buttons"; -@import "../node_modules/bootstrap/scss/transitions"; -@import "../node_modules/bootstrap/scss/dropdown"; -@import "../node_modules/bootstrap/scss/button-group"; -@import "../node_modules/bootstrap/scss/nav"; -@import "../node_modules/bootstrap/scss/navbar"; -@import "../node_modules/bootstrap/scss/card"; -@import "../node_modules/bootstrap/scss/accordion"; -@import "../node_modules/bootstrap/scss/breadcrumb"; -@import "../node_modules/bootstrap/scss/pagination"; -@import "../node_modules/bootstrap/scss/badge"; -@import "../node_modules/bootstrap/scss/alert"; -@import "../node_modules/bootstrap/scss/progress"; -@import "../node_modules/bootstrap/scss/list-group"; -@import "../node_modules/bootstrap/scss/close"; -@import "../node_modules/bootstrap/scss/toasts"; -@import "../node_modules/bootstrap/scss/modal"; -@import "../node_modules/bootstrap/scss/tooltip"; -@import "../node_modules/bootstrap/scss/popover"; -@import "../node_modules/bootstrap/scss/carousel"; -@import "../node_modules/bootstrap/scss/spinners"; -@import "../node_modules/bootstrap/scss/offcanvas"; -@import "../node_modules/bootstrap/scss/placeholders"; -@import "../node_modules/bootstrap/scss/helpers"; +@import "bootstrap/scss/root"; +@import "bootstrap/scss/reboot"; +@import "bootstrap/scss/type"; +@import "bootstrap/scss/images"; +@import "bootstrap/scss/containers"; +@import "bootstrap/scss/grid"; +@import "bootstrap/scss/tables"; +@import "bootstrap/scss/forms"; +@import "bootstrap/scss/buttons"; +@import "bootstrap/scss/transitions"; +@import "bootstrap/scss/dropdown"; +@import "bootstrap/scss/button-group"; +@import "bootstrap/scss/nav"; +@import "bootstrap/scss/navbar"; +@import "bootstrap/scss/card"; +@import "bootstrap/scss/accordion"; +@import "bootstrap/scss/breadcrumb"; +@import "bootstrap/scss/pagination"; +@import "bootstrap/scss/badge"; +@import "bootstrap/scss/alert"; +@import "bootstrap/scss/progress"; +@import "bootstrap/scss/list-group"; +@import "bootstrap/scss/close"; +@import "bootstrap/scss/toasts"; +@import "bootstrap/scss/modal"; +@import "bootstrap/scss/tooltip"; +@import "bootstrap/scss/popover"; +@import "bootstrap/scss/carousel"; +@import "bootstrap/scss/spinners"; +@import "bootstrap/scss/offcanvas"; +@import "bootstrap/scss/placeholders"; +@import "bootstrap/scss/helpers"; // 7. Optionally include utilities API last to generate classes based on the Sass map in `_utilities.scss` -@import "../node_modules/bootstrap/scss/utilities/api"; +@import "bootstrap/scss/utilities/api"; // 8. Add additional custom code here body { @@ -194,3 +194,5 @@ body { --bs-danger-rgb: 157, 67, 76; } } + +@import "bootstrap-icons/font/bootstrap-icons.css"; diff --git a/src/index.tsx b/src/index.tsx index 8f41d88..ea18cd2 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,7 +1,5 @@ /* @refresh reload */ -import "./bootstrap.scss"; -import "bootstrap-icons/font/bootstrap-icons.css"; -import "./hljs.scss"; +import "./index.scss"; import { render } from "solid-js/web"; import { Root } from "@/components/Layout/Root.js"; diff --git a/vite.config.ts b/vite.config.ts index 9219523..6b26c08 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -48,7 +48,7 @@ export default defineConfig({ css: { preprocessorOptions: { scss: { - silenceDeprecations: ["import", "color-functions", "global-builtin", "if-function"] + silenceDeprecations: ["import", "color-functions", "global-builtin", "if-function"], }, } },