diff --git a/.prettierrc b/.prettierrc index ebf3cb7..29cd1ed 100644 --- a/.prettierrc +++ b/.prettierrc @@ -3,6 +3,7 @@ "semi": true, "singleQuote": false, "printWidth": 120, + "endOfLine":"auto", "plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"], "pluginSearchDirs": false } diff --git a/package.json b/package.json index 3c10309..901e526 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "dico-du-geek", "type": "module", - "version": "1.0.0", + "version": "1.0.1", "scripts": { "dev": "astro dev", "start": "astro dev", diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 8e81504..b5a19c0 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -13,9 +13,9 @@ import "../styles/base.css"; + @@ -85,12 +87,5 @@ import "../styles/base.css"; - diff --git a/src/styles/base.css b/src/styles/base.css index 1d49cac..1cdb857 100644 --- a/src/styles/base.css +++ b/src/styles/base.css @@ -153,3 +153,10 @@ --font-header: "Source Serif 4"; } } + +@layer utilities { + .scrollbar::-webkit-scrollbar-thumb { + border: 4px solid transparent; + background-clip: padding-box; + } +} \ No newline at end of file diff --git a/tailwind.config.cjs b/tailwind.config.cjs index 769427b..cdc8cd0 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -339,5 +339,8 @@ module.exports = { variants: ["sm", "md", "lg", "xl", "hover", "dark", "peer-checked:dark", "group-checked:dark"], }, ], + variants: { + scrollbar: ["dark"], + }, plugins: [require("@tailwindcss/typography"), require("tailwind-scrollbar")({ nocompatible: true })], };