mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 08:43:08 +02:00
43 lines
655 B
Vue
43 lines
655 B
Vue
<template>
|
|
<div :class="[$style.root, { [$style.rootFirst]: first }]">
|
|
<div :class="[$style.label, { [$style.labelFirst]: first }]"><slot name="label"></slot></div>
|
|
<div :class="$style.main">
|
|
<slot></slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
defineProps<{
|
|
first?: boolean;
|
|
}>();
|
|
</script>
|
|
|
|
<style lang="scss" module>
|
|
.root {
|
|
border-top: solid 0.5px var(--divider);
|
|
//border-bottom: solid 0.5px var(--divider);
|
|
}
|
|
|
|
.rootFirst {
|
|
border-top: none;
|
|
}
|
|
|
|
.label {
|
|
font-weight: bold;
|
|
padding: 1.5em 0 0 0;
|
|
margin: 0 0 16px 0;
|
|
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.labelFirst {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.main {
|
|
margin: 1.5em 0 0 0;
|
|
}
|
|
</style>
|