theme.less 2.65 KB
Newer Older
zhangsan's avatar
zhangsan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
.bg-white {
  background-color: @component-background !important;
}

html[data-theme='light'] {
  // update-begin--author:liaozhiyang---date:20240407---for:【QQYUN-8774】给body加上打底的字体颜色
  body{
    color: rgba(0, 0, 0, 0.65);
  }
  // update-end--author:liaozhiyang---date:20240407---for:【QQYUN-8774】给body加上打底的字体颜色
  .text-secondary {
    color: rgba(0, 0, 0, 0.45);
  }
  /*【美化】自定义table字体颜色*/
  .ant-table {
    color: rgba(0, 0, 0, 0.65);
  }
  /*【美化】自定义table字体颜色*/
  /*【美化】自定义form字体颜色*/
  .ant-select-multiple .ant-select-selection-item-content {
    color: rgba(0, 0, 0, 0.65);
  }
  .ant-input-affix-wrapper > input.ant-input {
    // update-begin--author:liaozhiyang---date:20240605---for:【TV360X-189】统一只读样式
    &:not([disabled]) {
      color: rgba(0, 0, 0, 0.65);
    }
    // update-end--author:liaozhiyang---date:20240605---for:【TV360X-189】统一只读样式
  }
  .ant-select-single.ant-select-show-arrow .ant-select-selection-item, .ant-select-single.ant-select-show-arrow {
    color: rgba(0, 0, 0, 0.65);
  }
  /*【美化】自定义form字体颜色*/
  
  .ant-alert-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
  }

  .ant-alert-error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
  }

  .ant-alert-warning {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
  }
  :not(:root):fullscreen::backdrop {
    background-color: @layout-body-background !important;
  }
}

[data-theme='dark'] {
  // update-begin--author:liaozhiyang---date:20240407---for:【QQYUN-8774】给body加上打底的字体颜色
  body{
    color: rgba(255, 255, 255, 0.85);
  }
  // update-end--author:liaozhiyang---date:20240407---for:【QQYUN-8774】给body加上打底的字体颜色
  // update-begin--author:liaozhiyang---date:20240407---for:【QQYUN-8641】黑色主题-流程办理
  .ant-list .ant-list-item {
    color: rgba(255, 255, 255, 0.85);
  }
  // update-end--author:liaozhiyang---date:20240407---for:【QQYUN-8641】黑色主题-流程办理
  .text-secondary {
    color: #8b949e;
  }

  .ant-card-grid-hoverable:hover {
    box-shadow: 0 3px 6px -4px rgb(0 0 0 / 48%), 0 6px 16px 0 rgb(0 0 0 / 32%), 0 9px 28px 8px rgb(0 0 0 / 20%);
  }

  .ant-card-grid {
    box-shadow: 1px 0 0 0 #434343, 0 1px 0 0 #434343, 1px 1px 0 0 #434343, 1px 0 0 0 #434343 inset, 0 1px 0 0 #434343 inset;
  }

  .ant-calendar-selected-day .ant-calendar-date {
    color: rgba(0, 0, 0, 0.8);
  }

  .ant-select-tree li .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected {
    color: rgba(0, 0, 0, 0.9);
  }
}