@import url("./helpers.scss");
@import url("./spacing-helpers.scss");
@import url("./shape.scss");
@import url("./align-guides.scss");
@import url("./shortcut-btn.scss");
@import url("./page-manager.scss");
@import url("./canvas-wrapper.scss");

#luban-editor-layout,
#luban-work-manager-layout  {
  .header {
    padding: 0 10px;

    .logo {
      width: 120px;
      height: 31px;
      // background: rgba(255,255,255,.2);
      margin: 16px 28px 16px 0;
      float: left;

      line-height: 31px;
      text-align: center;
      color: white;
      font-size: 16px;
    }

    .lang-select-activator,
    .user-avatar-activator {
      float: right;
      background: transparent;
      margin: 0 28px 16px 0;
      cursor: pointer;

      .anticon {
        color: white;
      }
    }
  }

  #props-edit-form {
    .ant-form-item {
      margin-bottom: 12px;
    }
  }

  .card-cover-wrapper {
    position: relative;
    height: 300px;
    border: 1px dashed #eee;
    color: #aaa;
    padding: 4px;
  }
}

.ant-tabs-nav .ant-tabs-tab {
  // padding: 12px 0 !important;
}


.avaiable-animations-tabs .ant-tabs-nav .ant-tabs-tab {
  padding: 12px 16px !important;
}

// 动画编辑面板定制
#animation-edit-panel {
  .ant-collapse-header {
    padding: 6px 0 6px 40px;
  }

  .collapse-wrapper {
    margin-top: 12px;

    .ant-form-item {
      margin-bottom: 0;
    }
  }
}

.default-router-link {
  color: rgba(0, 0, 0, 0.65);
}
.router-link-active {
  color: #1890ff !important;
  background-color: transparent;
  text-decoration: none;
}

.plugin-usage-tip {
  font-size: 12px;
  color: #999;
  border-left: .2rem solid #dfe2e5;
  // margin: 1rem 0;
  padding: .25rem 0 .25rem 0.5rem;
}

.ant-layout-sider {
  // 防止拖动延迟
  transition: none !important;
}

$activeHoverColor: #1593ff;
.adjust-line-wrapper {
  .adjust-line {
    border: 1px solid #eee;
  }

  .adjust-line-h {
    width: 100%;
  }

  .adjust-line-v {
    height: 100%;
  }

  .adjust-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 30px;
    height: 10px;
    background-color: #fff;

    .indicator {
      margin: 0 auto;
      width: 10px;
      height: 1px;
      background-color: #ccd5db;
    }
  }

  &:hover {
    .adjust-button {
      background-color: $activeHoverColor;
    }

    .adjust-line {
      border-color: $activeHoverColor;
    }
  }
}

.adjust-line-wrapper-h {
  cursor: ns-resize;

  .adjust-tip {
    letter-spacing: 1px;
    padding: 0;
    height: 24px;
    margin: 2px auto 0;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    color: #868484;
    vertical-align: middle;
  }
}

.adjust-line-wrapper-v {
  position: relative;
  height: 100%;
  cursor: ew-resize;

  .adjust-button {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: rotate(90deg);
  }
}
.nz-ant-tabs-custom{
  height: 100%;
  &>div.ant-tabs-bar:nth-of-type(1){
    .ant-tabs-nav-container{
      .ant-tabs-nav-wrap{
        .ant-tabs-nav-scroll{
          width: 100%;
          .ant-tabs-nav{
            width: 100%;
            &>div:nth-of-type(1){
              width: 100%;
              display: flex;
              .ant-tabs-tab{
                flex: 1;
                text-align: center;
                margin: 0 !important;
              }
            }
          }
        }
      }
    }
  }
  .ant-tabs-content{
    height: 100%;
    .ant-tabs-tabpane{
      height: 100%;
      .ant-layout{
        height: 100%;
        padding-right: 10px;
      }
    }
  }
}