aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages/documentation
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-20 06:01:54 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-20 06:01:54 +0800
commita017f5e38561a152e8a757b340c1b0c6b3a3e21f (patch)
tree5ff144d227cab99c80d19bc7b4c3617e89c12e77 /packages/website/ts/pages/documentation
parent100f446031e84c367f1d0852ef60fd04d4544b9f (diff)
parent2c308c0f4c172293e634d27f731d026e0361e639 (diff)
downloaddexon-0x-contracts-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar.gz
dexon-0x-contracts-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar.zst
dexon-0x-contracts-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.zip
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/beta-render-et-al
Diffstat (limited to 'packages/website/ts/pages/documentation')
-rw-r--r--packages/website/ts/pages/documentation/developers_page.tsx10
-rw-r--r--packages/website/ts/pages/documentation/doc_page.tsx2
-rw-r--r--packages/website/ts/pages/documentation/docs_home.tsx5
3 files changed, 10 insertions, 7 deletions
diff --git a/packages/website/ts/pages/documentation/developers_page.tsx b/packages/website/ts/pages/documentation/developers_page.tsx
index 30b79552f..361dbc86e 100644
--- a/packages/website/ts/pages/documentation/developers_page.tsx
+++ b/packages/website/ts/pages/documentation/developers_page.tsx
@@ -6,6 +6,7 @@ import { DocsLogo } from 'ts/components/documentation/docs_logo';
import { DocsTopBar } from 'ts/components/documentation/docs_top_bar';
import { Container } from 'ts/components/ui/container';
import { Dispatcher } from 'ts/redux/dispatcher';
+import { media } from 'ts/style/media';
import { styled } from 'ts/style/theme';
import { BrowserType, OperatingSystemType, ScreenWidths } from 'ts/types';
import { Translate } from 'ts/utils/translate';
@@ -72,7 +73,6 @@ const SidebarContainer =
`
${scrollableContainerStyles}
padding-top: 27px;
- padding-bottom: 100px;
padding-left: ${SIDEBAR_PADDING}px;
padding-right: ${SIDEBAR_PADDING}px;
overflow: hidden;
@@ -99,14 +99,14 @@ const MainContentContainer =
padding-right: ${50 - SCROLLBAR_WIDTH}px;
overflow: auto;
}
- @media (max-width: 40em) {
+ ${media.small`
padding-left: 20px;
padding-right: 20px;
&:hover {
padding-right: ${20 - SCROLLBAR_WIDTH}px;
overflow: auto;
}
- }
+ `}
`;
export class DevelopersPage extends React.Component<DevelopersPageProps, DevelopersPageState> {
@@ -163,7 +163,9 @@ export class DevelopersPage extends React.Component<DevelopersPageProps, Develop
</Container>
</Container>
<SidebarContainer onWheel={this._throttledSidebarScrolling}>
- {this.props.screenWidth !== ScreenWidths.Sm && this.props.sidebar}
+ <Container paddingBottom="100px">
+ {this.props.screenWidth !== ScreenWidths.Sm && this.props.sidebar}
+ </Container>
</SidebarContainer>
</Container>
<Container
diff --git a/packages/website/ts/pages/documentation/doc_page.tsx b/packages/website/ts/pages/documentation/doc_page.tsx
index 7157abfc9..28bf2dba1 100644
--- a/packages/website/ts/pages/documentation/doc_page.tsx
+++ b/packages/website/ts/pages/documentation/doc_page.tsx
@@ -6,13 +6,13 @@ import {
SupportedDocJson,
TypeDocUtils,
} from '@0x/react-docs';
-import { NestedSidebarMenu } from '@0x/react-shared';
import findVersions = require('find-versions');
import * as _ from 'lodash';
import CircularProgress from 'material-ui/CircularProgress';
import * as React from 'react';
import semverSort = require('semver-sort');
import { SidebarHeader } from 'ts/components/documentation/sidebar_header';
+import { NestedSidebarMenu } from 'ts/components/nested_sidebar_menu';
import { Container } from 'ts/components/ui/container';
import { DevelopersPage } from 'ts/pages/documentation/developers_page';
import { Dispatcher } from 'ts/redux/dispatcher';
diff --git a/packages/website/ts/pages/documentation/docs_home.tsx b/packages/website/ts/pages/documentation/docs_home.tsx
index cf229cb3b..bbbee2d2d 100644
--- a/packages/website/ts/pages/documentation/docs_home.tsx
+++ b/packages/website/ts/pages/documentation/docs_home.tsx
@@ -1,8 +1,9 @@
-import { ALink, colors, Link, NestedSidebarMenu } from '@0x/react-shared';
+import { ALink, colors, Link } from '@0x/react-shared';
import { ObjectMap } from '@0x/types';
import * as _ from 'lodash';
import * as React from 'react';
import { OverviewContent } from 'ts/components/documentation/overview_content';
+import { NestedSidebarMenu } from 'ts/components/nested_sidebar_menu';
import { Button } from 'ts/components/ui/button';
import { DevelopersPage } from 'ts/pages/documentation/developers_page';
import { Dispatcher } from 'ts/redux/dispatcher';
@@ -368,7 +369,7 @@ export class DocsHome extends React.Component<DocsHomeProps, DocsHomeState> {
>
<Button
borderRadius="4px"
- padding="0.4em 6px"
+ padding="0.4em 0.375em"
width="100%"
fontColor={colors.grey800}
fontSize="14px"