$component: $lib-name + "-layout";

.#{$component} {
  position: relative;
  height: 100%;
  &.not-scroll {
    height: auto;
    min-height: 100%;
  }
}

.#{$component}-sider {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all $transition-time;
  z-index: 1;
  &.sider-left {
    left: 0;
  }
  &.sider-right {
    right: 0;
  }
  &.sider-fixed {
    position: fixed;
  }
}

.#{$component}-content {
  min-height: 100%;
  height: 100%;
  max-height: 100%;
  transition: all $transition-time;
  box-sizing: border-box;
  
  .layout-content-box {
    min-height: 100%;
    height: 100%;
    max-height: 100%;
    overflow: auto;
    &.not-scroll {
      overflow: inherit;
    }
  }
}

.#{$component}-header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  transition: all $transition-time;
}

.#{$component}-footer {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  transition: all $transition-time;
}