mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: move to css chunk 2
This commit is contained in:
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 type { ReactNode } from 'react';
|
||||
import './index.css';
|
||||
|
||||
interface BlitzKitThemeProps extends ThemeProps {
|
||||
children: ReactNode;
|
||||
@@ -8,12 +7,14 @@ interface BlitzKitThemeProps extends ThemeProps {
|
||||
|
||||
export function BlitzKitTheme({
|
||||
children,
|
||||
className,
|
||||
style,
|
||||
...props
|
||||
}: BlitzKitThemeProps) {
|
||||
return (
|
||||
<Theme
|
||||
className="blitzkit-theme"
|
||||
style={{ minHeight: 'unset', ...style }}
|
||||
className={`blitzkit-theme ${className}`}
|
||||
grayColor="mauve"
|
||||
appearance="dark"
|
||||
panelBackground="solid"
|
||||
|
||||
@@ -8,7 +8,7 @@ const gameDefinitions = await fetchGameDefinitions();
|
||||
|
||||
<style>
|
||||
.footer {
|
||||
backgroundcolor: var(--color-panel);
|
||||
background-color: var(--color-panel);
|
||||
}
|
||||
</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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user