reset.less 1.81 KB
@import '~@qx/ui/src/style/variable.less';

* {
  scrollbar-width: thin;
  font-variant-numeric: tabular-nums; // tabular-nums 可以达到数字等宽的效果
  box-sizing: border-box;
  outline: none;
  // 覆盖 antd+CSS3 样式
  // 当用户使用鼠标点击焦点元素或使用键盘的 Tab 键(或快捷键)触发焦点元素焦点环的样式
  &.focus-visible {
    outline: none;
  }
}

// 全局滚动条样式重设
::-webkit-scrollbar {
  width: 9px;
  height: 12px;
  padding: 2px 0;
  background-color: #fafafa;
}

::-webkit-scrollbar-button,
::-webkit-scrollbar-corner {
  display: none;
  width: 0;
  height: 0;
}

::-webkit-scrollbar-thumb {
  width: 6px;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 6px;
}

.qx-common__modal {
  .ant-modal-content {
    padding: 0;
  }

  .ant-modal-header .ant-modal-title {
    padding: 24px 24px 0 24px;
    color: @N9;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
  }

  .ant-modal-close {
    top: 24px;
    right: 24px;
    width: 20px;
    height: 24px;

    &:hover {
      background-color: #fff;
    }

    > .ant-modal-close-x {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      padding: 0;

      .qx-common__modal--close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        color: @N7;
        font-size: 16px;

        &:hover {
          color: @N9;
        }
      }
    }
  }

  .ant-modal-footer {
    padding: 8px 24px;
  }

  .ant-modal-body {
    max-height: 464px;
    padding: 16px 18px 24px 24px;
    overflow-y: hidden;
    scrollbar-gutter: stable;

    &:hover {
      overflow-y: auto;
    }
  }
}