diff --git a/src/components/NavigationItems.js b/src/components/NavigationItems.js index 8eb59b7cb..5fb14938b 100644 --- a/src/components/NavigationItems.js +++ b/src/components/NavigationItems.js @@ -1,4 +1,5 @@ import React, { Fragment, useState, useContext, useEffect } from 'react'; +import { css } from '@emotion/core'; import usePrevious from '../hooks/usePrevious'; import PropTypes from 'prop-types'; import FeatherIcon from './FeatherIcon'; @@ -131,6 +132,14 @@ const NavItem = ({ page, depthLevel, searchTerm, filteredPageNames }) => { key={page.displayName} data-depth={depthLevel} className={cx({ [styles.filterOn]: filteredPageNames })} + css={ + depthLevel === 0 && + css` + &:not(:last-child) { + margin-bottom: 2rem; + } + ` + } > {page.url ? ( & { font-weight: 600; - padding: 1em 0; } } diff --git a/src/components/Sidebar.js b/src/components/Sidebar.js index 7b34ed2b5..944a1b1df 100644 --- a/src/components/Sidebar.js +++ b/src/components/Sidebar.js @@ -14,7 +14,7 @@ const Sidebar = ({ className }) => { data-swiftype-index={false} className={className} css={css` - padding: 2rem; + padding: 0 2rem 2rem; border-right: 1px solid var(--divider-color); @media screen and (max-width: 760px) { @@ -23,32 +23,43 @@ const Sidebar = ({ className }) => { } `} > - - + + + + setSearchTerm('')} + onChange={(e) => setSearchTerm(e.target.value)} + value={searchTerm} /> - - setSearchTerm('')} - onChange={(e) => setSearchTerm(e.target.value)} - value={searchTerm} - /> - + + ); };