-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up section headlines and field labels
- Loading branch information
1 parent
b49109c
commit c840949
Showing
12 changed files
with
131 additions
and
142 deletions.
There are no files selected for viewing
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
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
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
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
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
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,57 @@ | ||
<template> | ||
<section class="k-section"> | ||
<header v-if="headline || buttons" class="k-bar k-section-header"> | ||
<k-headline :link="link" tag="h2" class="k-label"> | ||
{{ headline }} | ||
<abbr v-if="required" :title="$t('section.required')">*</abbr> | ||
</k-headline> | ||
<k-button-group | ||
v-if="buttons" | ||
:buttons="buttons" | ||
size="xs" | ||
variant="filled" | ||
/> | ||
</header> | ||
|
||
<slot /> | ||
</section> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
buttons: Array, | ||
headline: String, | ||
link: String, | ||
required: Boolean | ||
} | ||
}; | ||
</script> | ||
|
||
<style> | ||
.k-section { | ||
padding-bottom: 3rem; | ||
} | ||
.k-section-header { | ||
margin-bottom: var(--spacing-2); | ||
} | ||
.k-label { | ||
position: relative; | ||
display: flex; | ||
font-weight: var(--font-semi); | ||
align-items: center; | ||
height: var(--height-xs); | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} | ||
.k-label abbr { | ||
text-decoration: none; | ||
color: var(--color-gray-500); | ||
padding-inline-start: 0.25rem; | ||
} | ||
[aria-disabled] .k-label { | ||
opacity: var(--opacity-disabled); | ||
cursor: not-allowed; | ||
} | ||
</style> |
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
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
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
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.