feat: collapsible categories (#1128)

* feat : #1084 Collapsus - The Collapsible Menu

* updated docs

* fixed prettier

* fix for category not auto-expanding upon navigating to a subcategory under it

* as requested by endiliey. Do not merge this commit.

* Update api-site-config.md

* Update guides-navigation.md

* Update SideNav.js

* Update main.css

* Update SideNav.js

* Delete subcategory1.md

* Delete subcategory2.md

* Update sidebars.json
This commit is contained in:
tsmrachel 2019-01-24 06:13:27 +08:00 committed by Yangshun Tay
parent c27a430529
commit d5fd15ecbe
5 changed files with 87 additions and 19 deletions

View file

@ -1596,6 +1596,22 @@ input::placeholder {
/* End of Docs Navigation */
/* Start of Docs Sidebar */
.hide {
display: none;
}
.collapsible .arrow {
cursor: pointer;
float: right;
margin-right: 5px;
transform: rotate(90deg);
transition: transform 200ms linear;
}
.collapsible .arrow.rotate {
transform: rotate(180deg);
}
@media only screen and (max-width: 1023px) {
.docsNavContainer {
background: #fff;