mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-02 02:42:41 +02:00
fix(v2): make sidebar logo positioning relative navbar (#2179)
This commit is contained in:
parent
5bafa1d106
commit
24206de744
2 changed files with 8 additions and 4 deletions
|
@ -142,7 +142,7 @@ function DocSidebar(props) {
|
|||
{title != null && <strong>{title}</strong>}
|
||||
</div>
|
||||
<div
|
||||
className={classnames('menu', 'menu--responsive', {
|
||||
className={classnames('menu', 'menu--responsive', styles.menu, {
|
||||
'menu--show': showResponsiveSidebar,
|
||||
})}>
|
||||
<button
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
.sidebar {
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
padding: 0.5rem;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
padding-top: var(--ifm-navbar-height);
|
||||
|
@ -37,14 +36,19 @@
|
|||
display: flex !important;
|
||||
align-items: center;
|
||||
position: absolute;
|
||||
top: var(--ifm-navbar-padding-horizontal);
|
||||
padding: 0 0 0 var(--ifm-navbar-padding-vertical);
|
||||
top: 0;
|
||||
margin: 0 var(--ifm-navbar-padding-horizontal);
|
||||
height: var(--ifm-navbar-height);
|
||||
}
|
||||
|
||||
.sidebarLogo img {
|
||||
margin-right: 0.5rem;
|
||||
height: 2rem;
|
||||
}
|
||||
|
||||
.menu {
|
||||
padding: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebarLogo {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue