Skip to content

Commit

Permalink
refactor(docs): added scrolling to both navigation and content (#1413)
Browse files Browse the repository at this point in the history
  • Loading branch information
GoPro16 authored and TheSharpieOne committed Feb 25, 2019
1 parent 70cfca2 commit 90cbbd0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/lib/UI/Content.js
Expand Up @@ -13,7 +13,7 @@ function Content({ items, children, title }) {
return (
<Container className="content">
<Row>
<Col tag="main" md={{ size: 3, order: 2 }}>
<Col className="docSearch-navigation" tag="main" md={{ size: 3, order: 2 }}>
<div className="docs-sidebar mb-3">
<h1 className="h5">{title}</h1>
<Nav className="flex-column">
Expand Down
11 changes: 11 additions & 0 deletions docs/static/docs.css
Expand Up @@ -37,6 +37,17 @@
margin-top: 2rem;
}

@media(min-width: 768px) {
html,body,#app,#app > .wrapper,#app >.wrapper > .container, #app >.wrapper > .container > .row{
height:100%;
}
.docSearch-navigation, .docSearch-content {
overflow-y: scroll;
height:100%;
}
}


.header .navbar-nav .nav-link.active {
color: #333;
}
Expand Down

0 comments on commit 90cbbd0

Please sign in to comment.