mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-28 12:48:16 +00: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. */
|
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 {
|
.sidebar .nav-link {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ extra_js:
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<nav id="sidebarMenu" class="col-md-2 d-md-block bg-light sidebar collapse">
|
<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">
|
<ul class="nav flex-column">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link active" aria-current="page" href="#">
|
<a class="nav-link active" aria-current="page" href="#">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue