-
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
1 parent
3f9a9a2
commit 36c7b68
Showing
3 changed files
with
54 additions
and
44 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
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,42 @@ | ||
<script setup lang="ts"> | ||
interface DyeProps { | ||
compact?: boolean | ||
} | ||
withDefaults(defineProps<DyeProps>(), { | ||
compact: false | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div class="dyepicker-wrapper" :class="{ compact }"> | ||
<slot /> | ||
</div> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
.dyepicker-wrapper { | ||
display: grid; | ||
grid-template-columns: 1fr 25px; | ||
height: 400px; | ||
width: auto; | ||
max-height: 400px; | ||
max-width: 400px; | ||
border-radius: var(--radius); | ||
overflow: hidden; | ||
transition: 0.2s ease-in-out; | ||
.pallet { | ||
grid-column: span 2; | ||
} | ||
} | ||
.dyepicker-wrapper.compact { | ||
--compactSize: 50px; | ||
max-height: var(--compactSize); | ||
max-width: var(--compactSize); | ||
} | ||
</style> |
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