2021-08-18 17:10:16 +02:00
|
|
|
<template>
|
|
|
|
<div class="card">
|
2021-10-05 19:02:08 +02:00
|
|
|
<div class="card-title">
|
2021-08-18 17:10:16 +02:00
|
|
|
<slot name="title"></slot>
|
|
|
|
</div>
|
|
|
|
<div class="card-content">
|
|
|
|
<slot name="content"></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style lang="scss">
|
2021-11-29 11:23:21 +01:00
|
|
|
@import '~@/scss/vars.scss';
|
2021-08-18 17:10:16 +02:00
|
|
|
|
|
|
|
.card {
|
|
|
|
border: solid 1px var(--card-border-color);
|
2021-08-18 17:13:54 +02:00
|
|
|
border-radius: $border-radius;
|
2021-08-18 17:10:16 +02:00
|
|
|
margin: $default-margin;
|
2021-08-21 18:49:20 +02:00
|
|
|
|
|
|
|
.card-title {
|
|
|
|
font-weight: bold;
|
|
|
|
border-bottom: solid 1px var(--card-border-color);
|
2021-09-08 19:31:28 +02:00
|
|
|
padding: $default-padding $default-padding * 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-content {
|
|
|
|
padding: $default-padding $default-padding * 2;
|
2021-08-21 18:49:20 +02:00
|
|
|
}
|
2021-08-18 17:10:16 +02:00
|
|
|
}
|
|
|
|
</style>
|