mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
feat(v2): responsive navbar
This commit is contained in:
parent
9b2ff32e7e
commit
e76288341f
3 changed files with 86 additions and 11 deletions
|
@ -56,7 +56,10 @@ function DocSidebar(props) {
|
|||
case 'link':
|
||||
return (
|
||||
<li className="menu__list-item" key={item.label}>
|
||||
<Link className="menu__link" to={item.href}>
|
||||
<Link
|
||||
activeClassName="menu__link--active"
|
||||
className="menu__link"
|
||||
to={item.href}>
|
||||
{item.label}
|
||||
</Link>
|
||||
</li>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
border-right: 1px solid #dadde1;
|
||||
bottom: 0;
|
||||
box-sizing: border-box;
|
||||
padding: 2rem 0.25rem 2rem 2rem;
|
||||
padding: 0.5rem;
|
||||
left: 0;
|
||||
position: fixed;
|
||||
overflow-x: hidden;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue