docs: fix infinite scroll, update next.js, other fixes (#9441)

* update nextjs

* badge + scroll fixes
This commit is contained in:
Shahed Nasser
2024-10-03 14:17:33 +03:00
committed by GitHub
parent 48e00169d2
commit ab5a7ca691
20 changed files with 180 additions and 586 deletions
+22 -25
View File
@@ -2,32 +2,29 @@
@tailwind components;
@tailwind utilities;
:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}
@layer base {
@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
html {
-webkit-font-smoothing: antialiased;
}
}
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}
@layer utilities {
.text-balance {
text-wrap: balance;
body {
@apply overflow-x-hidden;
}
}
*::selection {
@apply bg-medusa-bg-highlight;
}
* {
scrollbar-color: var(--docs-border-base) var(--docs-bg-base);
}
aside * {
scrollbar-color: var(--docs-border-base) var(--docs-bg-subtle);
}
body[data-modal="opened"] {
@apply !overflow-hidden;
}
}