1
0

communication.wxss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  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. .empty-log {
  237. padding: 42rpx 24rpx;
  238. color: #64748b;
  239. font-size: 25rpx;
  240. line-height: 1.4;
  241. text-align: center;
  242. }
  243. .log-scroll {
  244. height: 540rpx;
  245. border-top: 1rpx solid #edf2f7;
  246. box-sizing: border-box;
  247. }
  248. .log-row {
  249. padding: 18rpx 24rpx;
  250. border-top: 1rpx solid #edf2f7;
  251. }
  252. .log-row:first-child {
  253. border-top: 0;
  254. }
  255. .log-meta {
  256. display: flex;
  257. align-items: center;
  258. justify-content: space-between;
  259. gap: 16rpx;
  260. }
  261. .log-tags {
  262. display: flex;
  263. align-items: center;
  264. gap: 10rpx;
  265. }
  266. .log-direction {
  267. color: #0f766e;
  268. font-size: 23rpx;
  269. line-height: 1.35;
  270. font-weight: 900;
  271. }
  272. .log-note {
  273. padding: 3rpx 10rpx;
  274. border-radius: 999rpx;
  275. background: #eff6ff;
  276. color: #2563eb;
  277. font-size: 20rpx;
  278. line-height: 1.35;
  279. font-weight: 800;
  280. }
  281. .log-row--RX .log-note {
  282. background: #ecfdf5;
  283. color: #047857;
  284. }
  285. .log-row--TX .log-direction {
  286. color: #2563eb;
  287. }
  288. .log-row--SYS .log-direction {
  289. color: #64748b;
  290. }
  291. .log-time {
  292. color: #94a3b8;
  293. font-size: 22rpx;
  294. line-height: 1.35;
  295. }
  296. .log-payload {
  297. margin-top: 8rpx;
  298. color: #111827;
  299. font-size: 24rpx;
  300. line-height: 1.55;
  301. word-break: break-all;
  302. }
  303. .log-payload--hex {
  304. font-family: Menlo, Monaco, Consolas, monospace;
  305. }
  306. .log-payload--text {
  307. font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  308. }
  309. .theme-dark .comm-send-input,
  310. .theme-dark .protocol-row-input {
  311. border-color: #334155;
  312. background: #111827;
  313. color: #e5e7eb;
  314. }
  315. .theme-dark .comm-send-state,
  316. .theme-dark .comm-send-length,
  317. .theme-dark .protocol-label,
  318. .theme-dark .comm-preview-label,
  319. .theme-dark .generated-meta,
  320. .theme-dark .log-time {
  321. color: #94a3b8;
  322. }
  323. .theme-dark .comm-preview,
  324. .theme-dark .generated-frame {
  325. border-color: #174e49;
  326. background: #111827;
  327. }
  328. .theme-dark .generated-frame--response {
  329. border-color: #1e3a8a;
  330. background: #101827;
  331. }
  332. .theme-dark .comm-preview-value,
  333. .theme-dark .generated-value,
  334. .theme-dark .log-payload,
  335. .theme-dark .protocol-multiple-title {
  336. color: #e5e7eb;
  337. }
  338. .theme-dark .log-scroll,
  339. .theme-dark .log-row,
  340. .theme-dark .protocol-row {
  341. border-color: #263241;
  342. }
  343. .theme-dark .log-note {
  344. background: #123d3b;
  345. color: #5eead4;
  346. }
  347. .theme-dark .log-row--RX .log-note {
  348. background: #0f2f2d;
  349. color: #5eead4;
  350. }
  351. .theme-dark .log-row--TX .log-direction {
  352. color: #5eead4;
  353. }
  354. .theme-dark .log-row--SYS .log-direction {
  355. color: #94a3b8;
  356. }
  357. .theme-dark .protocol-error {
  358. color: #fed7aa;
  359. }
  360. .theme-dark .empty-log {
  361. color: #94a3b8;
  362. }
  363. @media (max-width: 360px) {
  364. .protocol-value-picker,
  365. .protocol-row-input {
  366. width: 258rpx;
  367. }
  368. .protocol-multiple-type {
  369. width: 180rpx;
  370. min-width: 180rpx;
  371. max-width: 180rpx;
  372. }
  373. .comm-send-input {
  374. min-height: 128rpx;
  375. }
  376. }