Skip to content

Commit 131b743

Browse files
committed
fix quick links sticky
1 parent aa77b14 commit 131b743

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

assets/scss/_common.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,4 +1162,14 @@ $accent: #FF4081;
11621162

11631163
.color-gray {
11641164
color: #777;
1165+
}
1166+
1167+
1168+
@media (min-width: 992px) {
1169+
.quicklinks-mobile-sticky-top {
1170+
position: -webkit-sticky;
1171+
position: sticky;
1172+
top: 80px;
1173+
z-index: 1000;
1174+
}
11651175
}

assets/scss/templates/_main.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
html, body {
2-
overflow-x: hidden;
3-
}
41
body {
52
position: relative
63
}

themes/bigspring-light/layouts/_default/single.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ <h2 class="mb-4" style="color: #005aa7;">{{ .Title }}</h2>
3131
<div class="container">
3232
<div class="row">
3333
{{ if .Params.quick_navigation.links }}
34-
<div class="col-lg-4 col-12 mx-auto sticky-top">
35-
<div class="content">
34+
<div class="col-lg-4 col-12 mx-auto">
35+
<div class="content quicklinks-mobile-sticky-top">
3636
<div class="container-fluid mt-5 p-0">
3737
<h3>{{.Params.quick_navigation.title}}</h3>
3838
<ul>

0 commit comments

Comments
 (0)