Skip to content

Commit 64bd9d5

Browse files
committed
fix: resolve sidebar issue
Signed-off-by: Bharath Valaboju <69413757+Bharath314@users.noreply.github.com>
1 parent d81206e commit 64bd9d5

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

assets/scss/_styles_project.scss

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,17 @@ a:not([href]):not([class]):hover {
236236
padding-top: 1rem;
237237
margin-top: 0;
238238
overflow-x: hidden;
239+
&__inner {
240+
order: 0;
241+
242+
@include media-breakpoint-up(md) {
243+
@supports (position: sticky) {
244+
position: static;
245+
top: 0;
246+
z-index: 10;
247+
}
248+
}
249+
}
239250
}
240251

241252
.td-sidebar #td-sidebar-menu,
@@ -253,19 +264,19 @@ a:not([href]):not([class]):hover {
253264
}
254265
}
255266

256-
@media screen and (min-height: 800px) and (min-width: 768px) {
257-
.td-sidebar {
258-
height: 100vh;
259-
top: 0;
260-
padding-top: 0rem;
261-
}
262-
}
263-
264267
// Left sidebar
265268
.td-sidebar-nav {
269+
$_max-height: none;
266270
overflow: hidden;
267271
padding: 0px;
268272

273+
@include media-breakpoint-up(md) {
274+
@supports (position: sticky) {
275+
max-height: $_max-height;
276+
overflow-y: hidden;
277+
}
278+
}
279+
269280
&__section-title {
270281
a {
271282
color: $gray-400;

0 commit comments

Comments
 (0)