From 43fbb5bc9625950ada97f5b356706ac25a5086be Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Wed, 10 Oct 2018 14:44:04 +0200 Subject: [PATCH] added missing component --- .../components/typography/Icon/Icon.vue | 56 +++++++++++++++++++ .../system/components/typography/Icon/demo.md | 16 ++++++ .../components/typography/Icon/style.scss | 20 +++++++ 3 files changed, 92 insertions(+) create mode 100644 styleguide/src/system/components/typography/Icon/Icon.vue create mode 100644 styleguide/src/system/components/typography/Icon/demo.md create mode 100644 styleguide/src/system/components/typography/Icon/style.scss diff --git a/styleguide/src/system/components/typography/Icon/Icon.vue b/styleguide/src/system/components/typography/Icon/Icon.vue new file mode 100644 index 000000000..86636fdfb --- /dev/null +++ b/styleguide/src/system/components/typography/Icon/Icon.vue @@ -0,0 +1,56 @@ + + + + + + + diff --git a/styleguide/src/system/components/typography/Icon/demo.md b/styleguide/src/system/components/typography/Icon/demo.md new file mode 100644 index 000000000..a0c42a5cf --- /dev/null +++ b/styleguide/src/system/components/typography/Icon/demo.md @@ -0,0 +1,16 @@ +## Basic usage + +Simply provide the name for the icon. + +``` + + + + +``` + +## Icon list + +Below is a list of all available icons. If you want to change these icons or want to add new ones, put them in `system/icons/svg`. + + \ No newline at end of file diff --git a/styleguide/src/system/components/typography/Icon/style.scss b/styleguide/src/system/components/typography/Icon/style.scss new file mode 100644 index 000000000..1decda16d --- /dev/null +++ b/styleguide/src/system/components/typography/Icon/style.scss @@ -0,0 +1,20 @@ +.ds-icon { + @include reset; + display: inline-flex; + align-items: center; + vertical-align: middle; + height: 1em; +} + +.ds-icon-svg { + line-height: 1; + height: 1.2em; + // Use this if the icons are build with strokes + // stroke: currentColor; + // stroke-width: 2.5px; + // stroke-linejoin: miter; + // stroke-linecap: miter; + // overflow: visible; + // Use this if the icons are build with solids + fill: currentColor +} \ No newline at end of file