style.less 4.8 KB

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