From 70ed8ba18a64203ba88fb706d7112ba14f8bfdef Mon Sep 17 00:00:00 2001 From: Atte Juvonen Date: Sat, 20 Apr 2019 18:39:02 +0300 Subject: [PATCH] Minor (CSS). --- src/components/Article/ReTracedSVGGallery.js | 28 +++++++++++++------- src/components/Menu/Item.js | 4 +-- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/components/Article/ReTracedSVGGallery.js b/src/components/Article/ReTracedSVGGallery.js index a8f8fb18..51401541 100644 --- a/src/components/Article/ReTracedSVGGallery.js +++ b/src/components/Article/ReTracedSVGGallery.js @@ -24,16 +24,24 @@ const ReTracedSVGGallery = (props) => { id absolutePath childImageSharp { - fluid(maxWidth: 800, maxHeight: 360, cropFocus: CENTER, quality: 90, traceSVG: { color: "#f9ebd2" }) { - tracedSVG - aspectRatio - src - srcSet - srcWebp - srcSetWebp - sizes - originalImg - } + fluid( + maxWidth: 800, + maxHeight: 360, + cropFocus: CENTER, + quality: 90, + traceSVG: { + color: "#f9ebd2", + } + ) { + tracedSVG + aspectRatio + src + srcSet + srcWebp + srcSetWebp + sizes + originalImg + } } } } diff --git a/src/components/Menu/Item.js b/src/components/Menu/Item.js index 54ff1de7..249fe6eb 100644 --- a/src/components/Menu/Item.js +++ b/src/components/Menu/Item.js @@ -48,7 +48,7 @@ const Item = props => { :global(a) { color: ${theme.text.color.primary}; padding: ${theme.space.inset.s}; - transition: all ${theme.time.duration.default}; + transition: all 0s; border-radius: ${theme.size.radius.small}; } @@ -62,7 +62,7 @@ const Item = props => { } :global(svg) { - transition: all ${theme.time.duration.default}; + transition: all 0s; } &:hover :global(svg) {