From 85114b78d630bfa72e4f4229979e998a6fd7641a Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Mon, 25 Feb 2019 09:58:29 +0100 Subject: [PATCH] Added missing Icon --- .../components/typography/Icon/Icon.vue | 73 +++++++++++++++++++ src/system/components/typography/Icon/demo.md | 16 ++++ .../components/typography/Icon/style.scss | 45 ++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 src/system/components/typography/Icon/Icon.vue create mode 100644 src/system/components/typography/Icon/demo.md create mode 100644 src/system/components/typography/Icon/style.scss diff --git a/src/system/components/typography/Icon/Icon.vue b/src/system/components/typography/Icon/Icon.vue new file mode 100644 index 000000000..513532fff --- /dev/null +++ b/src/system/components/typography/Icon/Icon.vue @@ -0,0 +1,73 @@ + + + + + + + diff --git a/src/system/components/typography/Icon/demo.md b/src/system/components/typography/Icon/demo.md new file mode 100644 index 000000000..a0c42a5cf --- /dev/null +++ b/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/src/system/components/typography/Icon/style.scss b/src/system/components/typography/Icon/style.scss new file mode 100644 index 000000000..2664dc697 --- /dev/null +++ b/src/system/components/typography/Icon/style.scss @@ -0,0 +1,45 @@ +.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 +} + +.ds-icon-size-xx-small { + font-size: $font-size-xx-small +} +.ds-icon-size-x-small { + font-size: $font-size-x-small +} +.ds-icon-size-small { + font-size: $font-size-small +} +.ds-icon-size-base { + font-size: $font-size-base +} +.ds-icon-size-large { + font-size: $font-size-large +} +.ds-icon-size-x-large { + font-size: $font-size-x-large +} +.ds-icon-size-xx-large { + font-size: $font-size-xx-large +} +.ds-icon-size-xxx-large { + font-size: $font-size-xxx-large +}