summaryrefslogblamecommitdiffstatshomepage
path: root/frontend/src/lib/selection/SelectionOverlay.svelte
blob: 04ff382bc2aafc4b17de93e42876a86958312c73 (plain) (tree)

































                                                                                            
<script lang="ts">
	export let selected: boolean;
	export let position: 'top' | 'right' | 'left' | 'bottom';
	export let centered = false;
</script>

{#if selected}
	<div
		class:items-center={centered}
		class="{position} pointer-events-none absolute z-[1] flex bg-emerald-700/95"
	>
		<span class="icon-base icon-[material-symbols--check] text-[2rem]" />
	</div>
{/if}

<style lang="postcss">
	.top,
	.bottom {
		width: 100%;
	}

	.left,
	.right {
		height: 100%;
	}

	.bottom {
		bottom: 0;
	}

	.right {
		right: 0;
	}
</style>