Skip to content

Commit

Permalink
Dashboard example: use the core .position-sticky class. (twbs#30408)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and olsza committed Oct 3, 2020
1 parent 2681e9f commit fd60724
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions site/content/docs/4.3/examples/dashboard/dashboard.css
Expand Up @@ -37,13 +37,6 @@ body {
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
.sidebar-sticky {
position: -webkit-sticky;
position: sticky;
}
}

.sidebar .nav-link {
font-weight: 500;
color: #333;
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/4.3/examples/dashboard/index.html
Expand Up @@ -27,7 +27,7 @@
<div class="container-fluid">
<div class="row">
<nav id="sidebarMenu" class="col-md-2 d-md-block bg-light sidebar collapse">
<div class="sidebar-sticky">
<div class="position-sticky">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">
Expand Down

0 comments on commit fd60724

Please sign in to comment.