lf-app {
  display: block;
  height: 100%; // Use the height of the container as the app's height

  // Override margin set on all values
  &.lf-value:not(:last-child) {
    margin-bottom: 0;
  }

  #lf-header {
    z-index: 1;
  }

  // Styles to make whole app responsive
  #lf-main-container {
    position: relative;
    height: 100%;
    overflow: auto;
  }

  #lf-main-row {
    @include media-breakpoint-up(md) {
      height: 100%;
    }
  }

  // Tree-nav styles, making it show up from the left on small screens when the
  // `show` class is added
  #lf-tree-nav-container {
    height: 100%;
    padding: 0;
    border-right: 1px solid $tree-nav-border-color;
    background-color: $tree-nav-bg-color;
    overflow: auto;

    @include media-breakpoint-down(sm) {
      position: fixed;
      width: $tree-nav-fixed-width;
      top: 0;
      transform: translateX(-$tree-nav-fixed-width);
      z-index: $zindex-modal;
      border-right-color: $tree-nav-fixed-border-color;

      // Only animate when necessary (otherwise resizing the screen makes the
      // tree-nav temporarily show)
      &.animate {
        transition: transform 0.3s ease-out;
      }

      &.show {
        transform: translateX(0);
      }
    }
  }

  #lf-main-content {
    // XXX: Force bottom padding on Firefox for overflowing content, see:
    // https://github.com/w3c/csswg-drafts/issues/129
    padding: $spacer $spacer 0;
    &:after {
      content: '';
      display: block;
      width: 100%;
      height: $spacer;
    }
    @include media-breakpoint-up(md) {
      padding: $spacer * 2 $spacer * 2 0;
      &:after {
        height: $spacer * 2;
      }
      height: 100%;
      overflow: auto;
    }
  }
}
