Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 88cb0be

Browse files
committed
fix(core): renamed Structure to ContentContainer
1 parent 294f7c0 commit 88cb0be

File tree

22 files changed

+82
-45
lines changed

22 files changed

+82
-45
lines changed

.stylelintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
]
2323
}
2424
],
25+
"selector-class-pattern": null,
2526
"block-closing-brace-empty-line-before": null,
2627
"max-empty-lines": null,
2728
"no-descending-specificity": null,
@@ -41,4 +42,4 @@
4142
}
4243
]
4344
}
44-
}
45+
}
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ export default {
4949
}
5050
}
5151
},
52-
52+
data () {
53+
return {
54+
headline: false
55+
};
56+
},
5357
computed: {
5458
debug () {
5559
return 'debug-structure' in this.$route.query;
@@ -127,9 +131,8 @@ export default {
127131
--tag-color-bg: var(--color-structure-2-bg);
128132
129133
&::after {
130-
top: auto;
134+
top: 0;
131135
right: 0;
132-
bottom: 0;
133136
}
134137
}
135138
@@ -138,9 +141,9 @@ export default {
138141
--tag-color-bg: var(--color-structure-3-bg);
139142
140143
&::after {
141-
top: auto;
142-
bottom: 0;
143-
left: 0;
144+
top: 0;
145+
left: 50%;
146+
transform: translateX(-50%);
144147
}
145148
}
146149
@@ -149,7 +152,7 @@ export default {
149152
--tag-color-bg: var(--color-structure-1-bg);
150153
151154
&::after {
152-
top: 0;
155+
bottom: 0;
153156
left: 0;
154157
}
155158
}

packages/core/Headline/index.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ export default {
4040
contextLevel () {
4141
return getMax((this.parentLevel - (this.parentLevel % 2)) / 2);
4242
}
43+
},
44+
45+
created () {
46+
const getContentContainer = (component) => {
47+
if (component.tags) {
48+
return component;
49+
}
50+
return (component && getContentContainer(component.$parent)) || null;
51+
};
52+
53+
const contentContainer = getContentContainer(this);
54+
contentContainer && (contentContainer.headline = true);
4355
}
4456
4557
};

packages/core/Slider/index.vue

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,22 @@ export default {
136136
};
137137
138138
</script>
139+
140+
<style lang="postcss" scoped>
141+
.splide:not(.is-initialized) {
142+
& .splide__list {
143+
overflow: hidden;
144+
145+
& >>> .splide__slide:not(:first-child) {
146+
position: absolute;
147+
top: 0;
148+
left: 0;
149+
box-sizing: border-box;
150+
width: 100%;
151+
height: 100%;
152+
}
153+
154+
}
155+
}
156+
</style>
157+

packages/sample/src/components/molecules/Accordeon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import BaseAccordeon from '@foundation/core/CollapsibleContainer/Accordeon';
3232
import TransitionExpand from '@foundation/core/CollapsibleContainer/transition/expand';
3333
import Dataset from '@foundation/core/CollapsibleContainer/classes/Dataset';
3434
import Model from '@foundation/core/CollapsibleContainer/classes/Model';
35-
import LayoutStructure from '@foundation/core/Structure';
35+
import LayoutStructure from '@foundation/core/ContentContainer';
3636
import AtomIcon from '@/components/atoms/Icon';
3737
3838
const CONTENT_COMPONENTS = {

packages/sample/src/components/organisms/Accordeon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<script>
1919
20-
import CoreStructure from '@foundation/core/Structure';
20+
import CoreStructure from '@foundation/core/ContentContainer';
2121
import AtomHeadline from '@/components/atoms/Headline';
2222
import MoleculeAccordeon from '@/components/molecules/Accordeon';
2323
import LayoutLostContainer from '@/components/layouts/LostContainer';

packages/sample/src/components/organisms/Gallery.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</template>
1515

1616
<script>
17-
import CoreStructure from '@foundation/core/Structure';
17+
import CoreStructure from '@foundation/core/ContentContainer';
1818
import AtomHeadline from '@/components/atoms/Headline';
1919
import MoleculeSlider from '@/components/molecules/Slider';
2020
import LayoutLostContainer from '@/components/layouts/LostContainer';

packages/sample/src/components/organisms/Infos.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<script>
3030
31-
import CoreStructure from '@foundation/core/Structure';
31+
import CoreStructure from '@foundation/core/ContentContainer';
3232
import LayoutLostContainer from '@/components/layouts/LostContainer';
3333
import AtomHeadline from '@/components/atoms/Headline';
3434
import AtomRichText from '@/components/atoms/RichText';

packages/sample/src/components/organisms/Stage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<script>
1414
import SpeedkitPicture from 'nuxt-speedkit/components/SpeedkitPicture';
15-
import CoreStructure from '@foundation/core/Structure';
15+
import CoreStructure from '@foundation/core/ContentContainer';
1616
import Headline from '@/components/atoms/Headline';
1717
1818
export default {

packages/sample/src/components/organisms/TeaserWall.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</core-structure>
1818
</template>
1919
<script>
20-
import CoreStructure from '@foundation/core/Structure';
20+
import CoreStructure from '@foundation/core/ContentContainer';
2121
import LayoutLostContainer from '@/components/layouts/LostContainer';
2222
2323
import AtomHeadline from '@/components/atoms/Headline';

0 commit comments

Comments
 (0)