@mirweb/mir-web-components 2.3.5 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section class="accordions">
|
|
3
|
+
<h2 class="accordions__headline" v-if="headline">{{ headline }}</h2>
|
|
3
4
|
<div class="accordions__wrapper">
|
|
4
5
|
<div v-for="accordion in accordions" :key="accordion._uid">
|
|
5
6
|
<div class="accordion">
|
|
@@ -55,6 +56,7 @@ import AtomImage from "../../atoms/image/image.vue";
|
|
|
55
56
|
import { ref } from "vue";
|
|
56
57
|
|
|
57
58
|
export type Props = {
|
|
59
|
+
headline?: string;
|
|
58
60
|
accordions: Array<{
|
|
59
61
|
headline: string;
|
|
60
62
|
_uid: string;
|
|
@@ -106,6 +108,14 @@ const isAccordionActive = (id: string) => {
|
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
|
|
111
|
+
&__headline {
|
|
112
|
+
margin: 60px 30px -30px 30px;
|
|
113
|
+
|
|
114
|
+
@include md {
|
|
115
|
+
margin: 60px 0 -30px 0;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
109
119
|
.accordion {
|
|
110
120
|
border-bottom: 1px solid $grey-400;
|
|
111
121
|
transition: $transition-background-color;
|