mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
a585c81035
- 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
15 lines
355 B
SCSS
15 lines
355 B
SCSS
// Shared between modals and offcanvases
|
|
@mixin overlay-backdrop($zindex, $backdrop-bg, $backdrop-opacity) {
|
|
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; }
|
|
}
|