/* stylelint-disable selector-no-qualifying-type */
body.canvas-isFullscreen {
  // following two rules are for overriding the header bar padding
  &.euiBody--headerIsFixed {
    padding-top: 0;
  }

  // hide global loading indicator
  .kbnLoadingIndicator {
    display: none;
  }

  // hide global banners
  #globalBannerList {
    display: none;
  }

  // set the background color
  .canvasLayout {
    background: $euiColorInk;
  }

  // hide all the interface parts
  .canvasLayout__stageHeader,
  .canvasLayout__sidebar,
  .canvasLayout__footer,
  .canvasGrid {
    display: none;
  }

  .canvasLayout__stageContentOverflow {
    display: block; // fixes center alignment for Safari
    overflow: visible;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;

    .canvasWorkpad__buffer {
      padding: 0;
      margin: 0;
    }
  }

  .canvasLayout__rows {
    // this is critical for the row to expand outside of the viewport for proper fullscreen sizing
    max-width: none;
  }

  .canvasLayout__rows,
  .canvasLayout__cols {
    align-items: center;
    justify-content: center;
  }

  .canvasCheckered {
    display: flex;
    background: none;
  }

  .canvasPage {
    box-shadow: none;
    overflow: hidden;
  }

  // When in fullscreen, we want to make sure to hide the "there was a conflict" resolve callout
  .canvasContainer > .euiCallOut {
    display: none;
  }
}
