From 57cb7abde1aa304b3cba30480cdd8036790d3d0a Mon Sep 17 00:00:00 2001 From: Dustin Schau Date: Fri, 28 Sep 2018 14:32:36 -0500 Subject: [PATCH] chore: remove outer wrapper div --- src/components/CodeExample/CodeExample.js | 79 ++++++++++------------- 1 file changed, 34 insertions(+), 45 deletions(-) diff --git a/src/components/CodeExample/CodeExample.js b/src/components/CodeExample/CodeExample.js index 7ee7360f..24c1e1f8 100644 --- a/src/components/CodeExample/CodeExample.js +++ b/src/components/CodeExample/CodeExample.js @@ -13,56 +13,45 @@ class CodeExample extends Component { '&:first-child': { marginTop: 0, }, - [media.greaterThan('xlarge')]: { + display: 'flex', + flexDirection: 'row', marginTop: 80, }, - }}> -
- {children && ( -
+ {children && ( +
- {children} -
- )} - {loaded ? ( - - ) : ( -

Loading code example...

- )} -
+ }, + }}> + {children} +
+ )} + {loaded ? :

Loading code example...

} ); }