paricafe/packages/client/src/components/form/section.vue

50 lines
723 B
Vue
Raw Normal View History

2021-09-29 10:50:45 -05:00
<template>
2021-11-28 05:07:37 -06:00
<div v-size="{ max: [500] }" v-sticky-container class="vrtktovh _formBlock">
2021-09-29 10:50:45 -05:00
<div class="label"><slot name="label"></slot></div>
2021-11-28 05:07:37 -06:00
<div class="main _formRoot">
2021-09-29 10:50:45 -05:00
<slot></slot>
</div>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
});
</script>
<style lang="scss" scoped>
.vrtktovh {
2021-11-28 05:07:37 -06:00
margin: 0;
2021-09-29 10:50:45 -05:00
border-top: solid 0.5px var(--divider);
2021-11-28 05:07:37 -06:00
border-bottom: solid 0.5px var(--divider);
padding: 24px 0;
& + .vrtktovh {
border-top: none;
}
&:first-child {
border-top: none;
}
&:last-child {
border-bottom: none;
}
2021-09-29 10:50:45 -05:00
> .label {
font-weight: bold;
2021-11-28 05:07:37 -06:00
padding: 0 0 16px 0;
&:empty {
display: none;
}
2021-09-29 10:50:45 -05:00
}
> .main {
}
}
</style>