mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-04 23:32:54 +01:00
migrate tier list
This commit is contained in:
108 files changed
+1238
-922
No files matched your search
@@ -0,0 +1,24 @@
|
||||
/* Spans the whole slot; its padding keeps the bar off the slot's edges */
|
||||
.marker {
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
|
||||
box-sizing: border-box;
|
||||
padding: var(--space-4) 0;
|
||||
transform: translateX(-50%);
|
||||
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
|
||||
&[data-visible="true"] {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.bar {
|
||||
width: var(--space-1);
|
||||
height: 100%;
|
||||
|
||||
border-radius: var(--radius-max);
|
||||
background-color: var(--accent-12);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import type { Ref } from "react";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
interface InsertionMarkerProps {
|
||||
ref: Ref<HTMLDivElement>;
|
||||
}
|
||||
|
||||
// One shared bar, positioned by whatever is being dragged since only it knows where it would land
|
||||
export function InsertionMarker({ ref }: InsertionMarkerProps) {
|
||||
return (
|
||||
<div ref={ref} className={styles.marker}>
|
||||
<div className={styles.bar} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user