bakalarska_praca/database/node_modules/bootstrap/scss/mixins/_backdrop.scss

15 lines
328 B
SCSS
Raw Normal View History

2023-05-11 19:57:12 +00:00
// Shared between modals and offcanvases
@mixin overlay-backdrop($zindex, $backdrop-bg, $backdrop-opacity) {
position: fixed;
top: 0;
left: 0;
z-index: $zindex;
width: 100vw;
height: 100vh;
background-color: $backdrop-bg;
// Fade for backdrop
&.fade { opacity: 0; }
&.show { opacity: $backdrop-opacity; }
}