Added scrolling on overflow of sidebar content in new docs

This commit is contained in:
Piotr Janosz
2019-08-05 14:47:40 +02:00
committed by fabioberger
parent 730e8ad151
commit 785ca4f5d1

View File

@@ -31,4 +31,10 @@ const SidebarAside = styled.aside`
const SidebarContent = styled.div`
position: sticky;
top: ${docs.headerOffset}px; /* To make space for the header (react-headroom) when clicking on links */
max-height: 60vh;
overflow-y: auto;
@media (max-width: 900px) {
max-height: 100%;
}
`;