feat: bootstrap docs layout & sidebar

This commit is contained in:
Jean-Philippe Sirois
2019-07-27 15:52:25 -04:00
parent 6ef875f51f
commit 7b8740f5e0
16 changed files with 340 additions and 69 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ import "react-perfect-scrollbar/dist/css/styles.css"
const Layout = ({ children }: PropsWithChildren<{}>) => {
const data = useStaticQuery(graphql`
query SiteTitleQuery {
query {
site {
siteMetadata {
title
+41
View File
@@ -38,3 +38,44 @@ body {
padding-left: 2.8em;
overflow: initial;
}
/* temp */
/* the tree node's style */
.tree-view {
overflow-y: hidden;
}
.tree-view_item {
display: flex;
}
/* style for the children nodes container */
.tree-view_children {
margin-left: 16px;
}
.tree-view_children-collapsed {
height: 0px;
}
.tree-view_arrow {
cursor: pointer;
margin-right: 6px;
display: inline-block;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.tree-view_arrow:after {
content: "";
}
/* rotate the triangle to close it */
.tree-view_arrow-collapsed {
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}