diff --git a/docs/src/components/IssueIcon.js b/docs/src/components/IssueIcon.js new file mode 100644 index 00000000..81458262 --- /dev/null +++ b/docs/src/components/IssueIcon.js @@ -0,0 +1,12 @@ +import React from 'react'; + +export default () => ( + +); + diff --git a/docs/src/components/SideNav/style.scss b/docs/src/components/SideNav/style.scss index a3828e81..6fa6f0fd 100644 --- a/docs/src/components/SideNav/style.scss +++ b/docs/src/components/SideNav/style.scss @@ -8,12 +8,15 @@ overflow: scroll; padding-bottom: 60px; } + &.navbar-default { + background-color: transparent; + } &.navbar { position: fixed; width: inherit; height: calc(100vh - 51px); - border-right: 1px solid #ececec; border: 0; + border-right: 1px solid #ececec; border-radius: 0; } .navbar-nav > li { @@ -23,7 +26,10 @@ padding: 8px 0px 8px 10px; } } - .Sidebar__Header { + &__Header { + &.navbar-nav { + float: none; + } .nav a { display: block; cursor: pointer; diff --git a/docs/src/components/TopBar/index.js b/docs/src/components/TopBar/index.js index d8737423..dad73722 100644 --- a/docs/src/components/TopBar/index.js +++ b/docs/src/components/TopBar/index.js @@ -1,9 +1,10 @@ import { Link } from "gatsby" import PropTypes from "prop-types" import React from "react" -import { Navbar, Nav } from 'react-bootstrap'; +import { Navbar, Nav, Tooltip, OverlayTrigger } from 'react-bootstrap'; import { SideNavItems } from '../SideNav'; import GitHubIcon from '../GitHubIcon'; +import IssueIcon from '../IssueIcon'; import logo from '../../images/logo.png'; import useWindowWidth from '../../utils/hooks/get-window-width'; import './style.scss'; @@ -61,13 +62,31 @@ const TopBar = (props) => { + diff --git a/docs/src/components/TopBar/style.scss b/docs/src/components/TopBar/style.scss index 4ec11628..2eb10295 100644 --- a/docs/src/components/TopBar/style.scss +++ b/docs/src/components/TopBar/style.scss @@ -12,7 +12,7 @@ color: #6b58c4; } } - .github-icon { + .svg-icon { margin-right: 8px; display: inline-block; height: 16px; @@ -27,6 +27,11 @@ } @media(min-width: 768px) { .TopBar { + .navbar-default { + background-color: #fff; + border: 0; + box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, .15); + } .Sidebar__Header { &.navbar-nav { margin: 0; diff --git a/docs/src/templates/components-post.js b/docs/src/templates/components-post.js index f7912a4b..09a6af3a 100644 --- a/docs/src/templates/components-post.js +++ b/docs/src/templates/components-post.js @@ -30,7 +30,7 @@ class BlogPostTemplate extends React.Component {