diff --git a/website/src/templates/index.css b/website/src/templates/index.css index db4c06a2..6d698dfb 100644 --- a/website/src/templates/index.css +++ b/website/src/templates/index.css @@ -1,6 +1,9 @@ -.doc-block .markdown { +.no-playground .markdown { padding-top: 50px; - padding-bottom: 50px; +} + +.doc-block .markdown { + padding-bottom: 20px; } .doc-block .overview { @@ -34,4 +37,8 @@ line-height: 180%; font-size: 14px; font-weight: 400; +} + +.doc-block .prop { + margin-bottom: 20px; } \ No newline at end of file diff --git a/website/src/templates/withPlayground.js b/website/src/templates/withPlayground.js index 090b59da..036a2362 100644 --- a/website/src/templates/withPlayground.js +++ b/website/src/templates/withPlayground.js @@ -17,32 +17,19 @@ import DocsSidebar from '../components/DocsSidebar'; import EditValue from '../components/Playground/EditValue'; import Link from 'gatsby-link'; import {Button, Icon, Row, Col} from 'antd'; +import './index.css'; export default ({pathContext}) => ( - + ( - - back to overview - -
- {pathContext.frontmatter.editableProperties && ( - - -

Try it out

- - - - Open in playground - - -
- )} +
+ {(pathContext.frontmatter.editableProperties || []).map(prop => ( -
+

{prop}

( />
))} + + + BACK TO OVERVIEW + )} /> diff --git a/website/src/templates/withoutPlayground.js b/website/src/templates/withoutPlayground.js index af50a860..157ad3c6 100644 --- a/website/src/templates/withoutPlayground.js +++ b/website/src/templates/withoutPlayground.js @@ -19,7 +19,7 @@ import './index.css'; export default ({pathContext}) => { return ( - +