-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@import "../variables.scss"; | ||
|
||
.drag-drop-indicator { | ||
pointer-events: none; | ||
--uno: fixed w-full h-full left-0 top-0; | ||
--uno: border-0 border-solid box-border; | ||
|
||
border-color: transparent; | ||
|
||
&.hover { | ||
--uno: border-12 border-solid box-border; | ||
border-color: rgba($theme-primary-3, 0.5); | ||
} | ||
|
||
transition: all 0.05s ease-in-out; | ||
|
||
&.hover { | ||
transition: all 0.05s ease-in-out; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { JSX, createEffect, createMemo, createSignal, mergeProps, splitProps } from "solid-js"; | ||
import './DragDropIndicator.scss'; | ||
|
||
interface DragDropIndicatorProps { | ||
hover: boolean, | ||
[key: string]: any, | ||
} | ||
|
||
|
||
export default function DragDropIndicator(props: DragDropIndicatorProps): JSX.Element { | ||
return ( | ||
<div class={'drag-drop-indicator ' + (props.class ?? "") + (props.hover ? "hover" : "")} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters