From c51612f13e071d2755d3e3e9f7904326621a74ba Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Fri, 10 Aug 2018 18:29:58 +0200 Subject: [PATCH] More base styles merged into styled components --- src/js/support/BaseStyles.js | 14 +++++++++++++- src/styles/base.less | 18 ------------------ 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/src/js/support/BaseStyles.js b/src/js/support/BaseStyles.js index 15eb6c9a..280e56be 100644 --- a/src/js/support/BaseStyles.js +++ b/src/js/support/BaseStyles.js @@ -4,7 +4,7 @@ import normalize from 'styled-normalize'; const baseStyles = () => injectGlobal` ${normalize}; - + * , *:before , *:after { box-sizing: border-box; } @@ -19,6 +19,18 @@ const baseStyles = () => injectGlobal` -webkit-appearance: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } + + a { + text-decoration: none; + cursor: pointer; + } + + a:focus, + button:focus, + input:focus, + textarea:focus { + outline: 0; + } `; export default baseStyles; diff --git a/src/styles/base.less b/src/styles/base.less index f4fdda8a..c19d86d0 100644 --- a/src/styles/base.less +++ b/src/styles/base.less @@ -37,22 +37,4 @@ main { border-radius: 0px; margin-top: 0px; } -} - - -a { - text-decoration: none; - cursor: pointer; -} - -a:focus, -button:focus, -input:focus, -textarea:focus { - outline: 0; -} - -h1, h2, h3 { - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; } \ No newline at end of file