mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-22 05:15:32 +01:00
antagonist settings
This commit is contained in:
15 files changed
+654
-475
No files matched your search
@@ -0,0 +1,14 @@
|
||||
.discriminator {
|
||||
position: absolute;
|
||||
right: var(--space-3);
|
||||
|
||||
font-size: var(--font-size-minor);
|
||||
line-height: 1.2;
|
||||
text-align: right;
|
||||
text-shadow: 0 0 4px black;
|
||||
color: var(--white-a12);
|
||||
|
||||
pointer-events: none;
|
||||
|
||||
top: 50%;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import type { ComponentProps } from "react";
|
||||
import { classNames } from "../../ui/classNames";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
/** Small label overlaid on the right edge of a `position: relative` parent */
|
||||
export function Discriminator({
|
||||
className,
|
||||
...props
|
||||
}: ComponentProps<"span">) {
|
||||
return (
|
||||
<span className={classNames(styles.discriminator, className)} {...props} />
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user