summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-theme-default/src/components
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-09-27 16:39:58 +0200
committerSamy Pesse <samypesse@gmail.com>2016-09-27 16:39:58 +0200
commitf1ef1902f360e111587858f73972369b734a0237 (patch)
tree651e0f47fa7ad989c3f670ef958bf81511b00f4b /packages/gitbook-plugin-theme-default/src/components
parent748c46172bb9f5cd33e0ced3869930626c38105d (diff)
downloadgitbook-f1ef1902f360e111587858f73972369b734a0237.zip
gitbook-f1ef1902f360e111587858f73972369b734a0237.tar.gz
gitbook-f1ef1902f360e111587858f73972369b734a0237.tar.bz2
Style page with gitbook-markdown-css
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src/components')
-rw-r--r--packages/gitbook-plugin-theme-default/src/components/Page.js4
-rw-r--r--packages/gitbook-plugin-theme-default/src/components/Toolbar.js4
2 files changed, 6 insertions, 2 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/components/Page.js b/packages/gitbook-plugin-theme-default/src/components/Page.js
index dda8eba..a7d8ef7 100644
--- a/packages/gitbook-plugin-theme-default/src/components/Page.js
+++ b/packages/gitbook-plugin-theme-default/src/components/Page.js
@@ -11,7 +11,9 @@ const Page = React.createClass({
return (
<div className="Page page-wrapper">
- <GitBook.HTMLContent html={page.content} />
+ <GitBook.InjectedComponent matching={{ role: 'page:container' }} props={this.props}>
+ <GitBook.HTMLContent html={page.content} />
+ </GitBook.InjectedComponent>
</div>
);
}
diff --git a/packages/gitbook-plugin-theme-default/src/components/Toolbar.js b/packages/gitbook-plugin-theme-default/src/components/Toolbar.js
index de89f97..9a60ff4 100644
--- a/packages/gitbook-plugin-theme-default/src/components/Toolbar.js
+++ b/packages/gitbook-plugin-theme-default/src/components/Toolbar.js
@@ -16,7 +16,9 @@ const Toolbar = React.createClass({
render() {
return (
<div className="Toolbar book-toolbar">
- <button onClick={this.onToggle}>Toggle</button>
+ <GitBook.Button onClick={this.onToggle}>
+ <GitBook.Icon id="align-justify" />
+ </GitBook.Button>
<GitBook.InjectedComponentSet matching={{ role: 'toolbar:buttons:left' }} />
<GitBook.InjectedComponentSet matching={{ role: 'toolbar:buttons:right' }} />
</div>