Chocobozzz/PeerTube

View on GitHub
client/src/sass/z-index.scss

Summary

Maintainability
Test Coverage
@use '_variables' as *;
@use '_mixins' as *;

.root-header {
  z-index: z(root-header);
}

.help-popover {
  z-index: z(help-popover);
}

ngx-loading-bar {
  z-index: z(root-header) + 1 !important;
}

// Dropdown added to body, override default z-index
body > .dropdown,
body > .dropup {
  z-index: z(dropdown) !important;
}

.list-overflow-menu,
.parent-entry {
  z-index: z(menu) - 1 !important;
}

.btn-group,
.dropdown-root,
.action-dropdown,
.column-toggle {
  z-index: inherit !important;
}

.dropdown-menu {
  z-index: z(dropdown) + 1 !important;
}

p-toast .p-toast {
  z-index: z(notification) !important;
}

ngb-modal-backdrop {
  z-index: z(modal) - 1 !important;
}

ngb-popover-window {
  z-index: z(popover) !important;
}

ngb-tooltip-window {
  z-index: z(tooltip) !important;
}

ngb-modal-window {
  z-index: z(modal) !important;

  ngb-tooltip-window {
    z-index: z(modal + 1) !important;
  }

  ngb-popover-window {
    z-index: z(modal + 1) !important;
  }

  .help-popover {
    z-index: z(modal + 1) !important;
  }
}