feat: move to css chunk 2

This commit is contained in:
TrèsAbhi committed 2024-11-04 10:28:49 -06:00
1 parent a2b67e215d
commit 6b8433c690
6 files changed
+19 -17

No files matched your search

@@ -1,3 +0,0 @@
.blitzkit-theme {
min-height: unset !important;
}
@@ -1,6 +1,5 @@
import { Theme, type ThemeProps } from '@radix-ui/themes'; import { Theme, type ThemeProps } from '@radix-ui/themes';
import type { ReactNode } from 'react'; import type { ReactNode } from 'react';
import './index.css';
interface BlitzKitThemeProps extends ThemeProps { interface BlitzKitThemeProps extends ThemeProps {
children: ReactNode; children: ReactNode;
@@ -8,12 +7,14 @@ interface BlitzKitThemeProps extends ThemeProps {
export function BlitzKitTheme({ export function BlitzKitTheme({
children, children,
className,
style, style,
...props ...props
}: BlitzKitThemeProps) { }: BlitzKitThemeProps) {
return ( return (
<Theme <Theme
className="blitzkit-theme" style={{ minHeight: 'unset', ...style }}
className={`blitzkit-theme ${className}`}
grayColor="mauve" grayColor="mauve"
appearance="dark" appearance="dark"
panelBackground="solid" panelBackground="solid"
+1 -1
View File
@@ -8,7 +8,7 @@ const gameDefinitions = await fetchGameDefinitions();
<style> <style>
.footer { .footer {
backgroundcolor: var(--color-panel); background-color: var(--color-panel);
} }
</style> </style>
@@ -1,11 +0,0 @@
import { Skeleton, type SkeletonProps } from '@radix-ui/themes';
export function InlineSkeleton({ style, ...props }: SkeletonProps) {
return (
<Skeleton
height="1em"
style={{ display: 'inline-block', ...style }}
{...props}
/>
);
}
@@ -0,0 +1,3 @@
.inline-skeleton {
display: inline-block;
}
@@ -0,0 +1,12 @@
import { Skeleton, type SkeletonProps } from '@radix-ui/themes';
import './index.css';
export function InlineSkeleton({ className, ...props }: SkeletonProps) {
return (
<Skeleton
className={`inline-skeleton ${className}`}
height="1em"
{...props}
/>
);
}