Skip to content

Commit

Permalink
style: hide scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
CoodingPenguin committed Jan 17, 2025
1 parent 2fee6aa commit 3336e14
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"remark-math": "^6.0.0",
"svelte": "^5.1.1",
"tailwind-merge": "^2.5.4",
"tailwind-scrollbar-hide": "^2.0.0",
"tailwindcss": "^3.4.14",
"typescript": "^5.6.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { title, description, image } = Astro.props;
---

<!doctype html>
<html lang="en" class="h-full antialiased">
<html lang="en" class="h-full antialiased scrollbar-hide">
<head>
<BaseHead title={title} description={description} image={image} />

Expand Down
3 changes: 2 additions & 1 deletion tailwind.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ export default {
plugin(function ({ addVariant }) {
addVariant(
"prose-inline-code",
'&.prose :where(:not(pre)>code):not(:where([class~="not-prose"] *))',
'&.prose :where(:not(pre)>code):not(:where([class~="not-prose"] *))'
);
}),
require("tailwind-scrollbar-hide"),
],
};

0 comments on commit 3336e14

Please sign in to comment.