FitTrackee/fittrackee_client/src/components/Common/Card.vue

31 lines
633 B
Vue
Raw Normal View History

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);
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);
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>