mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-31 15:37:26 -08:00
68 lines
1.2 KiB
Vue
68 lines
1.2 KiB
Vue
|
<template>
|
||
|
<div>
|
||
|
<div
|
||
|
v-for="size in ['5xs', '4xs', '3xs', '2xs', 'xs', 's', 'm', 'l', 'xl', '2xl', '3xl', '4xl', '5xl']"
|
||
|
class="spacing-group"
|
||
|
:key="size"
|
||
|
>
|
||
|
<div
|
||
|
class="spacing-example"
|
||
|
:class="`${property[0]}${side ? side[0] : ''}-${size}`"
|
||
|
>
|
||
|
<div class="spacing-box" />
|
||
|
<div class="label">
|
||
|
{{property[0]}}{{side ? side[0] : ''}}-{{size}}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
<script lang="ts">
|
||
|
import Vue from 'vue';
|
||
|
|
||
|
export default Vue.extend({
|
||
|
name: 'SpacingPreview',
|
||
|
props: {
|
||
|
property: {
|
||
|
type: String,
|
||
|
default: 'padding',
|
||
|
},
|
||
|
side: {
|
||
|
type: String,
|
||
|
default: '',
|
||
|
},
|
||
|
},
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss">
|
||
|
$box-size: 64px;
|
||
|
|
||
|
.spacing-group {
|
||
|
border: var(--border-base);
|
||
|
margin: var(--spacing-s);
|
||
|
display: inline-flex;
|
||
|
}
|
||
|
|
||
|
.spacing-example {
|
||
|
background: white;
|
||
|
position: relative;
|
||
|
background: hsla(var(--color-primary-h), var(--color-primary-s), var(--color-primary-l), 0.25);
|
||
|
}
|
||
|
|
||
|
.spacing-box {
|
||
|
width: $box-size;
|
||
|
height: $box-size;
|
||
|
display: block;
|
||
|
position: relative;
|
||
|
background: var(--color-primary);
|
||
|
}
|
||
|
|
||
|
.label {
|
||
|
position: absolute;
|
||
|
bottom: -1rem;
|
||
|
right: 0;
|
||
|
font-size: var(--font-size-s);
|
||
|
}
|
||
|
</style>
|