summaryrefslogtreecommitdiff
path: root/src/client/components/form/slot.vue
blob: 8580c1307de3627b951a1cef8470ed1eea40aed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<template>
<div class="adhpbeou">
	<div class="label" @click="focus"><slot name="label"></slot></div>
	<div class="content">
		<slot></slot>
	</div>
	<div class="caption"><slot name="caption"></slot></div>
</div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';

export default defineComponent({

});
</script>

<style lang="scss" scoped>
.adhpbeou {
	margin: 1.5em 0;

	> .label {
		font-size: 0.85em;
		padding: 0 0 8px 12px;
		user-select: none;

		&:empty {
			display: none;
		}
	}

	> .caption {
		font-size: 0.8em;
		padding: 8px 0 0 12px;
		color: var(--fgTransparentWeak);

		&:empty {
			display: none;
		}
	}

	> .content {
		position: relative;
		background: var(--panel);
		border: solid 0.5px var(--inputBorder);
		border-radius: 6px;
	}
}
</style>