seq-ani-player.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. /* 序列帧播放器布局 */
  2. .player-stage {
  3. width: 100%;
  4. height: 100%;
  5. padding: 0;
  6. background: transparent;
  7. flex: 1 1 auto;
  8. display: flex;
  9. flex-direction: column;
  10. justify-content: center;
  11. }
  12. .preview-card-container {
  13. width: 100%;
  14. height: 100%;
  15. display: flex;
  16. flex-direction: column;
  17. }
  18. .player-stage-inner {
  19. display: flex;
  20. justify-content: center;
  21. align-items: center;
  22. width: 100%;
  23. height: 100%;
  24. flex: 1;
  25. }
  26. .player-display {
  27. flex: 1;
  28. display: flex;
  29. flex-direction: column;
  30. align-items: center;
  31. justify-content: center;
  32. width: 100%;
  33. height: 100%;
  34. }
  35. .player-image-shell {
  36. width: 100%;
  37. height: 100%;
  38. border-radius: 16px;
  39. /* 棋盘格背景用于显示透明部分 */
  40. background-color: #f8f9fb;
  41. background-image:
  42. linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
  43. linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
  44. linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
  45. linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
  46. background-size: 20px 20px;
  47. background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  48. min-height: 75vh;
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. position: relative;
  53. overflow: hidden;
  54. border: 2px dashed #d1d5db;
  55. box-shadow: inset 0 0 0 1px #edf0f6;
  56. }
  57. .player-image-shell.is-dragging {
  58. background: #f0f7ff;
  59. border: 3px dashed #3b82f6;
  60. box-shadow: inset 0 0 0 8px rgba(59, 130, 246, 0.1);
  61. }
  62. .drop-hint {
  63. position: absolute;
  64. inset: 0;
  65. display: flex;
  66. align-items: center;
  67. justify-content: center;
  68. pointer-events: none;
  69. z-index: 5;
  70. }
  71. .drop-hint[hidden] {
  72. display: none;
  73. }
  74. .hint-text {
  75. margin: 0;
  76. padding: 0;
  77. font-size: 20px;
  78. font-weight: 600;
  79. color: #ef4444;
  80. letter-spacing: 1px;
  81. text-align: center;
  82. }
  83. .player-image-shell img {
  84. max-width: 100%;
  85. max-height: 100%;
  86. object-fit: contain;
  87. image-rendering: pixelated;
  88. }
  89. .player-image-shell img:not([src]),
  90. .player-image-shell img[src=""],
  91. .player-image-shell img.is-hidden {
  92. opacity: 0;
  93. visibility: hidden;
  94. display: none;
  95. }
  96. .loading-overlay {
  97. position: absolute;
  98. inset: 0;
  99. display: flex;
  100. flex-direction: column;
  101. align-items: center;
  102. justify-content: center;
  103. gap: 20px;
  104. background: rgba(248, 249, 251, 0.92);
  105. backdrop-filter: blur(4px);
  106. z-index: 50;
  107. opacity: 0;
  108. visibility: hidden;
  109. transition: opacity 0.25s ease, visibility 0.25s ease;
  110. }
  111. .loading-overlay.is-visible {
  112. opacity: 1;
  113. visibility: visible;
  114. }
  115. .loading-overlay .loading-spinner {
  116. width: 56px;
  117. height: 56px;
  118. border-radius: 50%;
  119. border: 4px solid rgba(59, 130, 246, 0.15);
  120. border-top-color: #3b82f6;
  121. animation: spin 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  122. position: relative;
  123. }
  124. .loading-overlay .loading-spinner::before {
  125. content: "";
  126. position: absolute;
  127. inset: -12px;
  128. border-radius: 50%;
  129. background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  130. animation: pulse-glow 1.5s ease-in-out infinite;
  131. }
  132. .loading-overlay .loading-text {
  133. margin: 0;
  134. font-size: 14px;
  135. font-weight: 500;
  136. color: #6b7280;
  137. letter-spacing: 0.02em;
  138. animation: fade-pulse 1.5s ease-in-out infinite;
  139. }
  140. @keyframes pulse-glow {
  141. 0%, 100% {
  142. transform: scale(0.9);
  143. opacity: 0.5;
  144. }
  145. 50% {
  146. transform: scale(1.1);
  147. opacity: 1;
  148. }
  149. }
  150. @keyframes fade-pulse {
  151. 0%, 100% {
  152. opacity: 0.6;
  153. }
  154. 50% {
  155. opacity: 1;
  156. }
  157. }
  158. .player-image-shell .image-error {
  159. position: absolute;
  160. top: 24px;
  161. left: 24px;
  162. padding: 10px 16px;
  163. border-radius: 12px;
  164. background: rgba(120, 124, 138, 0.92);
  165. color: #fff;
  166. font-size: 15px;
  167. z-index: 20;
  168. }
  169. .panel-card {
  170. width: 100%;
  171. flex-shrink: 0;
  172. background: transparent;
  173. border-radius: 0;
  174. box-shadow: none;
  175. padding: 16px 0;
  176. border: none;
  177. }
  178. .control-panel {
  179. display: flex;
  180. flex-direction: column;
  181. gap: 18px;
  182. }
  183. .control-row {
  184. display: flex;
  185. align-items: center;
  186. justify-content: center;
  187. gap: 18px;
  188. width: 100%;
  189. flex-wrap: wrap;
  190. }
  191. .folder-label {
  192. font-size: 14px;
  193. font-weight: 600;
  194. color: #9ca3af;
  195. letter-spacing: 0.1em;
  196. text-transform: uppercase;
  197. }
  198. .slider-container {
  199. display: flex;
  200. align-items: center;
  201. gap: 18px;
  202. flex: 1;
  203. max-width: 520px;
  204. padding: 16px 18px;
  205. border-radius: 18px;
  206. background: #f4f6fb;
  207. box-shadow: inset 0 0 0 1px #e7eaf2;
  208. }
  209. .fps-slider {
  210. flex: 1;
  211. height: 10px;
  212. -webkit-appearance: none;
  213. appearance: none;
  214. background: linear-gradient(90deg, #e5e7eb 0%, #c7ccd9 100%);
  215. border-radius: 999px;
  216. outline: none;
  217. cursor: pointer;
  218. transition: background 0.2s ease, box-shadow 0.2s ease;
  219. box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.08);
  220. }
  221. .fps-slider::-webkit-slider-runnable-track {
  222. height: 10px;
  223. border-radius: 999px;
  224. background: transparent;
  225. }
  226. .fps-slider::-webkit-slider-thumb {
  227. -webkit-appearance: none;
  228. appearance: none;
  229. width: 22px;
  230. height: 22px;
  231. background: #111827;
  232. border-radius: 50%;
  233. cursor: pointer;
  234. box-shadow: 0 6px 18px rgba(17, 24, 39, 0.25);
  235. transition: transform 0.2s ease, box-shadow 0.2s ease;
  236. margin-top: -6px;
  237. }
  238. .fps-slider::-webkit-slider-thumb:hover {
  239. transform: scale(1.15);
  240. box-shadow: 0 8px 22px rgba(17, 24, 39, 0.3);
  241. }
  242. .fps-slider::-webkit-slider-thumb:active {
  243. transform: scale(1.05);
  244. }
  245. .fps-slider::-moz-range-track {
  246. height: 10px;
  247. border-radius: 999px;
  248. background: linear-gradient(90deg, #e5e7eb 0%, #c7ccd9 100%);
  249. }
  250. .fps-slider::-moz-range-thumb {
  251. width: 22px;
  252. height: 22px;
  253. background: #111827;
  254. border: none;
  255. border-radius: 50%;
  256. cursor: pointer;
  257. box-shadow: 0 6px 18px rgba(17, 24, 39, 0.25);
  258. transition: transform 0.2s ease, box-shadow 0.2s ease;
  259. }
  260. .fps-slider::-moz-range-thumb:hover {
  261. transform: scale(1.15);
  262. box-shadow: 0 8px 22px rgba(17, 24, 39, 0.3);
  263. }
  264. .fps-value {
  265. min-width: 88px;
  266. padding: 8px 14px;
  267. background: #111827;
  268. color: #ffffff;
  269. border-radius: 10px;
  270. font-size: 15px;
  271. font-weight: 600;
  272. text-align: center;
  273. font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  274. box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  275. }
  276. @media (max-width: 900px) {
  277. .player-image-shell {
  278. min-height: 60vh;
  279. }
  280. .control-row {
  281. flex-direction: column;
  282. }
  283. .slider-container {
  284. width: 100%;
  285. }
  286. }
  287. @media (max-width: 520px) {
  288. .panel-card {
  289. padding: 20px 0;
  290. }
  291. .slider-container {
  292. padding: 14px;
  293. }
  294. .fps-value {
  295. width: 100%;
  296. }
  297. }