1
0

communication.wxss 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. .communication-panel {
  2. overflow: hidden;
  3. }
  4. .communication-panel .panel-header {
  5. padding-bottom: 14rpx;
  6. }
  7. .panel-action-button.is-disabled {
  8. background: #eef1f5;
  9. color: #94a3b8;
  10. }
  11. .panel-action-button.is-active {
  12. background: var(--accent);
  13. color: #ffffff;
  14. }
  15. .communication-actions {
  16. flex-wrap: wrap;
  17. justify-content: flex-end;
  18. gap: 8rpx;
  19. }
  20. .comm-send-body {
  21. padding: 0 24rpx 22rpx;
  22. box-sizing: border-box;
  23. }
  24. .comm-send-input {
  25. width: 100%;
  26. min-height: 136rpx;
  27. padding: 16rpx 18rpx;
  28. border: 1rpx solid #e7edf3;
  29. border-radius: 10rpx;
  30. background: #fafbfd;
  31. color: #111827;
  32. font-size: 26rpx;
  33. line-height: 1.5;
  34. box-sizing: border-box;
  35. }
  36. .comm-send-input--hex {
  37. font-family: Menlo, Monaco, Consolas, monospace;
  38. }
  39. .comm-send-input--text {
  40. font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  41. }
  42. .comm-send-meta {
  43. display: flex;
  44. align-items: center;
  45. justify-content: space-between;
  46. gap: 16rpx;
  47. margin-top: 12rpx;
  48. }
  49. .comm-send-state,
  50. .comm-send-length {
  51. color: #64748b;
  52. font-size: 22rpx;
  53. line-height: 1.35;
  54. font-weight: 800;
  55. }
  56. .comm-error {
  57. margin-top: 10rpx;
  58. color: var(--danger);
  59. font-size: 23rpx;
  60. line-height: 1.4;
  61. font-weight: 800;
  62. word-break: break-all;
  63. }
  64. .comm-preview {
  65. margin-top: 12rpx;
  66. padding: 12rpx 16rpx;
  67. border: 1rpx solid #d9edeb;
  68. border-radius: 10rpx;
  69. background: #f4fbfa;
  70. box-sizing: border-box;
  71. }
  72. .comm-preview-label {
  73. color: #64748b;
  74. font-size: 22rpx;
  75. line-height: 1.35;
  76. font-weight: 800;
  77. }
  78. .comm-preview-value {
  79. margin-top: 8rpx;
  80. color: #0f766e;
  81. font-family: Menlo, Monaco, Consolas, monospace;
  82. font-size: 24rpx;
  83. line-height: 1.45;
  84. font-weight: 800;
  85. word-break: break-all;
  86. }
  87. .protocol-form {
  88. padding: 0 24rpx 22rpx;
  89. box-sizing: border-box;
  90. }
  91. .protocol-row {
  92. display: flex;
  93. align-items: center;
  94. justify-content: space-between;
  95. gap: 16rpx;
  96. min-height: 82rpx;
  97. border-top: 1rpx solid #edf2f7;
  98. box-sizing: border-box;
  99. }
  100. .protocol-row:first-child {
  101. border-top: 0;
  102. }
  103. .protocol-label {
  104. flex: none;
  105. color: #64748b;
  106. font-size: 24rpx;
  107. line-height: 1.35;
  108. font-weight: 800;
  109. }
  110. .protocol-value-picker,
  111. .protocol-row-input {
  112. width: 300rpx;
  113. }
  114. .picker-value {
  115. color: #111827;
  116. font-size: 28rpx;
  117. line-height: 70rpx;
  118. text-align: right;
  119. overflow: hidden;
  120. text-overflow: ellipsis;
  121. white-space: nowrap;
  122. }
  123. .protocol-input,
  124. .protocol-row-input {
  125. height: 70rpx;
  126. padding: 0 18rpx;
  127. border: 1rpx solid #e7edf3;
  128. border-radius: 10rpx;
  129. background: #fafbfd;
  130. color: #111827;
  131. font-family: Menlo, Monaco, Consolas, monospace;
  132. font-size: 28rpx;
  133. line-height: 70rpx;
  134. text-align: right;
  135. box-sizing: border-box;
  136. }
  137. .protocol-input {
  138. width: 100%;
  139. }
  140. .coil-row {
  141. min-height: 88rpx;
  142. }
  143. .coil-control {
  144. display: flex;
  145. align-items: center;
  146. gap: 10rpx;
  147. color: #0f766e;
  148. font-size: 24rpx;
  149. line-height: 1.35;
  150. font-weight: 800;
  151. }
  152. .generated-frame {
  153. margin-top: 14rpx;
  154. padding: 14rpx 18rpx;
  155. border: 1rpx solid #d9edeb;
  156. border-radius: 10rpx;
  157. background: #f4fbfa;
  158. box-sizing: border-box;
  159. }
  160. .generated-frame--response {
  161. margin-top: 10rpx;
  162. border-color: #dbeafe;
  163. background: #eff6ff;
  164. }
  165. .generated-title {
  166. color: #64748b;
  167. font-size: 22rpx;
  168. line-height: 1.35;
  169. font-weight: 800;
  170. }
  171. .generated-value {
  172. margin-top: 8rpx;
  173. color: #0f766e;
  174. font-family: Menlo, Monaco, Consolas, monospace;
  175. font-size: 24rpx;
  176. line-height: 1.5;
  177. font-weight: 800;
  178. word-break: break-all;
  179. }
  180. .generated-meta {
  181. margin-top: 6rpx;
  182. color: #64748b;
  183. font-size: 22rpx;
  184. line-height: 1.35;
  185. font-weight: 800;
  186. word-break: break-all;
  187. }
  188. .protocol-error {
  189. padding-top: 10rpx;
  190. color: var(--danger);
  191. font-size: 23rpx;
  192. line-height: 1.4;
  193. font-weight: 800;
  194. word-break: break-all;
  195. }
  196. .protocol-multiple-dialog {
  197. max-height: 86vh;
  198. }
  199. .protocol-multiple-row {
  200. padding: 18rpx 24rpx;
  201. border-top: 1rpx solid #edf2f7;
  202. box-sizing: border-box;
  203. }
  204. .protocol-multiple-row:first-child {
  205. border-top: 0;
  206. }
  207. .protocol-multiple-head,
  208. .protocol-multiple-text-length {
  209. display: flex;
  210. align-items: center;
  211. justify-content: space-between;
  212. gap: 16rpx;
  213. }
  214. .protocol-multiple-title {
  215. color: #111827;
  216. font-family: Menlo, Monaco, Consolas, monospace;
  217. font-size: 26rpx;
  218. line-height: 1.35;
  219. font-weight: 900;
  220. }
  221. .protocol-multiple-type {
  222. width: 220rpx;
  223. min-width: 220rpx;
  224. max-width: 220rpx;
  225. }
  226. .protocol-multiple-length-input {
  227. width: 180rpx;
  228. }
  229. .protocol-multiple-input {
  230. width: 100%;
  231. margin-top: 12rpx;
  232. }
  233. .protocol-multiple-input--text {
  234. text-align: left;
  235. }
  236. .upgrade-actions {
  237. flex-wrap: wrap;
  238. justify-content: flex-end;
  239. max-width: 286rpx;
  240. row-gap: 8rpx;
  241. }
  242. .upgrade-body {
  243. padding: 8rpx 24rpx 24rpx;
  244. }
  245. .upgrade-row {
  246. display: flex;
  247. align-items: center;
  248. justify-content: space-between;
  249. gap: 20rpx;
  250. min-height: 62rpx;
  251. border-top: 1rpx solid #edf2f7;
  252. }
  253. .upgrade-row:first-child {
  254. border-top: 0;
  255. }
  256. .upgrade-row--file {
  257. display: block;
  258. min-height: 0;
  259. padding-top: 14rpx;
  260. padding-bottom: 14rpx;
  261. }
  262. .upgrade-file-head {
  263. display: flex;
  264. align-items: center;
  265. justify-content: space-between;
  266. gap: 14rpx;
  267. }
  268. .upgrade-file-meta {
  269. display: flex;
  270. align-items: center;
  271. justify-content: flex-end;
  272. gap: 10rpx;
  273. min-width: 0;
  274. flex: 1;
  275. overflow: hidden;
  276. }
  277. .upgrade-file-meta-item {
  278. flex: none;
  279. min-width: 0;
  280. white-space: nowrap;
  281. overflow: hidden;
  282. text-overflow: ellipsis;
  283. }
  284. .upgrade-file-meta-item--program {
  285. color: var(--accent-dark);
  286. font-weight: 800;
  287. }
  288. .upgrade-file-meta-item--checksum,
  289. .upgrade-file-meta-item--size {
  290. color: #64748b;
  291. }
  292. .upgrade-file-name {
  293. display: block;
  294. margin-top: 8rpx;
  295. color: #111827;
  296. font-size: 24rpx;
  297. line-height: 1.35;
  298. font-weight: 700;
  299. white-space: nowrap;
  300. overflow: hidden;
  301. text-overflow: ellipsis;
  302. }
  303. .upgrade-label {
  304. flex: none;
  305. color: #64748b;
  306. font-size: 24rpx;
  307. line-height: 1.35;
  308. }
  309. .upgrade-value {
  310. min-width: 0;
  311. flex: 1;
  312. color: #111827;
  313. font-size: 24rpx;
  314. line-height: 1.35;
  315. text-align: right;
  316. overflow: hidden;
  317. text-overflow: ellipsis;
  318. white-space: nowrap;
  319. }
  320. .upgrade-status {
  321. margin-top: 14rpx;
  322. padding: 14rpx 16rpx;
  323. border-radius: 12rpx;
  324. background: #f8fafc;
  325. color: #64748b;
  326. font-size: 23rpx;
  327. line-height: 1.45;
  328. font-weight: 700;
  329. word-break: break-all;
  330. }
  331. .upgrade-status--ready {
  332. background: #effaf8;
  333. color: var(--accent-dark);
  334. }
  335. .upgrade-progress {
  336. position: relative;
  337. height: 14rpx;
  338. margin-top: 16rpx;
  339. border-radius: 999rpx;
  340. background: #e5e7eb;
  341. overflow: hidden;
  342. }
  343. .upgrade-progress-bar {
  344. height: 100%;
  345. min-width: 0;
  346. border-radius: inherit;
  347. background: linear-gradient(90deg, #10b981 0%, #0f8f87 100%);
  348. transition: width 0.18s ease;
  349. }
  350. .empty-log {
  351. padding: 42rpx 24rpx;
  352. color: #64748b;
  353. font-size: 25rpx;
  354. line-height: 1.4;
  355. text-align: center;
  356. }
  357. .log-scroll {
  358. height: 540rpx;
  359. border-top: 1rpx solid #edf2f7;
  360. box-sizing: border-box;
  361. }
  362. .log-row {
  363. padding: 18rpx 24rpx;
  364. border-top: 1rpx solid #edf2f7;
  365. }
  366. .log-row:first-child {
  367. border-top: 0;
  368. }
  369. .log-meta {
  370. display: flex;
  371. align-items: center;
  372. justify-content: space-between;
  373. gap: 16rpx;
  374. }
  375. .log-tags {
  376. display: flex;
  377. align-items: center;
  378. gap: 10rpx;
  379. }
  380. .log-direction {
  381. color: #0f766e;
  382. font-size: 23rpx;
  383. line-height: 1.35;
  384. font-weight: 900;
  385. }
  386. .log-note {
  387. padding: 3rpx 10rpx;
  388. border-radius: 999rpx;
  389. background: #eff6ff;
  390. color: #2563eb;
  391. font-size: 20rpx;
  392. line-height: 1.35;
  393. font-weight: 800;
  394. }
  395. .log-row--RX .log-note {
  396. background: #ecfdf5;
  397. color: #047857;
  398. }
  399. .log-row--TX .log-direction {
  400. color: #2563eb;
  401. }
  402. .log-row--SYS .log-direction {
  403. color: #64748b;
  404. }
  405. .log-time {
  406. color: #94a3b8;
  407. font-size: 22rpx;
  408. line-height: 1.35;
  409. }
  410. .log-payload {
  411. margin-top: 8rpx;
  412. color: #111827;
  413. font-size: 24rpx;
  414. line-height: 1.55;
  415. word-break: break-all;
  416. }
  417. .log-payload--hex {
  418. font-family: Menlo, Monaco, Consolas, monospace;
  419. }
  420. .log-payload--text {
  421. font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  422. }
  423. .theme-dark .comm-send-input,
  424. .theme-dark .protocol-row-input {
  425. border-color: #334155;
  426. background: #111827;
  427. color: #e5e7eb;
  428. }
  429. .theme-dark .comm-send-state,
  430. .theme-dark .comm-send-length,
  431. .theme-dark .protocol-label,
  432. .theme-dark .comm-preview-label,
  433. .theme-dark .generated-meta,
  434. .theme-dark .log-time {
  435. color: #94a3b8;
  436. }
  437. .theme-dark .comm-preview,
  438. .theme-dark .generated-frame {
  439. border-color: #174e49;
  440. background: #111827;
  441. }
  442. .theme-dark .generated-frame--response {
  443. border-color: #1e3a8a;
  444. background: #101827;
  445. }
  446. .theme-dark .comm-preview-value,
  447. .theme-dark .generated-value,
  448. .theme-dark .log-payload,
  449. .theme-dark .protocol-multiple-title {
  450. color: #e5e7eb;
  451. }
  452. .theme-dark .log-scroll,
  453. .theme-dark .log-row,
  454. .theme-dark .protocol-row,
  455. .theme-dark .upgrade-row {
  456. border-color: #263241;
  457. }
  458. .theme-dark .log-note {
  459. background: #123d3b;
  460. color: #5eead4;
  461. }
  462. .theme-dark .log-row--RX .log-note {
  463. background: #0f2f2d;
  464. color: #5eead4;
  465. }
  466. .theme-dark .log-row--TX .log-direction {
  467. color: #5eead4;
  468. }
  469. .theme-dark .log-row--SYS .log-direction {
  470. color: #94a3b8;
  471. }
  472. .theme-dark .protocol-error {
  473. color: #fed7aa;
  474. }
  475. .theme-dark .empty-log {
  476. color: #94a3b8;
  477. }
  478. .theme-dark .upgrade-file-meta-item--checksum,
  479. .theme-dark .upgrade-file-meta-item--size,
  480. .theme-dark .upgrade-file-name,
  481. .theme-dark .upgrade-value {
  482. color: #cbd5e1;
  483. }
  484. .theme-dark .upgrade-file-meta-item--program {
  485. color: #5eead4;
  486. }
  487. .theme-dark .upgrade-progress {
  488. background: #263241;
  489. }
  490. .theme-dark .upgrade-progress-bar {
  491. background: linear-gradient(90deg, #2dd4bf 0%, #14b8a6 100%);
  492. }
  493. @media (max-width: 360px) {
  494. .protocol-value-picker,
  495. .protocol-row-input {
  496. width: 258rpx;
  497. }
  498. .protocol-multiple-type {
  499. width: 180rpx;
  500. min-width: 180rpx;
  501. max-width: 180rpx;
  502. }
  503. .comm-send-input {
  504. min-height: 128rpx;
  505. }
  506. }