1
0

home.wxss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. .connected-panel,
  2. .device-card,
  3. .empty-state {
  4. border: 1rpx solid #e6ebf2;
  5. border-radius: 18rpx;
  6. background: #ffffff;
  7. box-shadow: var(--shadow-soft);
  8. box-sizing: border-box;
  9. }
  10. .connected-panel {
  11. margin-top: 24rpx;
  12. padding-bottom: 24rpx;
  13. }
  14. .connected-panel:first-child {
  15. margin-top: 0;
  16. }
  17. .connected-summary {
  18. min-height: 56rpx;
  19. padding: 8rpx 24rpx 0;
  20. }
  21. .connected-name {
  22. min-width: 0;
  23. color: #111827;
  24. font-size: 34rpx;
  25. line-height: 1.35;
  26. font-weight: 800;
  27. overflow: hidden;
  28. text-overflow: ellipsis;
  29. white-space: nowrap;
  30. }
  31. .connection-badges {
  32. justify-content: flex-end;
  33. gap: 14rpx;
  34. padding: 8rpx 24rpx 0;
  35. }
  36. .traffic-badge {
  37. flex: none;
  38. min-width: 156rpx;
  39. text-align: right;
  40. color: #64748b;
  41. font-size: 22rpx;
  42. line-height: 1.35;
  43. white-space: nowrap;
  44. }
  45. .meta-grid {
  46. display: flex;
  47. flex-direction: column;
  48. margin: 18rpx 24rpx 0;
  49. }
  50. .meta-item {
  51. display: flex;
  52. justify-content: space-between;
  53. gap: 20rpx;
  54. padding: 16rpx 0;
  55. border-top: 1rpx solid #edf2f7;
  56. }
  57. .meta-item:first-child {
  58. border-top: 0;
  59. }
  60. .meta-label {
  61. flex: none;
  62. color: #64748b;
  63. font-size: 24rpx;
  64. }
  65. .meta-value {
  66. min-width: 0;
  67. color: #111827;
  68. font-size: 24rpx;
  69. text-align: right;
  70. word-break: break-all;
  71. }
  72. .device-section {
  73. margin-top: 30rpx;
  74. padding-bottom: 10rpx;
  75. }
  76. .device-section .panel-title {
  77. flex: 1;
  78. white-space: nowrap;
  79. word-break: keep-all;
  80. }
  81. .device-filter {
  82. flex: none;
  83. display: flex;
  84. align-items: center;
  85. padding: 4rpx;
  86. border: 1rpx solid #d8e2ea;
  87. border-radius: 12rpx;
  88. background: #eef4f7;
  89. box-sizing: border-box;
  90. }
  91. .device-filter-item {
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. width: 72rpx;
  96. height: 42rpx;
  97. border-radius: 8rpx;
  98. color: #64748b;
  99. font-size: 21rpx;
  100. line-height: 1.2;
  101. font-weight: 800;
  102. }
  103. .device-filter-item.is-active {
  104. background: #ffffff;
  105. color: var(--accent-dark);
  106. box-shadow: 0 4rpx 10rpx rgba(15, 23, 42, 0.08);
  107. }
  108. .device-scroll {
  109. height: 520rpx;
  110. box-sizing: border-box;
  111. }
  112. .empty-state {
  113. padding: 42rpx 28rpx;
  114. text-align: center;
  115. }
  116. .empty-title {
  117. color: #111827;
  118. font-size: 30rpx;
  119. line-height: 1.4;
  120. font-weight: 800;
  121. }
  122. .empty-text {
  123. margin-top: 10rpx;
  124. color: #6b7280;
  125. font-size: 25rpx;
  126. line-height: 1.45;
  127. }
  128. .device-card {
  129. margin-bottom: 18rpx;
  130. padding: 18rpx 20rpx;
  131. }
  132. .device-card--connected {
  133. border-color: #93d5cf;
  134. background: #f0fdfa;
  135. }
  136. .device-info {
  137. min-width: 0;
  138. }
  139. .device-main-row,
  140. .device-meta-row {
  141. display: flex;
  142. align-items: center;
  143. gap: 14rpx;
  144. }
  145. .device-name {
  146. min-width: 0;
  147. flex: 1;
  148. color: #111827;
  149. font-size: 30rpx;
  150. line-height: 1.35;
  151. font-weight: 800;
  152. overflow: hidden;
  153. text-overflow: ellipsis;
  154. white-space: nowrap;
  155. }
  156. .device-badges {
  157. flex: none;
  158. display: flex;
  159. flex-direction: row;
  160. align-items: center;
  161. gap: 18rpx;
  162. }
  163. .device-badges--stacked {
  164. justify-content: flex-start;
  165. gap: 14rpx;
  166. margin-top: 10rpx;
  167. }
  168. .device-id,
  169. .device-service,
  170. .device-target {
  171. margin-top: 8rpx;
  172. color: #64748b;
  173. font-size: 22rpx;
  174. line-height: 1.4;
  175. word-break: break-all;
  176. }
  177. .device-target {
  178. flex: none;
  179. color: var(--accent-dark);
  180. font-weight: 800;
  181. }
  182. .rssi {
  183. flex: none;
  184. display: flex;
  185. align-items: center;
  186. justify-content: center;
  187. width: 128rpx;
  188. height: 46rpx;
  189. padding: 0 10rpx;
  190. border-radius: 999rpx;
  191. background: #f1f5f9;
  192. color: #475569;
  193. font-size: 22rpx;
  194. line-height: 1.35;
  195. box-sizing: border-box;
  196. white-space: nowrap;
  197. }
  198. .connect-state {
  199. flex: none;
  200. display: flex;
  201. align-items: center;
  202. justify-content: center;
  203. width: 112rpx;
  204. height: 46rpx;
  205. padding: 0;
  206. border-radius: 999rpx;
  207. background: var(--accent-soft);
  208. color: var(--accent-dark);
  209. font-size: 22rpx;
  210. line-height: 1.35;
  211. white-space: nowrap;
  212. }
  213. .connect-state.connected {
  214. background: #dcfce7;
  215. color: #166534;
  216. }
  217. @media (max-width: 360px) {
  218. .device-card {
  219. padding: 16rpx;
  220. }
  221. .device-main-row {
  222. align-items: flex-start;
  223. }
  224. }