index.module.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. .upload-video-modal {
  2. padding: 20px 0;
  3. }
  4. .upload-section {
  5. margin-bottom: 24px;
  6. padding: 20px;
  7. background: #fafafa;
  8. border-radius: 8px;
  9. border: 1px dashed #d9d9d9;
  10. }
  11. .file-info {
  12. margin-top: 12px;
  13. padding: 12px;
  14. background: #fff;
  15. border-radius: 6px;
  16. border: 1px solid #e8e8e8;
  17. }
  18. .file-info p {
  19. margin: 4px 0;
  20. color: #666;
  21. font-size: 14px;
  22. }
  23. .upload-progress-section {
  24. margin-bottom: 24px;
  25. padding: 20px;
  26. background: #fff;
  27. border-radius: 8px;
  28. border: 1px solid #e8e8e8;
  29. }
  30. .progress-info {
  31. display: flex;
  32. justify-content: space-between;
  33. align-items: center;
  34. margin-bottom: 12px;
  35. }
  36. .file-name {
  37. font-weight: 500;
  38. color: #333;
  39. font-size: 14px;
  40. }
  41. .upload-speed {
  42. color: #1890ff;
  43. font-size: 12px;
  44. font-weight: 500;
  45. }
  46. .progress-text {
  47. margin-top: 8px;
  48. text-align: center;
  49. color: #666;
  50. font-size: 12px;
  51. }
  52. .video-info-section {
  53. margin-bottom: 24px;
  54. padding: 20px;
  55. background: #fff;
  56. border-radius: 8px;
  57. border: 1px solid #e8e8e8;
  58. }
  59. .action-section {
  60. display: flex;
  61. justify-content: space-between;
  62. align-items: center;
  63. padding: 16px 20px;
  64. background: #f8f9fa;
  65. border-radius: 8px;
  66. border: 1px solid #e8e8e8;
  67. }
  68. .left-actions {
  69. flex: 1;
  70. }
  71. .right-actions {
  72. flex: 1;
  73. text-align: right;
  74. }
  75. /* 上传按钮样式 */
  76. .upload-section .ant-upload {
  77. width: 100%;
  78. }
  79. .upload-section .ant-upload .ant-btn {
  80. width: 100%;
  81. height: 48px;
  82. border: 1px dashed #d9d9d9;
  83. background: #fff;
  84. color: #666;
  85. font-size: 14px;
  86. display: flex;
  87. align-items: center;
  88. justify-content: center;
  89. transition: all 0.3s;
  90. }
  91. .upload-section .ant-upload .ant-btn:hover {
  92. border-color: #1890ff;
  93. color: #1890ff;
  94. }
  95. /* 进度条样式 */
  96. .upload-progress-section .ant-progress {
  97. margin: 12px 0;
  98. }
  99. .upload-progress-section .ant-progress-bg {
  100. background: linear-gradient(90deg, #ff4383 0%, #ff6b9d 100%);
  101. }
  102. /* 更多设置按钮样式 */
  103. .more-btn {
  104. display: inline-flex;
  105. align-items: center;
  106. color: #acacac;
  107. font-size: 14px;
  108. cursor: pointer;
  109. transition: color 0.3s;
  110. }
  111. .more-btn:hover {
  112. color: #1890ff;
  113. }
  114. .more-btn .anticon {
  115. margin-right: 4px;
  116. }
  117. /* 发布按钮样式 */
  118. .publish-btn {
  119. width: 104px;
  120. height: 42px;
  121. background: rgba(17, 17, 17, 0.01);
  122. border: 1px solid rgba(236, 92, 142, 0.3);
  123. border-radius: 6px;
  124. color: #ec5c8e;
  125. display: inline-flex;
  126. align-items: center;
  127. justify-content: center;
  128. cursor: pointer;
  129. transition: all 0.3s;
  130. font-size: 14px;
  131. }
  132. .publish-btn:hover {
  133. background: rgba(236, 92, 142, 0.1);
  134. border-color: rgba(236, 92, 142, 0.5);
  135. }
  136. .publish-btn.disable {
  137. background: rgba(17, 17, 17, 0.01) !important;
  138. opacity: 0.5 !important;
  139. cursor: not-allowed;
  140. }
  141. /* 重试按钮样式 */
  142. .retry-btn {
  143. color: #fff;
  144. background-color: #f2584f;
  145. border-color: #f2584f;
  146. }
  147. .retry-btn:hover {
  148. background-color: rgba(242, 88, 79, 0.8);
  149. border-color: rgba(242, 88, 79, 0.8);
  150. }
  151. /* 表单样式 */
  152. .video-info-section .ant-form-item {
  153. margin-bottom: 16px;
  154. }
  155. .video-info-section .ant-form-item-label > label {
  156. color: #333;
  157. font-weight: 500;
  158. }
  159. .video-info-section .ant-input,
  160. .video-info-section .ant-select-selector,
  161. .video-info-section .ant-input-number {
  162. border-radius: 6px;
  163. }
  164. .video-info-section .ant-input:focus,
  165. .video-info-section .ant-input-focused {
  166. border-color: #1890ff;
  167. box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  168. }
  169. /* 响应式设计 */
  170. @media (max-width: 768px) {
  171. .action-section {
  172. flex-direction: column;
  173. gap: 12px;
  174. }
  175. .left-actions,
  176. .right-actions {
  177. width: 100%;
  178. text-align: center;
  179. }
  180. .upload-section,
  181. .upload-progress-section,
  182. .video-info-section,
  183. .action-section {
  184. margin: 0 0 16px 0;
  185. padding: 16px;
  186. }
  187. }
  188. /* 动画效果 */
  189. .upload-progress-section {
  190. animation: fadeInUp 0.3s ease-out;
  191. }
  192. .video-info-section {
  193. animation: fadeInUp 0.3s ease-out;
  194. }
  195. @keyframes fadeInUp {
  196. from {
  197. opacity: 0;
  198. transform: translateY(20px);
  199. }
  200. to {
  201. opacity: 1;
  202. transform: translateY(0);
  203. }
  204. }
  205. /* 状态指示器 */
  206. .status-indicator {
  207. display: inline-flex;
  208. align-items: center;
  209. gap: 4px;
  210. font-size: 12px;
  211. padding: 2px 8px;
  212. border-radius: 12px;
  213. }
  214. .status-indicator.uploading {
  215. color: #1890ff;
  216. background: rgba(24, 144, 255, 0.1);
  217. }
  218. .status-indicator.uploaded {
  219. color: #52c41a;
  220. background: rgba(82, 196, 26, 0.1);
  221. }
  222. .status-indicator.error {
  223. color: #f2584f;
  224. background: rgba(242, 88, 79, 0.1);
  225. }
  226. .status-indicator.waiting {
  227. color: #faad14;
  228. background: rgba(250, 173, 20, 0.1);
  229. }