mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-22 05:15:32 +01:00
recover a bunch of stats from legacy, fix enhanced armor in sandbox, add game's module layout from the upgrade screen, a bunch of toys from legacy
This commit is contained in:
36 files changed
+2416
-582
No files matched your search
@@ -1,11 +1,30 @@
|
||||
.discriminator {
|
||||
position: absolute;
|
||||
right: var(--space-3);
|
||||
|
||||
font-size: var(--font-size-minor);
|
||||
text-align: right;
|
||||
|
||||
pointer-events: none;
|
||||
|
||||
top: 50%;
|
||||
white-space: nowrap;
|
||||
|
||||
&[data-corner="top-right"],
|
||||
&[data-corner="bottom-right"] {
|
||||
right: var(--space-3);
|
||||
}
|
||||
|
||||
&[data-corner="top-left"],
|
||||
&[data-corner="bottom-left"] {
|
||||
right: var(--space-3);
|
||||
}
|
||||
|
||||
&[data-corner="top-left"],
|
||||
&[data-corner="top-right"] {
|
||||
top: var(--space-3);
|
||||
}
|
||||
|
||||
&[data-corner="bottom-left"],
|
||||
&[data-corner="bottom-right"] {
|
||||
bottom: var(--space-3);
|
||||
}
|
||||
}
|
||||
@@ -2,12 +2,21 @@ import type { ComponentProps } from "react";
|
||||
import { classNames } from "../../ui/classNames";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
interface DiscriminatorProps extends ComponentProps<"span"> {
|
||||
corner?: `${"bottom" | "top"}-${"left" | "right"}`;
|
||||
}
|
||||
|
||||
/** Small label overlaid on the right edge of a `position: relative` parent */
|
||||
export function Discriminator({
|
||||
className,
|
||||
corner = "bottom-right",
|
||||
...props
|
||||
}: ComponentProps<"span">) {
|
||||
}: DiscriminatorProps) {
|
||||
return (
|
||||
<span className={classNames(styles.discriminator, className)} {...props} />
|
||||
<span
|
||||
data-corner={corner}
|
||||
className={classNames(styles.discriminator, className)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user