From b8a92cc1cf939dcca07fdc0021dfbcd468a3bb48 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Thu, 18 Oct 2018 14:14:01 +0200 Subject: [PATCH] improved text and button component and added a number component with label and sizes --- .../components/data-display/Number/Number.vue | 36 +++++++++++++++++++ .../components/data-display/Number/demo.md | 16 +++++++++ .../components/data-display/Number/style.scss | 15 ++++++++ .../components/navigation/Button/demo.md | 3 +- .../components/typography/Text/Text.vue | 26 ++++++++++++-- .../system/components/typography/Text/demo.md | 26 +++++++++++--- .../components/typography/Text/style.scss | 26 +++++++++++++- 7 files changed, 139 insertions(+), 9 deletions(-) create mode 100644 styleguide/src/system/components/data-display/Number/Number.vue create mode 100644 styleguide/src/system/components/data-display/Number/demo.md create mode 100644 styleguide/src/system/components/data-display/Number/style.scss diff --git a/styleguide/src/system/components/data-display/Number/Number.vue b/styleguide/src/system/components/data-display/Number/Number.vue new file mode 100644 index 000000000..0e869856e --- /dev/null +++ b/styleguide/src/system/components/data-display/Number/Number.vue @@ -0,0 +1,36 @@ + + + + + + + + diff --git a/styleguide/src/system/components/data-display/Number/demo.md b/styleguide/src/system/components/data-display/Number/demo.md new file mode 100644 index 000000000..ae45b2505 --- /dev/null +++ b/styleguide/src/system/components/data-display/Number/demo.md @@ -0,0 +1,16 @@ +## Basic usage + +```html + +``` + +## Sizes + +```html + +``` diff --git a/styleguide/src/system/components/data-display/Number/style.scss b/styleguide/src/system/components/data-display/Number/style.scss new file mode 100644 index 000000000..2899d9502 --- /dev/null +++ b/styleguide/src/system/components/data-display/Number/style.scss @@ -0,0 +1,15 @@ +.ds-number { + text-align: center; +} +.ds-number-count { + font-weight: bold; +} +.ds-number-label { + font-size: $font-size-small; +} +// .ds-number-size-x-large, +// .ds-number-size-xx-large { +// .ds-number-label { +// font-size: $font-size-base; +// } +// } diff --git a/styleguide/src/system/components/navigation/Button/demo.md b/styleguide/src/system/components/navigation/Button/demo.md index 13cc66135..5e1b0f4ae 100644 --- a/styleguide/src/system/components/navigation/Button/demo.md +++ b/styleguide/src/system/components/navigation/Button/demo.md @@ -30,6 +30,7 @@ Use different sizes to create hierarchy. Small Base Large +very Large ``` ## Button full width @@ -45,8 +46,8 @@ A button can take different states. ``` Default state Disabled state -Loading state Hover state +Loading state ``` ## Icon buttons diff --git a/styleguide/src/system/components/typography/Text/Text.vue b/styleguide/src/system/components/typography/Text/Text.vue index c409ea0b3..c1da4adfd 100644 --- a/styleguide/src/system/components/typography/Text/Text.vue +++ b/styleguide/src/system/components/typography/Text/Text.vue @@ -1,11 +1,13 @@