index.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. @import './pagination.less';
  2. @import './input.less';
  3. @import './btn.less';
  4. // TODO beta.11 fix
  5. .ant-col {
  6. width: 100%;
  7. }
  8. // .ant-form-item-label {
  9. // text-align: unset;
  10. // }
  11. // =================================
  12. // ==============descriptions=======
  13. // =================================
  14. .ant-descriptions-bordered .ant-descriptions-item-label {
  15. background-color: @background-color-light;
  16. }
  17. .ant-descriptions .ant-descriptions-item-content {
  18. color: @text-color-call-out;
  19. }
  20. // =================================
  21. // ==============modal message======
  22. // =================================
  23. .modal-icon-warning {
  24. color: @warning-color !important;
  25. }
  26. .modal-icon-success {
  27. color: @success-color !important;
  28. }
  29. .modal-icon-error {
  30. color: @error-color !important;
  31. }
  32. .modal-icon-info {
  33. color: @primary-color !important;
  34. }
  35. .ant-modal-mask {
  36. background-color: rgba(0, 0, 0, 0.2);
  37. }
  38. // =================================
  39. // ==============menu===============
  40. // =================================
  41. .ant-menu-item {
  42. &-selected {
  43. a {
  44. color: @primary-color;
  45. &:hover {
  46. color: @primary-color;
  47. }
  48. }
  49. }
  50. }
  51. // =================================
  52. // ==============dropdown===========
  53. // =================================
  54. .ant-dropdown {
  55. .ant-divider {
  56. margin: 4px 0;
  57. }
  58. &-menu-item {
  59. line-height: 30px;
  60. color: @text-color-call-out;
  61. &:hover {
  62. color: inherit;
  63. background-color: @border-color-shallow-light;
  64. }
  65. }
  66. }
  67. // =================================
  68. // ==============back-top===========
  69. // =================================
  70. .ant-back-top {
  71. right: 50px;
  72. bottom: 60px;
  73. }
  74. // =================================
  75. // ==============calendar===========
  76. // =================================
  77. .ant-calendar-picker {
  78. width: 100%;
  79. }
  80. // =================================
  81. // ==============tooltip============
  82. // =================================
  83. .ant-tooltip {
  84. &-inner {
  85. padding: 6px 16px;
  86. line-height: 20px;
  87. color: @white;
  88. background: @text-color-base;
  89. border-radius: 4px;
  90. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  91. }
  92. }
  93. // =================================
  94. // ==============form===============
  95. // =================================
  96. .ant-form-item.deltag .ant-form-item-required::before {
  97. content: '';
  98. }
  99. .ant-form-item-with-help {
  100. margin-bottom: 0;
  101. }
  102. .ant-form-item {
  103. &-label label::after {
  104. margin: 0 6px 0 2px;
  105. }
  106. }
  107. .ant-form-item:not(.ant-form-item-with-help) {
  108. margin-bottom: 20px;
  109. }
  110. .ant-form-explain {
  111. font-size: 14px;
  112. }
  113. .compact-form-row {
  114. .ant-form-item {
  115. margin-bottom: 8px;
  116. }
  117. }
  118. // =================================
  119. // ==============empty==============
  120. // =================================
  121. .ant-empty-image {
  122. max-height: 144px;
  123. min-height: 60px;
  124. }
  125. .ant-empty-description {
  126. margin-top: 16px;
  127. font-size: 14px;
  128. line-height: 24px;
  129. color: @text-color-call-out;
  130. }