Skip to content

Commit

Permalink
feat(component): button, input, textarea, select enhanced dt7 styles …
Browse files Browse the repository at this point in the history
…(#771)

In addition to aligning styles for button, input, textarea, and select, the Dialtone doc site received a little bit of love to polish it a touch here and there.
  • Loading branch information
francisrupert authored Dec 21, 2022
1 parent 4bf65b1 commit 6477940
Show file tree
Hide file tree
Showing 48 changed files with 690 additions and 627 deletions.
82 changes: 42 additions & 40 deletions docs/.vuepress/baseComponents/BlogPost.vue
Original file line number Diff line number Diff line change
@@ -1,50 +1,52 @@
<!-- eslint-disable max-len -->
<template>
<article class="blog-post d-d-grid d-p12 d-g-cols2">
<section class="d-d-flex">
<dt-avatar
size="lg"
color="purple-200"
avatar-class="d-mr16"
>
{{ initials }}
</dt-avatar>
<div class="d-d-grid d-g-cols1">
<div class="d-fw-medium">
{{ author }}
</div>
<time class="d-fc-black-700">
{{ format(posted, 'MMMM do, y') }}
</time>
</div>
</section>
<div
class="d-pls-end"
>
<dt-tooltip v-if="!isPreview">
<template #anchor>
<dt-button
kind="inverted"
@click="copyLink"
>
<template #icon>
<dt-icon name="copy" />
</template>
</dt-button>
</template>
Copy link
</dt-tooltip>
</div>
<section class="d-gc-full">
<article class="blog-post">
<section class="d-stack16">
<component
:is="isPreview ? 'h2' : 'h1'"
class="d-pt24 dialtone-page-title"
class="d-d-flex"
:class="isPreview ? 'd-docsite--header-2 d-mt0' : 'dialtone-page-title'"
>
{{ heading }}
<div class=" d-fl1">
{{ heading }}
</div>
<dt-tooltip v-if="!isPreview">
<template #anchor>
<dt-button
size="sm"
kind="inverted"
@click="copyLink"
>
<template #icon>
<dt-icon name="copy" size="300" />
</template>
</dt-button>
</template>
Copy link
</dt-tooltip>
</component>
<span class="blog-post-content">
<div class="d-d-flex d-ai-center">
<section class="d-d-flex">
<dt-avatar
size="lg"
color="purple-200"
avatar-class="d-mr16"
>
{{ initials }}
</dt-avatar>
<div class="d-d-grid d-g-cols1">
<div class="d-fw-semibold d-fc-secondary">
{{ author }}
</div>
<time class="d-fc-tertiary">
{{ format(posted, 'MMMM do, y') }}
</time>
</div>
</section>
</div>
<div class="blog-post-content">
<slot />
</span>
</div>
</section>
</article>
</template>
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/baseComponents/BlogPostPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@click="(e) => { navigate(e); }"
>
<dt-card
class="d-mt72 h:d-bgc-black-200"
class="d-mt32 h:d-bgc-black-100 d-bs-none h:d-bs-sm d-ba d-bar8 d-bbw1 d-bc-black-300"
>
<template #content>
<blog-post
Expand Down
9 changes: 6 additions & 3 deletions docs/.vuepress/exampleComponents/ExampleBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
class="d-checkbox"
>
</div>
<span class="d-checkbox__copy d-checkbox__label d-mb6 d-fw-bold">
<span class="d-checkbox__copy d-checkbox__label d-mb4">
Important?
</span>
</div>
Expand All @@ -86,7 +86,7 @@
class="d-checkbox"
>
</div>
<span class="d-checkbox__copy d-checkbox__label d-mb6 d-fw-bold">
<span class="d-checkbox__copy d-checkbox__label d-mb4">
Pinned?
</span>
</div>
Expand Down Expand Up @@ -120,7 +120,9 @@
<icon-warning v-show="kind === 'warning'" />
</div>
<div class="d-notice__content">
<h2>Optional title</h2>
<h2 class="d-notice__title">
Optional title
</h2>
<p class="d-notice__message">
Message body with
<a
Expand Down Expand Up @@ -196,6 +198,7 @@ export default {

<style scoped>
.d-banner {
top: -64px;
margin-top: 0 !important;
}
</style>
12 changes: 10 additions & 2 deletions docs/.vuepress/exampleComponents/ExampleChip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
v-if="withIcon"
class="d-chip__icon"
>
<icon-phone />
<dt-icon
name="phone"
size="200"
/>
</span>
<span :class="{ 'd-truncate': truncate }">{{ label }}</span>
</component>
Expand All @@ -34,7 +37,12 @@
<span
ref="closeBtn"
class="d-btn__icon"
><icon-close /></span>
>
<dt-icon
name="close"
size="200"
/>
</span>
</button>
</span>
</template>
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/exampleComponents/ExampleToast.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
class="d-checkbox"
>
</div>
<span class="d-checkbox__copy d-checkbox__label d-mb6 d-fw-bold">
<span class="d-checkbox__copy d-checkbox__label d-mb4">
Important?
</span>
</div>
Expand Down
Binary file modified docs/.vuepress/public/assets/images/components/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/assets/images/components/button-group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/assets/images/components/button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/assets/images/components/chip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/assets/images/components/input.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/assets/images/components/select-menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/assets/images/components/toggle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/assets/images/components/tooltip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6477940

Please sign in to comment.