mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
migrate tank filters
This commit is contained in:
1 parent
d477a3a7a4
commit
1e1040816b
13 files changed
+153
-60
No files matched your search
@@ -0,0 +1,28 @@
|
||||
.tooltip {
|
||||
position: relative;
|
||||
|
||||
.text {
|
||||
display: none;
|
||||
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
|
||||
z-index: 1;
|
||||
background-color: var(--gray-12);
|
||||
color: var(--gray-1);
|
||||
border-radius: var(--space-3);
|
||||
|
||||
padding: var(--space-2) var(--space-3);
|
||||
margin-bottom: var(--space-3);
|
||||
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.text {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import type { ReactNode } from "react";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
interface Props {
|
||||
children: ReactNode;
|
||||
tooltip: string;
|
||||
}
|
||||
|
||||
export function Tooltip({ children, tooltip }: Props) {
|
||||
return (
|
||||
<div className={styles.tooltip}>
|
||||
<div className={styles.text}>{tooltip}</div>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user