-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(update): add component; add styling; add postcss functions
- Loading branch information
1 parent
239c7d9
commit c273695
Showing
80 changed files
with
2,325 additions
and
635 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ | |
"max-empty-lines": null, | ||
"no-descending-specificity": null | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template> | ||
<base-teaser v-bind="$attrs" v-on="$listeners"> | ||
<template #default> | ||
<speedkit-picture v-bind="image" /> | ||
<span>{{ image.title }}</span> | ||
</template> | ||
</base-teaser> | ||
</template> | ||
|
||
<script> | ||
import SpeedkitPicture from 'nuxt-speedkit/components/SpeedkitPicture'; | ||
import BaseTeaser from './index'; | ||
export default { | ||
components: { SpeedkitPicture, BaseTeaser }, | ||
inheritAttrs: false, | ||
props: { | ||
image: { | ||
type: Object, | ||
required: true | ||
} | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<template> | ||
<base-link v-bind="$attrs" v-on="$listeners"> | ||
<base-article> | ||
<slot /> | ||
</base-article> | ||
</base-link> | ||
</template> | ||
|
||
<script> | ||
import BaseLink from '../../Link'; | ||
import BaseArticle from '../index'; | ||
export default { | ||
components: { | ||
BaseLink, | ||
BaseArticle | ||
}, | ||
inheritAttrs: false | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,41 @@ | ||
<template> | ||
<base-article v-bind="$attrs" class="article-design-default"> | ||
<template #category> | ||
<slot name="category" /> | ||
</template> | ||
<template #headline> | ||
<slot name="headline" /> | ||
</template> | ||
<template #subline> | ||
<slot name="subline" /> | ||
<base-article v-bind="$attrs" class="design-default" v-on="$listeners"> | ||
<template #header> | ||
<slot name="header" :level="level"> | ||
<default-headline :level="level"> | ||
<slot name="headline" /> | ||
</default-headline> | ||
</slot> | ||
</template> | ||
<template #default> | ||
<slot name="default" /> | ||
<default-rich-text :value="content"> | ||
<slot /> | ||
</default-rich-text> | ||
</template> | ||
</base-article> | ||
</template> | ||
|
||
<script> | ||
import BaseArticle from '@foundation/core/Article'; | ||
import DefaultHeadline from '@foundation/core/Headline/default'; | ||
import DefaultRichText from '@foundation/core/RichText/default'; | ||
export default { | ||
components: { | ||
BaseArticle | ||
BaseArticle, | ||
DefaultHeadline, | ||
DefaultRichText | ||
}, | ||
inheritAttrs: false | ||
inheritAttrs: false, | ||
props: { | ||
level: { | ||
type: Number, | ||
default: 2 | ||
}, | ||
content: { | ||
type: String, | ||
default: null | ||
} | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,14 @@ | ||
<template> | ||
<article class="article" v-bind="$attrs" v-on="$listeners"> | ||
<header> | ||
<nav v-if="$slots.category" class="category" aria-label="secondary"> | ||
<slot name="category" /> | ||
</nav> | ||
<component :is="sectionLevel" v-if="$slots.headline" v-bind="$attrs" v-on="$listeners"> | ||
<slot name="headline" /> | ||
</component> | ||
<p v-if="$slots.subline" class="subline" role="doc-subtitle"> | ||
<slot name="subline" /> | ||
</p> | ||
<header v-if="$slots.header"> | ||
<slot name="header" /> | ||
</header> | ||
<slot name="default" /> | ||
</article> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
inheritAttrs: false, | ||
props: { | ||
level: { | ||
type: Number, | ||
required: true | ||
} | ||
}, | ||
computed: { | ||
sectionLevel () { | ||
return `h${this.level}`; | ||
} | ||
} | ||
inheritAttrs: false | ||
}; | ||
</script> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.