1
0

communication.wxss 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  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. .storage-special-section {
  197. margin-top: 16rpx;
  198. padding-top: 4rpx;
  199. }
  200. .storage-special-section-title {
  201. color: #111827;
  202. font-size: 24rpx;
  203. line-height: 1.35;
  204. font-weight: 900;
  205. }
  206. .storage-special-actions {
  207. display: flex;
  208. align-items: center;
  209. justify-content: flex-end;
  210. flex-wrap: wrap;
  211. gap: 8rpx;
  212. margin-top: 12rpx;
  213. }
  214. .storage-special-button {
  215. width: 82rpx;
  216. }
  217. .theme-dark .storage-special-section-title {
  218. color: #e5e7eb;
  219. }
  220. .protocol-multiple-dialog {
  221. max-height: 86vh;
  222. }
  223. .protocol-multiple-row {
  224. padding: 18rpx 24rpx;
  225. border-top: 1rpx solid #edf2f7;
  226. box-sizing: border-box;
  227. }
  228. .protocol-multiple-row:first-child {
  229. border-top: 0;
  230. }
  231. .protocol-multiple-head,
  232. .protocol-multiple-text-length {
  233. display: flex;
  234. align-items: center;
  235. justify-content: space-between;
  236. gap: 16rpx;
  237. }
  238. .protocol-multiple-title {
  239. color: #111827;
  240. font-family: Menlo, Monaco, Consolas, monospace;
  241. font-size: 26rpx;
  242. line-height: 1.35;
  243. font-weight: 900;
  244. }
  245. .protocol-multiple-type {
  246. width: 220rpx;
  247. min-width: 220rpx;
  248. max-width: 220rpx;
  249. }
  250. .protocol-multiple-length-input {
  251. width: 180rpx;
  252. }
  253. .protocol-multiple-input {
  254. width: 100%;
  255. margin-top: 12rpx;
  256. }
  257. .protocol-multiple-input--text {
  258. text-align: left;
  259. }
  260. .empty-log {
  261. padding: 42rpx 24rpx;
  262. color: #64748b;
  263. font-size: 25rpx;
  264. line-height: 1.4;
  265. text-align: center;
  266. }
  267. .log-scroll {
  268. height: 540rpx;
  269. border-top: 1rpx solid #edf2f7;
  270. box-sizing: border-box;
  271. }
  272. .log-row {
  273. padding: 18rpx 24rpx;
  274. border-top: 1rpx solid #edf2f7;
  275. }
  276. .log-row:first-child {
  277. border-top: 0;
  278. }
  279. .log-meta {
  280. display: flex;
  281. align-items: center;
  282. justify-content: space-between;
  283. gap: 16rpx;
  284. }
  285. .log-tags {
  286. display: flex;
  287. align-items: center;
  288. gap: 10rpx;
  289. }
  290. .log-direction {
  291. color: #0f766e;
  292. font-size: 23rpx;
  293. line-height: 1.35;
  294. font-weight: 900;
  295. }
  296. .log-note {
  297. padding: 3rpx 10rpx;
  298. border-radius: 999rpx;
  299. background: #eff6ff;
  300. color: #2563eb;
  301. font-size: 20rpx;
  302. line-height: 1.35;
  303. font-weight: 800;
  304. }
  305. .log-row--RX .log-note {
  306. background: #ecfdf5;
  307. color: #047857;
  308. }
  309. .log-row--TX .log-direction {
  310. color: #2563eb;
  311. }
  312. .log-row--SYS .log-direction {
  313. color: #64748b;
  314. }
  315. .log-time {
  316. color: #94a3b8;
  317. font-size: 22rpx;
  318. line-height: 1.35;
  319. }
  320. .log-payload {
  321. margin-top: 8rpx;
  322. color: #111827;
  323. font-size: 24rpx;
  324. line-height: 1.55;
  325. word-break: break-all;
  326. }
  327. .log-payload--hex {
  328. font-family: Menlo, Monaco, Consolas, monospace;
  329. }
  330. .log-payload--text {
  331. font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  332. }
  333. .theme-dark .comm-send-input,
  334. .theme-dark .protocol-row-input {
  335. border-color: #334155;
  336. background: #111827;
  337. color: #e5e7eb;
  338. }
  339. .theme-dark .comm-send-state,
  340. .theme-dark .comm-send-length,
  341. .theme-dark .protocol-label,
  342. .theme-dark .comm-preview-label,
  343. .theme-dark .generated-meta,
  344. .theme-dark .log-time {
  345. color: #94a3b8;
  346. }
  347. .theme-dark .comm-preview,
  348. .theme-dark .generated-frame {
  349. border-color: #174e49;
  350. background: #111827;
  351. }
  352. .theme-dark .generated-frame--response {
  353. border-color: #1e3a8a;
  354. background: #101827;
  355. }
  356. .theme-dark .comm-preview-value,
  357. .theme-dark .generated-value,
  358. .theme-dark .log-payload,
  359. .theme-dark .protocol-multiple-title {
  360. color: #e5e7eb;
  361. }
  362. .theme-dark .log-scroll,
  363. .theme-dark .log-row,
  364. .theme-dark .protocol-row {
  365. border-color: #263241;
  366. }
  367. .theme-dark .log-note {
  368. background: #123d3b;
  369. color: #5eead4;
  370. }
  371. .theme-dark .log-row--RX .log-note {
  372. background: #0f2f2d;
  373. color: #5eead4;
  374. }
  375. .theme-dark .log-row--TX .log-direction {
  376. color: #5eead4;
  377. }
  378. .theme-dark .log-row--SYS .log-direction {
  379. color: #94a3b8;
  380. }
  381. .theme-dark .protocol-error {
  382. color: #fed7aa;
  383. }
  384. .theme-dark .empty-log {
  385. color: #94a3b8;
  386. }
  387. @media (max-width: 360px) {
  388. .protocol-value-picker,
  389. .protocol-row-input {
  390. width: 258rpx;
  391. }
  392. .protocol-multiple-type {
  393. width: 180rpx;
  394. min-width: 180rpx;
  395. max-width: 180rpx;
  396. }
  397. .comm-send-input {
  398. min-height: 128rpx;
  399. }
  400. }