@import '~@alifd/next/variables.scss';

.propertyPanel {
  width: 280px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 2px;
  border-left: 1px solid #E6E7EB;

  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width .1s linear;

  &.hide {
    width: 0;
    border-left: none;
  }

  :global {
    // 滚动条
    ::-webkit-scrollbar {
      width: 7px;
      height: 7px;
    }

    ::-webkit-scrollbar-thumb {
      background-color: rgba(0, 0, 0, 0.2);
      border-radius: 7px;
      transition: all 0.25s ease-in-out;
    }

    ::-webkit-scrollbar-thumb:hover {
      background-color: rgba(0, 0, 0, 0.3);
    }

    // 折叠模板标题
    .#{$css-prefix}collapse-panel:not(:first-child) {
      border-top: none;
    }

    .#{$css-prefix}collapse-panel-title:hover {
      background: none;
    }

    .#{$css-prefix}collapse-panel-title {
      background: none;
      font-size: 12px;
      padding-left: 32px;

      & > .#{$css-prefix}collapse-panel-icon {
        left: 12px;
        margin-top: 0;
        margin-left: 0;
      }
    }

    .#{$css-prefix}collapse-panel-content,
    .#{$css-prefix}collapse-panel-expanded>.#{$css-prefix}collapse-panel-content {
      padding-left: 32px;
      padding-top: 8px;
    }

  }

  .header {
    background: #F2F3F7;
    height: 40px;
    font-size: 14px;
    padding: 0 16px;
    display: flex;
    align-items: center;
  }
}
