mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20:05:06 +03:00
* init site * add nav menu * add props table component * init all the examples • also includes moving a bunch of ./ui files to ./ui-patterns * update package • might need to remove some of these * Update rehype-component.ts * move nav * more changes * add new source information to contentlayer * fix copy buttons * add text-confirm. start new concept of "fragments" * move base path. add homepage. add theme selection * added colors * add form-item-layout * temporary fix code blocks in light mode. they currently don't switch theme to theme * start adding code themes * Update dark.json * update code block themes * fix animations * add cdmk search * export registry of icons in ./icons package * add comments * add icon copy stuff * Update icons.tsx * more docs * more docs. cleaned up colors and icons docs * Update theming.mdx * add more docs * update * add package * Update tailwind.config.js * update content * Update drawer-demo.tsx * Update aspect-ratio-demo.tsx * add new blocks * Update source-panel.tsx * Update source-panel.tsx * Update source-panel.tsx * add new source block * Update source-panel.tsx * Update _app.tsx * Update page.tsx * Delete layout-old.tsx * remove old themes * remove old ui registry * comment out nav items * Update package-lock.json * Update AssistantChatForm.tsx * move back * move again * update * Update index.tsx * Update package-lock.json * Update package-lock.json * Update package-lock.json * update package * udpate prettier * fix tag issues * Update package-lock.json * update to contentlayer2 * update package-lock.json * fix type errors * ignore spelling * feat: add RadioGroupStacked * feat: add `slot` behaviour to `<FormItem/>` * sneaky add in better line highlighting * add RadioGroupCard * update colors * Update package-lock.json * Update avoid-typos.yml * Update navigation-menu-demo.tsx * Add a redirect from / to the base path. --------- Co-authored-by: Alaister Young <a@alaisteryoung.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
90 lines
1.9 KiB
CSS
90 lines
1.9 KiB
CSS
/* [data-theme="light"] {
|
|
display: block;
|
|
} */
|
|
|
|
/* [data-theme="dark"] {
|
|
display: none;
|
|
} */
|
|
|
|
.dark [data-theme='light'] {
|
|
display: none;
|
|
}
|
|
|
|
.dark [data-theme='dark'] {
|
|
display: block;
|
|
}
|
|
|
|
[data-rehype-pretty-code-fragment] {
|
|
@apply relative text-white;
|
|
}
|
|
|
|
[data-rehype-pretty-code-fragment] code {
|
|
@apply grid min-w-full break-words rounded-none border-0 bg-transparent p-0;
|
|
counter-reset: line;
|
|
box-decoration-break: clone;
|
|
}
|
|
|
|
[data-rehype-pretty-code-fragment] .line {
|
|
@apply px-4 min-h-[1rem] py-0.5 w-full inline-block;
|
|
}
|
|
|
|
[data-rehype-pretty-code-fragment] [data-line-numbers] .line {
|
|
@apply px-2;
|
|
}
|
|
|
|
[data-rehype-pretty-code-fragment] [data-line-numbers] > .line::before {
|
|
@apply text-foreground-muted text-xs;
|
|
counter-increment: line;
|
|
content: counter(line);
|
|
display: inline-block;
|
|
width: 1.8rem;
|
|
margin-right: 1.4rem;
|
|
text-align: right;
|
|
}
|
|
|
|
[data-rehype-pretty-code-fragment] .line--highlighted {
|
|
@apply relative bg-surface-200 dark:bg-surface-100;
|
|
}
|
|
|
|
[data-rehype-pretty-code-fragment] .line--highlighted {
|
|
@apply border-foreground-muted border-l-2;
|
|
}
|
|
|
|
[data-rehype-pretty-code-fragment] .line-highlighted span {
|
|
@apply relative;
|
|
}
|
|
|
|
[data-rehype-pretty-code-fragment] .word--highlighted {
|
|
@apply rounded-md bg-zinc-700/50 border-zinc-700/70 p-1;
|
|
}
|
|
|
|
.dark [data-rehype-pretty-code-fragment] .word--highlighted {
|
|
@apply bg-zinc-900;
|
|
}
|
|
|
|
[data-rehype-pretty-code-title] {
|
|
@apply mt-2 pt-6 px-4 text-sm font-medium;
|
|
}
|
|
|
|
[data-rehype-pretty-code-title] + pre {
|
|
@apply mt-2;
|
|
}
|
|
|
|
.mdx > .steps:first-child > h3:first-child {
|
|
@apply mt-0;
|
|
}
|
|
|
|
.steps > h3 {
|
|
@apply mt-8 mb-4 text-base font-semibold;
|
|
}
|
|
|
|
/* .preview-grid-background {
|
|
position: absolute;
|
|
inset: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
background-image: linear-gradient(to right, #80808012 1px, transparent 1px),
|
|
linear-gradient(to bottom, #80808012 1px, transparent 1px);
|
|
background-size: 24px 24px;
|
|
} */
|