@import "mixins";
@import "variables";

.example-app {
  @import "preloader";
  @import "sidebar";
  @import "menu-button";
  @import "components";

  position: relative;
  min-height: $appMinHeight;
  margin-top: 20px;
  overflow: hidden;
  z-index: 0;

  .main {
    transition: transform 0.2s ease-out;
    background: #000;
    z-index: 1;
    position: relative;
  }

  &.menu-visible {
    .main {
      transform: translateX($sidebarWidth);
    }
  }

  .header {
    display: flex;
    height: $headerHeight;
    background: $background;
    justify-content: space-between;
    align-items: center;
  }

  .sidebar {
    border: none;
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    width: $sidebarWidth;
    z-index: 0;
  }

  .overlay {
    position: absolute;
    display: none;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
  }

  .overlay--visible {
    display: block;
  }

  .content {
    padding: 0;
  }

  .content-wrapper {
    position: relative;
    min-height: $appMinHeight;
  }

  .page {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    background: $background;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    @include clearfix;
    .vigor-component {
      visibility: hidden;
    }
  }

  .page--on-top {
    z-index: 1;
  }

  .component-area {
    border: none;
  }

  .chart-component {
    float: left;
  }
}

@media (min-width: 500px) {
  .chart-component {
    max-width: 50%;
  }
  .linechart-component {
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .chart-component {
    max-width: 33.3%;
  }
  .linechart-component {
    max-width: 100%;
  }
}