mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-02 19:03:38 +02:00
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:
parent
c27a430529
commit
d5fd15ecbe
5 changed files with 87 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue