2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-20 20:00:36 +03:00

Add new overlay-backdrop() mixin

- Update modal and offcanvas backdrops to use the mixin (placeholder wouldn't work with params I believe)
- Plus, modals and offcanvases should be able to be used together, so separate values for z-index (already implemented) are reflected properly here.
- Offcanvas still extends modals variables by default, save for z-index
This commit is contained in:
Mark Otto
2021-06-24 09:54:49 -07:00
committed by GeoSot
parent 34ed569610
commit a585c81035
5 changed files with 22 additions and 11 deletions
+1 -11
View File
@@ -85,17 +85,7 @@
// Modal background
.modal-backdrop {
position: fixed;
top: 0;
left: 0;
z-index: $zindex-modal-backdrop;
width: 100vw;
height: 100vh;
background-color: $modal-backdrop-bg;
// Fade for backdrop
&.fade { opacity: 0; }
&.show { opacity: $modal-backdrop-opacity; }
@include overlay-backdrop($zindex-modal-backdrop, $modal-backdrop-bg, $modal-backdrop-opacity);
}
// Modal header