@import "@/assets/styles/variable.less";

// 设置按钮
:deep(.ycode-ant-btn-primary) {
  background-color: @primary-color !important;
  &:hover {
    background-color: @primary-light-color !important;
  }
}

// 设置输入框
:deep(
    .ycode-ant-input-affix-wrapper:not(
        .ycode-ant-input-affix-wrapper-disabled
      ):hover
  ) {
  border-color: @primary-light-color !important;
}

// 设置选择框
:deep(.ycode-ant-select-selector:hover) {
  border-color: @primary-light-color !important;
}

:deep(.ycode-ant-select-focused) {
  .ycode-ant-select-selector {
    border-color: @primary-light-color !important;
  }
}

// 设置日期框
:deep(.ycode-ant-picker) {
  &:hover,
  &-focused {
    border-color: @primary-light-color !important;
  }
  &-active-bar {
    background-color: @primary-light-color !important;
  }
}

// 设置表格
:deep(.ycode-ant-table-thead > tr > th) {
  background-color: @table-head-bg-color !important;
  color: @table-head-font-color !important;
}

// 设置分页器
:deep(.ycode-ant-pagination-item) {
  &-active {
    border-color: @primary-color !important;
    a {
      color: @primary-color !important;
    }
  }
  &-link-icon {
    color: @primary-color !important;
  }
}
