@import '../../style/variables';

.#{$prefix}layout {
  box-sizing: border-box;
  display: flex;
  flex: 1;
  flex-direction: column;

  &_has-sidebar {
    flex-direction: row;
  }
}

.#{$prefix}layout-header {
  box-sizing: border-box;
  height: $layout-header-height;
  background-color: $layout-header-background;
}

.#{$prefix}layout-footer {
  box-sizing: border-box;
  padding: $layout-footer-padding;
  background-color: $layout-footer-background;
}

.#{$prefix}layout-content {
  flex: 1;
  box-sizing: border-box;
  background-color: $layout-body-background;
}

.#{$prefix}layout-sidebar {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: all 200ms;
  background: $layout-sidebar-background;
  color: #fff;

  &:last-child {
    .#{$prefix}layout-sidebar__trigger-icon {
      transform: rotateY(180deg);
    }
  }

  &__children {
    height: 100%;
  }

  &__trigger {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 1;
    cursor: pointer;
    height: 40px;
    background-color: rgb(0, 33, 64);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  &_light {
    background-color: #fff;
    color: #333;

    .#{$prefix}layout-sidebar {
      &__trigger {
        background-color: #efefef;
      }

      &__trigger-icon {
        color: #bbb;
      }
    }
  }
}
