Skip to content

Commit f843f56

Browse files
Sticky breadcrumb and sidebar navs (#1198)
close #1197
1 parent 2cf9118 commit f843f56

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

styles/theme-base.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,10 @@ pre.info {
532532
padding:.75rem 1.5rem 1.5rem;
533533
-moz-box-sizing:border-box;
534534
box-sizing:border-box;
535+
position: sticky;
536+
top: 3rem;
537+
max-height: calc(100vh - 3rem);
538+
overflow: auto;
535539
}
536540
#layout-content {
537541
padding:1.5rem;
@@ -1352,6 +1356,10 @@ div.soft-deprecation-notice blockquote.sidebar {
13521356
@media (min-width: 768px) {
13531357
#breadcrumbs {
13541358
display:block;
1359+
position: sticky;
1360+
top: 0px;
1361+
background: var(--dark-grey-color);
1362+
z-index: 1;
13551363
}
13561364
#intro .background,
13571365
aside.tips,
@@ -1361,8 +1369,8 @@ div.soft-deprecation-notice blockquote.sidebar {
13611369
}
13621370

13631371
#layout-content {
1364-
float:left;
1365-
width:75%;
1372+
float: left;
1373+
width: 75%;
13661374
}
13671375
}
13681376

0 commit comments

Comments
 (0)