dashboard-urgent-tasks-enhanced.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. // 增强版紧急待办样式
  2. // 使用内联变量定义,不依赖外部文件
  3. /* 增强版任务项目样式 */
  4. .task-item-enhanced {
  5. display: flex;
  6. flex-direction: column;
  7. background: white;
  8. border-radius: 16px;
  9. overflow: hidden;
  10. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  11. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  12. border: 1px solid #e5e7eb;
  13. position: relative;
  14. &:hover {
  15. transform: translateY(-2px);
  16. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  17. border-color: #d1d5db;
  18. }
  19. &.completed {
  20. background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  21. border-color: #bae6fd;
  22. opacity: 0.8;
  23. .task-title {
  24. text-decoration: line-through;
  25. color: #64748b;
  26. }
  27. }
  28. &.overdue {
  29. background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  30. border-color: #fecaca;
  31. }
  32. }
  33. /* 优先级指示器 */
  34. .task-priority-indicator {
  35. position: absolute;
  36. left: 0;
  37. top: 0;
  38. bottom: 0;
  39. width: 4px;
  40. &.high {
  41. background: linear-gradient(180deg, #ef4444, #dc2626);
  42. }
  43. &.medium {
  44. background: linear-gradient(180deg, #f59e0b, #d97706);
  45. }
  46. &.low {
  47. background: linear-gradient(180deg, #10b981, #059669);
  48. }
  49. }
  50. /* 任务主要内容 */
  51. .task-main-content {
  52. padding: 20px 20px 16px 24px;
  53. flex: 1;
  54. }
  55. /* 任务头部行 */
  56. .task-header-row {
  57. display: flex;
  58. align-items: flex-start;
  59. gap: 12px;
  60. margin-bottom: 8px;
  61. }
  62. /* 任务复选框 */
  63. .task-item-enhanced .task-checkbox {
  64. padding-top: 2px;
  65. input[type="checkbox"] {
  66. width: 20px;
  67. height: 20px;
  68. accent-color: #3b82f6;
  69. border-radius: 6px;
  70. cursor: pointer;
  71. transition: all 0.2s;
  72. &:hover {
  73. transform: scale(1.1);
  74. }
  75. }
  76. }
  77. /* 任务信息 */
  78. .task-info {
  79. flex: 1;
  80. }
  81. /* 任务标题 */
  82. .task-item-enhanced .task-title {
  83. font-size: 16px;
  84. font-weight: 600;
  85. color: #1f2937;
  86. margin: 0 0 10px 0;
  87. line-height: 1.4;
  88. }
  89. /* 任务标签组 */
  90. .task-tags {
  91. display: flex;
  92. flex-wrap: wrap;
  93. gap: 8px;
  94. margin-top: 8px;
  95. }
  96. .tag {
  97. display: inline-flex;
  98. align-items: center;
  99. padding: 4px 10px;
  100. border-radius: 6px;
  101. font-size: 13px;
  102. font-weight: 500;
  103. background: #f3f4f6;
  104. color: #4b5563;
  105. &.tag-project {
  106. background: #dbeafe;
  107. color: #1e40af;
  108. }
  109. &.tag-stage {
  110. background: #fef3c7;
  111. color: #92400e;
  112. }
  113. &.tag-assignee {
  114. background: #e0e7ff;
  115. color: #4338ca;
  116. }
  117. }
  118. /* 任务描述 */
  119. .task-description {
  120. margin: 12px 0;
  121. padding: 12px;
  122. background: #f9fafb;
  123. border-radius: 8px;
  124. border-left: 3px solid #e5e7eb;
  125. p {
  126. margin: 0;
  127. font-size: 14px;
  128. color: #6b7280;
  129. line-height: 1.6;
  130. }
  131. }
  132. /* 任务元信息行 */
  133. .task-meta-row {
  134. display: flex;
  135. align-items: center;
  136. justify-content: space-between;
  137. margin-top: 12px;
  138. padding-top: 12px;
  139. border-top: 1px solid #f3f4f6;
  140. }
  141. /* 任务元信息 */
  142. .task-meta-info {
  143. display: flex;
  144. align-items: center;
  145. gap: 6px;
  146. color: #6b7280;
  147. font-size: 14px;
  148. svg {
  149. flex-shrink: 0;
  150. stroke-width: 2;
  151. }
  152. }
  153. .task-time {
  154. font-weight: 500;
  155. &.overdue {
  156. color: #dc2626;
  157. font-weight: 600;
  158. }
  159. }
  160. .overdue-badge {
  161. display: inline-block;
  162. margin-left: 6px;
  163. padding: 2px 8px;
  164. background: #fee2e2;
  165. color: #dc2626;
  166. font-size: 12px;
  167. font-weight: 600;
  168. border-radius: 4px;
  169. }
  170. /* 优先级徽章 */
  171. .task-priority-badge {
  172. padding: 4px 12px;
  173. border-radius: 12px;
  174. font-size: 12px;
  175. font-weight: 600;
  176. &.high {
  177. background: #fee2e2;
  178. color: #dc2626;
  179. }
  180. &.medium {
  181. background: #fef3c7;
  182. color: #d97706;
  183. }
  184. &.low {
  185. background: #d1fae5;
  186. color: #059669;
  187. }
  188. }
  189. /* 任务操作行 */
  190. .task-actions-row {
  191. display: flex;
  192. gap: 8px;
  193. padding: 12px 20px 12px 24px;
  194. background: #f9fafb;
  195. border-top: 1px solid #f3f4f6;
  196. }
  197. /* 操作按钮 */
  198. .btn-action {
  199. display: inline-flex;
  200. align-items: center;
  201. gap: 6px;
  202. padding: 8px 16px;
  203. border: none;
  204. border-radius: 8px;
  205. font-size: 14px;
  206. font-weight: 500;
  207. cursor: pointer;
  208. transition: all 0.2s;
  209. svg {
  210. flex-shrink: 0;
  211. stroke-width: 2;
  212. }
  213. &:hover:not(:disabled) {
  214. transform: translateY(-1px);
  215. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  216. }
  217. &:active:not(:disabled) {
  218. transform: translateY(0);
  219. }
  220. &:disabled {
  221. opacity: 0.5;
  222. cursor: not-allowed;
  223. }
  224. }
  225. .btn-process {
  226. background: linear-gradient(135deg, #3b82f6, #2563eb);
  227. color: white;
  228. flex: 1;
  229. &:hover:not(:disabled) {
  230. background: linear-gradient(135deg, #2563eb, #1d4ed8);
  231. }
  232. &.processing {
  233. background: linear-gradient(135deg, #6b7280, #4b5563);
  234. }
  235. }
  236. .btn-delete {
  237. background: white;
  238. color: #ef4444;
  239. border: 1px solid #fecaca;
  240. padding: 8px 12px;
  241. &:hover:not(:disabled) {
  242. background: #fef2f2;
  243. border-color: #fca5a5;
  244. }
  245. }
  246. // 任务进度条
  247. .task-progress-container {
  248. margin-top: 12px;
  249. background: #e5e7eb;
  250. border-radius: 8px;
  251. overflow: hidden;
  252. height: 28px;
  253. position: relative;
  254. }
  255. .task-progress-bar {
  256. height: 100%;
  257. background: linear-gradient(90deg, #3b82f6, #2563eb);
  258. transition: width 0.3s ease;
  259. display: flex;
  260. align-items: center;
  261. justify-content: center;
  262. }
  263. .task-progress-text {
  264. color: white;
  265. font-size: 12px;
  266. font-weight: 600;
  267. position: absolute;
  268. left: 50%;
  269. transform: translateX(-50%);
  270. }