On This Page
diff --git a/apps/www/.vitepress/theme/style.css b/apps/www/.vitepress/theme/style.css index 770d7d6c..e8f3635b 100644 --- a/apps/www/.vitepress/theme/style.css +++ b/apps/www/.vitepress/theme/style.css @@ -223,7 +223,7 @@ pre code { } .line-numbers-wrapper { - @apply font-mono; + @apply !font-mono; } pre code .line { @@ -231,7 +231,9 @@ pre code .line { } .line-number { - @apply !text-sm !inline-block text-muted-foreground leading-[--vp-code-line-height]; + font-size: .75rem ; + color: hsla(0, 0%, 98%, .4) ; + @apply !inline-block leading-[--vp-code-line-height]; } ::view-transition-old(root), diff --git a/apps/www/.vitepress/theme/styles/vp-doc.css b/apps/www/.vitepress/theme/styles/vp-doc.css index 00813715..2a8cc5dc 100644 --- a/apps/www/.vitepress/theme/styles/vp-doc.css +++ b/apps/www/.vitepress/theme/styles/vp-doc.css @@ -171,39 +171,26 @@ * Table * -------------------------------------------------------------------------- */ -/* .vp-doc table { - display: block; - border-collapse: collapse; - margin: 20px 0; - overflow-x: auto; +.vp-doc table { + @apply relative w-full overflow-hidden border-none text-sm; } .vp-doc tr { - border-top: 1px solid var(--vp-c-divider); - transition: background-color 0.5s; + @apply m-0 border-b; } - -.vp-doc tr:nth-child(2n) { - background-color: var(--vp-c-bg-soft); -} - -.vp-doc th, -.vp-doc td { - border: 1px solid var(--vp-c-divider); - padding: 8px 16px; +.vp-doc tbody tr:last-child { + @apply border-b-0; } .vp-doc th { - text-align: left; - font-size: 14px; - font-weight: 600; - color: var(--vp-c-text-2); - background-color: var(--vp-c-bg-soft); + @apply px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right; } .vp-doc td { - font-size: 14px; -} */ +@apply px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right; +} + + /** * Decorational elements @@ -427,7 +414,7 @@ z-index: 3; border-right: 1px solid var(--vp-code-block-divider-color); padding-top: 14px; - padding-left: 8px; + padding-left: 20px; width: 32px; text-align: center; font-family: var(--vp-font-family-mono); diff --git a/apps/www/__registry__/block.ts b/apps/www/__registry__/block.ts index a651fdf7..ae32f0e2 100644 --- a/apps/www/__registry__/block.ts +++ b/apps/www/__registry__/block.ts @@ -191,6 +191,232 @@ export const Index: Record
+
+
+## Usage
+
+```vue:line-numbers title="app/layout.tsx"
+
+
+
+
+
+
+Here's an example of a `SidebarMenu` component rendering a list of projects.
+
+