mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 00:06:01 +00:00
33 lines
630 B
Svelte
33 lines
630 B
Svelte
<script lang="ts">
|
|
import FontIcon from '../icons/FontIcon.svelte';
|
|
|
|
export let icon = 'icon form';
|
|
</script>
|
|
|
|
<div
|
|
on:click|stopPropagation|preventDefault
|
|
on:mousedown|stopPropagation|preventDefault
|
|
on:mouseup|stopPropagation|preventDefault
|
|
class="showFormButtonMarker"
|
|
>
|
|
<FontIcon {icon} />
|
|
</div>
|
|
|
|
<style>
|
|
div {
|
|
position: absolute;
|
|
right: 0px;
|
|
top: 1px;
|
|
color: var(--theme-font-3);
|
|
background-color: var(--theme-bg-1);
|
|
border: 1px solid var(--theme-bg-1);
|
|
}
|
|
|
|
div:hover {
|
|
color: var(--theme-font-hover);
|
|
border: var(--theme-border);
|
|
top: 1px;
|
|
right: 0px;
|
|
}
|
|
</style>
|