Skip to content

Commit

Permalink
Align sample cards with designs
Browse files Browse the repository at this point in the history
  • Loading branch information
MisRob committed Sep 26, 2024
1 parent 17ebf92 commit dacae5d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
11 changes: 6 additions & 5 deletions docs/pages-components/DocsKCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
</template>
<template v-else-if="!hideFooter" #footer>
<div class="footer-wrapper">
<div class="pills">
<div class="pills" :style="{ 'color': $themeTokens.annotation }">
<span
:style="{ 'background-color': $themePalette.grey.v_50 }"
>
<KIcon icon="readSolid" :style="{ fontSize: '14px' }" />
<KIcon icon="readSolid" :style="{ fontSize: '13px', position: 'relative', top: '3px' }" />
Read
</span>
<span
Expand Down Expand Up @@ -172,12 +172,13 @@
}
.pills {
margin-left: -6px;
margin-left: -4px;
span {
display: inline-block;
padding: 6px 8px;
margin: 6px;
padding: 4px 8px;
margin: 4px;
border-radius: 4px;
}
}
Expand Down
11 changes: 6 additions & 5 deletions docs/pages/kcard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
<KLabeledIcon icon="readSolid" label="Read" />
</template>
<template #footer>
<div class="pills">
<div class="pills" :style="{ 'color': $themeTokens.annotation }">
<span
:style="{ 'background-color': $themePalette.grey.v_50 }"
>
Expand All @@ -279,7 +279,7 @@
<KLabeledIcon icon="readSolid" label="Read" />
</template>
<template #footer>
<div class="pills">
<div class="pills" :style="{ 'color': $themeTokens.annotation }">
<span
:style="{ 'background-color': $themePalette.grey.v_50 }"
>
Expand Down Expand Up @@ -718,12 +718,13 @@
<style lang="scss" scoped>
.pills {
margin-left: -6px;
margin-left: -4px;
span {
display: inline-block;
padding: 6px 8px;
margin: 6px;
padding: 4px 8px;
margin: 4px;
border-radius: 4px;
}
}
Expand Down
15 changes: 8 additions & 7 deletions docs/pages/kcardgrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
/>
</template>
<template #footer>
<div class="pills">
<div class="pills" :style="{ 'color': $themeTokens.annotation }">
<span
v-for="(pill, i) in slicedPills"
:key="i"
Expand Down Expand Up @@ -321,7 +321,7 @@
/>
</template>
<template #footer>
<div class="pills">
<div class="pills" :style="{ 'color': $themeTokens.annotation }">
<span
v-for="(pill, i) in slicedPills"
:key="i"
Expand Down Expand Up @@ -449,11 +449,11 @@
:prependTitle="`(${i})`"
>
<template #footer>
<div class="pills">
<div class="pills" :style="{ 'color': $themeTokens.annotation }">
<span
:style="{ 'background-color': $themePalette.grey.v_50 }"
>
<KIcon icon="readSolid" :style="{ fontSize: '14px' }" />
<KIcon icon="readSolid" :style="{ fontSize: '13px', position: 'relative', top: '3px' }" />
Read
</span>
<span
Expand Down Expand Up @@ -551,12 +551,13 @@
<style lang="scss" scoped>
.pills {
margin-left: -6px;
margin-left: -4px;
span {
display: inline-block;
padding: 6px 8px;
margin: 6px;
padding: 4px 8px;
margin: 4px;
border-radius: 4px;
}
}
Expand Down

0 comments on commit dacae5d

Please sign in to comment.