Песочница: различия между версиями
Askell (обсуждение | вклад) Нет описания правки |
Askell (обсуждение | вклад) Нет описания правки |
||
Строка 1: | Строка 1: | ||
< | <button class="btn btn-primary" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasScrolling" aria-controls="offcanvasScrolling">Enable body scrolling</button> | ||
<button class="btn btn-primary" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasWithBackdrop" aria-controls="offcanvasWithBackdrop">Enable backdrop (default)</button> | |||
</ | <button class="btn btn-primary" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasWithBothOptions" aria-controls="offcanvasWithBothOptions">Enable both scrolling & backdrop</button> | ||
<button class="btn btn-primary" type="button" data-bs-toggle="offcanvas" data-bs-target="# | |||
</button> | |||
<div class="offcanvas offcanvas-start" tabindex="-1" id=" | <div class="offcanvas offcanvas-start" data-bs-scroll="true" data-bs-backdrop="false" tabindex="-1" id="offcanvasScrolling" aria-labelledby="offcanvasScrollingLabel"> | ||
<div class="offcanvas-header"> | <div class="offcanvas-header"> | ||
<h5 class="offcanvas-title" id=" | <h5 class="offcanvas-title" id="offcanvasScrollingLabel">Colored with scrolling</h5> | ||
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> | <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> | ||
</div> | </div> | ||
<div class="offcanvas-body"> | <div class="offcanvas-body"> | ||
< | <p>Try scrolling the rest of the page to see this option in action.</p> | ||
</div> | |||
</div> | |||
<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasWithBackdrop" aria-labelledby="offcanvasWithBackdropLabel"> | |||
<div class="offcanvas-header"> | |||
<h5 class="offcanvas-title" id="offcanvasWithBackdropLabel">Offcanvas with backdrop</h5> | |||
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> | |||
</div> | |||
<div class="offcanvas-body"> | |||
<p>.....</p> | |||
</div> | |||
</div> | |||
</ | <div class="offcanvas offcanvas-start" data-bs-scroll="true" tabindex="-1" id="offcanvasWithBothOptions" aria-labelledby="offcanvasWithBothOptionsLabel"> | ||
<div class="offcanvas-header"> | |||
<h5 class="offcanvas-title" id="offcanvasWithBothOptionsLabel">Backdroped with scrolling</h5> | |||
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> | |||
</div> | |||
<div class="offcanvas-body"> | |||
<p>Try scrolling the rest of the page to see this option in action.</p> | |||
</div> | </div> | ||
</div> | </div> |