mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Dashboard example: use the core .position-sticky
class. (#30408)
This commit is contained in:
parent
80c291fec3
commit
0ca2cf4cca
2 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -27,7 +27,7 @@ extra_js:
|
|||
<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="#">
|
||||
|
|
Loading…
Reference in a new issue