Add basic HTML for layers in the layer panel (#97)

This commit is contained in:
Keavon Chambers
2021-05-02 13:55:22 -07:00
parent f8ebff033d
commit 4ffb836673
3 changed files with 155 additions and 4 deletions

View File

@@ -0,0 +1,58 @@
<template>
<div class="icon-container" :class="[`size-${String(size)}`, gapAfter && 'gap-after']">
<slot></slot>
</div>
</template>
<style lang="scss">
.icon-container {
display: inline-block;
flex: 0 0 auto;
outline: none;
border: none;
padding: 0;
width: 16px;
height: 16px;
background: none;
font-weight: bold;
font-size: 10px;
border-radius: 2px;
color: #ddd;
fill: #ddd;
&:not(.gap-after) + .icon-container {
margin-left: 0;
}
&.size-10 {
width: 10px;
height: 10px;
}
&.size-12 {
width: 12px;
height: 12px;
}
&.size-16 {
width: 16px;
height: 16px;
}
&.size-24 {
width: 24px;
height: 24px;
}
}
</style>
<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({
props: {
size: { type: Number, required: true },
gapAfter: { type: Boolean, default: false },
},
});
</script>