mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01: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 { 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"
|
||||||
|
|||||||
@@ -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}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in new issue
Block a user