From 130e62455dcbc199c4c9910345d408b4e4f2fb5e Mon Sep 17 00:00:00 2001 From: muerwre Date: Wed, 22 Aug 2018 17:33:07 +0700 Subject: [PATCH] replaced icons with masked rects --- src/components/panels/Icon.jsx | 7 ++++++- src/sprites/icon.svg | 37 ++++++++++++++++++---------------- src/styles/panel.less | 6 ++++++ 3 files changed, 32 insertions(+), 18 deletions(-) diff --git a/src/components/panels/Icon.jsx b/src/components/panels/Icon.jsx index 81f731d..56dc4a4 100644 --- a/src/components/panels/Icon.jsx +++ b/src/components/panels/Icon.jsx @@ -3,7 +3,12 @@ import sprite from '$sprites/icon.svg'; export const Icon = ({ icon, size = 32 }) => ( - + + + + + + ); diff --git a/src/sprites/icon.svg b/src/sprites/icon.svg index 726cdc9..d54d719 100644 --- a/src/sprites/icon.svg +++ b/src/sprites/icon.svg @@ -1,39 +1,42 @@ - - - - - - - - - + + + + + - - + + - - - - + + + + + + + + + + - + - + + diff --git a/src/styles/panel.less b/src/styles/panel.less index ff029de..0ecbe2d 100644 --- a/src/styles/panel.less +++ b/src/styles/panel.less @@ -68,6 +68,12 @@ fill: white; stroke: white; display: inline; + fill-rule: evenodd; + stroke-linecap: butt; + stroke-linejoin: miter; + stroke-miterlimit: 4; + stroke-dasharray: none; + stroke-width: 3; } } }