📘 DOC: Improve SiteSidebar styles on mobile (#939)
This commit is contained in:
parent
cd2b5df49c
commit
908139642a
2 changed files with 4 additions and 5 deletions
|
@ -463,5 +463,5 @@ h2.heading {
|
|||
/* Screenreader Only Text - End */
|
||||
|
||||
:target {
|
||||
scroll-margin-top: 4rem;
|
||||
scroll-margin: calc(var(--theme-sidebar-offset, 5rem) + 2rem) 0 2rem;
|
||||
}
|
||||
|
|
|
@ -214,7 +214,7 @@ if (currentPage) {
|
|||
}
|
||||
:global(.mobile-sidebar-toggle) #sidebar-site {
|
||||
display: block;
|
||||
top: 0;
|
||||
top: 2rem;
|
||||
}
|
||||
.block {
|
||||
display: block;
|
||||
|
@ -235,12 +235,14 @@ if (currentPage) {
|
|||
#sidebar-site {
|
||||
display: flex;
|
||||
padding-left: 2rem;
|
||||
position: sticky;
|
||||
}
|
||||
:global(.mobile-sidebar-toggle) {
|
||||
overflow: initial;
|
||||
}
|
||||
:global(.mobile-sidebar-toggle) #sidebar-site {
|
||||
display: flex;
|
||||
top: 0;
|
||||
}
|
||||
.menu-toggle {
|
||||
display: none;
|
||||
|
@ -254,9 +256,6 @@ if (currentPage) {
|
|||
#article {
|
||||
grid-column: 2;
|
||||
}
|
||||
#sidebar-site {
|
||||
position: sticky;
|
||||
}
|
||||
#sidebar-content {
|
||||
/* display: flex; */
|
||||
grid-column: 3;
|
||||
|
|
Loading…
Reference in a new issue