diff --git a/client/src/components/layouts/GuideLayout.js b/client/src/components/layouts/GuideLayout.js index ca6818b0ae..58a694df89 100644 --- a/client/src/components/layouts/GuideLayout.js +++ b/client/src/components/layouts/GuideLayout.js @@ -69,7 +69,7 @@ class Layout extends React.Component { }) => ( - + - + {title} diff --git a/client/src/components/layouts/components/guide/NavPanel.js b/client/src/components/layouts/components/guide/NavPanel.js index 28a8d25071..483810f237 100644 --- a/client/src/components/layouts/components/guide/NavPanel.js +++ b/client/src/components/layouts/components/guide/NavPanel.js @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Panel } from '@freecodecamp/react-bootstrap'; -import { navigate } from 'gatsby'; +import { Link } from 'gatsby'; const propTypes = { children: PropTypes.any, @@ -53,14 +53,13 @@ class NavPanel extends Component { } handleTitleClick() { - const { path, toggleDisplaySideNav, onNavigate } = this.props; + const { toggleDisplaySideNav, onNavigate } = this.props; toggleDisplaySideNav(); - navigate(path); onNavigate(); } renderHeader() { - const { isExpanded, title } = this.props; + const { isExpanded, path, title } = this.props; return (
- {title} + {title}
); } diff --git a/client/src/components/layouts/guide.css b/client/src/components/layouts/guide.css index 88646c5a3a..73b77d52f7 100644 --- a/client/src/components/layouts/guide.css +++ b/client/src/components/layouts/guide.css @@ -1,47 +1,13 @@ -/* globals */ - -.colourDarkGrey { - color: #444; -} - -.colourGreen { - color: #006400; -} - -.pointer { - cursor: pointer; -} - -:global body { - font-family: 'Lato', sans-serif, 'FontAwesome'; +.guide-container { font-size: 16px; } -:global h1, -:global h2, -:global h3, -:global h4, -:global h5, -:global h6 { - /* Bootstrap sets weight to 500, we don't have that */ - font-weight: 700; -} - -:global h2:first-child { - margin-top: 0; -} - -:global td, -:global th { - border-bottom: 1px solid rgba(0, 0, 0, 0.12); - padding: 10px; -} - /* Breadcrumbs */ .breadcrumb { display: inline-block; padding: 5px 10px; + margin: 0; margin-bottom: 5px; opacity: 0.8; transition: opacity 0.1s ease-out; @@ -55,6 +21,10 @@ color: #006400; } +.breadcrumb > li { + margin: 0; +} + .breadcrumb > li + li:before { content: '\203A'; color: #555; @@ -105,11 +75,18 @@ margin-bottom: 0; } +.navPanelUl > li { + margin-bottom: 0; +} + +.navItemTitle { + margin-left: 19px; +} + .panelStyle { border: none !important; border-radius: 0; box-shadow: none; - color: #006400; padding: 0; } @@ -136,7 +113,11 @@ border: none; border-radius: 0; cursor: pointer; - color: #006400; +} + +.night .panelStyle, +.night .title { + background-color: #333; } @media (max-width: 992px) {