You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
328 B

8 months ago
  1. // Shared between modals and offcanvases
  2. @mixin overlay-backdrop($zindex, $backdrop-bg, $backdrop-opacity) {
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. z-index: $zindex;
  7. width: 100vw;
  8. height: 100vh;
  9. background-color: $backdrop-bg;
  10. // Fade for backdrop
  11. &.fade { opacity: 0; }
  12. &.show { opacity: $backdrop-opacity; }
  13. }