File tree Expand file tree Collapse file tree 2 files changed +22
-9
lines changed
Expand file tree Collapse file tree 2 files changed +22
-9
lines changed Original file line number Diff line number Diff line change 1313<main class =" bg-dark-subtle" >
1414 <div class =" page container" >
1515 {{ #if sidebar }}
16- <aside id =" page-sidebar" class =" sidebar pe-2 offcanvas-lg offcanvas-start" >
16+ <aside id =" page-sidebar" class =" sidebar pe-lg-2 offcanvas-lg offcanvas-start" tabindex =" -1"
17+ aria-labelledby =" sidebar-offcanvas-label" >
18+ <div class =" offcanvas-header" >
19+ <h5 class =" offcanvas-title" id =" sidebar-offcanvas-label" >Pages</h5 >
20+ <button type =" button" class =" btn-close" data-bs-dismiss =" offcanvas" data-bs-target =" #page-sidebar"
21+ aria-label =" Close" ></button >
22+ </div >
23+ <hr class =" my-0 d-lg-none" >
1724 <div class =" sidebar-content offcanvas-body" >
1825 {{{ sidebar }}}
1926 </div >
2229 <article class =" page-container py-4 {{ #if toc }} with-toc{{ /if }} " >
2330 {{ #if sidebar }}
2431 <div class =" page-sidebar-toggle d-lg-none" >
25- <button class =" btn btn-sm btn-outline-secondary" type =" button" data-bs-toggle =" offcanvas"
32+ <button class =" btn btn-sm btn-outline-secondary mb-2 " type =" button" data-bs-toggle =" offcanvas"
2633 data-bs-target =" #page-sidebar" >
2734 <i class =" bi bi-list" ></i > Pages
2835 </button >
Original file line number Diff line number Diff line change @@ -69,15 +69,21 @@ aside.sidebar {
6969 }
7070
7171 @include media-breakpoint-up (lg) {
72- & {
73- display : block ;
74- width : 25% ;
75- height : min-content ;
72+ display : block ;
73+ width : max (192px , 25% );
74+ height : min-content ;
75+
76+ min-width : unset ;
7677
77- min-width : unset ;
78+ position : sticky ;
79+ top : calc (1.5rem + var (--navbar-height ));
7880
79- position : sticky ;
80- top : calc ( 1.5 rem + var ( --navbar-height )) ;
81+ .sidebar-content > ul , ol {
82+ margin-left : -1.5 em ;
8183 }
8284 }
85+
86+ @include media-breakpoint-up (xl) {
87+ width : 25% ;
88+ }
8389}
You can’t perform that action at this time.
0 commit comments