card-title.vue
774 Bytes
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
<template>
<view class="card-title">
<view class="card-title__background">
<view class="card-title__header">
<slot name="header"></slot>
</view>
<view class="card-title__content">
<slot></slot>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {}
}
}
</script>
<style lang="scss">
.card-title {
box-sizing: border-box;
filter: blur(0);
border-radius: $radius-md;
background-color: $color-white;
&__background {
background-color: rgba($color-primary, 0.15);
border-radius: $radius-md;
}
&__header {
padding: $padding-xs $padding-md;
}
&__content {
border-radius: $radius-md;
background-color: $color-white;
padding: $padding-md;
}
}
</style>