aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts/globalStyles.tsx
diff options
context:
space:
mode:
authorAugust Skare <post@augustskare.no>2018-11-16 18:05:30 +0800
committerAugust Skare <post@augustskare.no>2018-11-16 18:05:30 +0800
commit54bd7df900316504e4403bc94cffd92930a6c763 (patch)
tree7b386224e5746be65bfddc094cc5b26f7c018e19 /packages/dev-tools-pages/ts/globalStyles.tsx
parent5afef5fe820674abfbdf58226ed0a6920b5c74f7 (diff)
downloaddexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.tar
dexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.tar.gz
dexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.tar.bz2
dexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.tar.lz
dexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.tar.xz
dexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.tar.zst
dexon-sol-tools-54bd7df900316504e4403bc94cffd92930a6c763.zip
fix linting + code syntax for statless components
Diffstat (limited to 'packages/dev-tools-pages/ts/globalStyles.tsx')
-rw-r--r--packages/dev-tools-pages/ts/globalStyles.tsx21
1 files changed, 10 insertions, 11 deletions
diff --git a/packages/dev-tools-pages/ts/globalStyles.tsx b/packages/dev-tools-pages/ts/globalStyles.tsx
index c5db93f6a..1a571c0cb 100644
--- a/packages/dev-tools-pages/ts/globalStyles.tsx
+++ b/packages/dev-tools-pages/ts/globalStyles.tsx
@@ -1,11 +1,10 @@
+import hljsStyles from 'highlight.js/styles/github-gist.css';
import { createGlobalStyle } from 'styled-components';
-import { media } from './variables';
import styledNormalize from 'styled-normalize';
-import hljsStyles from 'highlight.js/styles/github-gist.css';
-import { withContext } from 'ts/components/withContext';
+import { media } from 'ts/variables';
-const BaseStyles = createGlobalStyle`
+const GlobalStyles = createGlobalStyle`
${styledNormalize}
${hljsStyles}
@@ -35,11 +34,11 @@ const BaseStyles = createGlobalStyle`
font-size: 100%;
box-sizing: border-box;
}
-
+
*, *::before, *::after {
box-sizing: inherit;
}
-
+
body {
font-family: "Maison Neue", system-ui, sans-serif;
font-weight: 300;
@@ -55,14 +54,14 @@ const BaseStyles = createGlobalStyle`
}
a:not([class]) {
- color: ${(props: any) => props.colors.type};
- text-decoration: none;
+ color: black;
+ text-decoration: none;
&:hover {
- color: ${(props: any) => props.colors.type_alt};
+ color: black;
}
}
-
+
h1, h2, h3, h4 {
font-weight: 500;
margin: 0;
@@ -84,4 +83,4 @@ const BaseStyles = createGlobalStyle`
}
`;
-export default withContext(BaseStyles);
+export { GlobalStyles };