style.less 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. .questionAnswerList {
  2. width: 100%;
  3. height: 100%;
  4. background: #FFFFFF;
  5. border-radius: @border-radius-base;
  6. padding: 16px 20px;
  7. }
  8. .applicationList {
  9. width: 100%;
  10. min-height: 600px;
  11. }
  12. .card{
  13. padding: 16px;
  14. border: 1px solid @border-color;
  15. border-radius: @border-radius-large;
  16. min-height: 200px;
  17. overflow: auto;
  18. // 默认状态下操作按钮颜色
  19. .action-button {
  20. color: #999 !important;
  21. transition: color 0.3s ease;
  22. &:hover {
  23. color: @primary-color !important;
  24. }
  25. }
  26. .delete-button {
  27. color: #999 !important;
  28. transition: color 0.3s ease;
  29. &:hover {
  30. color: @error-color !important;
  31. }
  32. }
  33. }
  34. .card:hover{
  35. box-shadow: 0 0 8px rgba(0,0,0,.1);
  36. border: 1px solid @primary-color ;
  37. // 悬停状态下操作按钮颜色
  38. .action-button {
  39. color: @primary-color !important;
  40. }
  41. .delete-button {
  42. color: @error-color !important;
  43. }
  44. }
  45. .desc {
  46. height: 56px;
  47. overflow: hidden;
  48. font-weight: 300; /* 细体字 */
  49. line-height: 20px;
  50. transition: all 0.3s;
  51. }
  52. .ant-select-selector {
  53. border-radius: 4px !important;
  54. background: #fff !important;
  55. height: 32px !important;
  56. }
  57. .ant-select-dropdown {
  58. .ant-select-item-option-selected {
  59. background-color: @primary-color !important;
  60. color: #fff !important;
  61. }
  62. .ant-select-item-option-active {
  63. background-color: rgba(0, 123, 255, 0.1);
  64. }
  65. }
  66. // 按钮组筛选样式
  67. .filter-button-group {
  68. display: flex;
  69. gap: 8px;
  70. flex-wrap: wrap;
  71. .ant-btn {
  72. border-radius: 16px;
  73. height: 32px;
  74. padding: 0 16px;
  75. font-size: 14px;
  76. font-weight: 400;
  77. border: 1px solid #d9d9d9;
  78. background-color: #fff;
  79. color: #000;
  80. transition: all 0.3s ease;
  81. display: flex;
  82. align-items: center;
  83. &:hover {
  84. transform: translateY(-1px);
  85. box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
  86. border-color: #40a9ff;
  87. color: #40a9ff;
  88. }
  89. // 所有选中状态的按钮都使用统一的蓝色主题
  90. &.ant-btn-primary {
  91. background-color: #1890ff !important;
  92. border-color: #1890ff !important;
  93. color: #fff !important;
  94. font-weight: 500 !important;
  95. &:hover {
  96. background-color: #40a9ff !important;
  97. border-color: #40a9ff !important;
  98. color: #fff !important;
  99. }
  100. }
  101. // 全部按钮特殊样式 - 未选中时
  102. &:first-child:not(.ant-btn-primary) {
  103. background-color: #f5f5f5;
  104. border-color: #d9d9d9;
  105. color: #666;
  106. &:hover {
  107. background-color: #e6f7ff;
  108. border-color: #40a9ff;
  109. color: #40a9ff;
  110. }
  111. }
  112. // 图标样式优化
  113. .anticon {
  114. font-size: 14px;
  115. margin-right: 4px;
  116. transition: color 0.3s ease;
  117. color: #666; // 默认颜色
  118. }
  119. // 悬停时图标颜色变化
  120. &:hover .anticon {
  121. color: #40a9ff !important;
  122. }
  123. // 选中状态时图标颜色
  124. &.ant-btn-primary .anticon {
  125. color: #fff !important;
  126. }
  127. // 选中状态悬停时图标颜色
  128. &.ant-btn-primary:hover .anticon {
  129. color: #fff !important;
  130. }
  131. // 全部按钮未选中时图标颜色
  132. &:first-child:not(.ant-btn-primary) .anticon {
  133. color: #666;
  134. }
  135. // 全部按钮悬停时图标颜色
  136. &:first-child:not(.ant-btn-primary):hover .anticon {
  137. color: #40a9ff;
  138. }
  139. }
  140. }
  141. // 响应式处理
  142. @media (max-width: 768px) {
  143. .filter-button-group {
  144. gap: 6px;
  145. .ant-btn {
  146. font-size: 12px;
  147. padding: 0 12px;
  148. height: 28px;
  149. }
  150. }
  151. }
  152. @media (max-width: 480px) {
  153. .filter-button-group {
  154. gap: 4px;
  155. .ant-btn {
  156. font-size: 11px;
  157. padding: 0 8px;
  158. height: 24px;
  159. border-radius: 12px;
  160. }
  161. }
  162. }
  163. // 圆形按钮样式优化
  164. .ant-btn-circle {
  165. width: 32px;
  166. height: 32px;
  167. border-radius: 50%;
  168. display: flex;
  169. align-items: center;
  170. justify-content: center;
  171. transition: all 0.3s ease;
  172. &:hover {
  173. transform: translateY(-1px);
  174. box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
  175. }
  176. .anticon {
  177. font-size: 14px;
  178. }
  179. }