app.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. *{
  2. margin:0;
  3. padding:0;
  4. box-sizing:border-box;
  5. }
  6. body{
  7. height:100vh;
  8. font-family:"Segoe UI","Microsoft YaHei",sans-serif;
  9. background:#0b1220;
  10. color:#e2e8f0;
  11. }
  12. /* 主布局 */
  13. .app{
  14. display:flex;
  15. flex-direction:column;
  16. height:100vh;
  17. }
  18. /* 标题栏 */
  19. .topbar{
  20. height: 64px;
  21. background: linear-gradient(180deg, #1f2937, #111827);
  22. border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  23. box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  24. display: flex;
  25. align-items: center;
  26. justify-content: space-between;
  27. padding: 0;
  28. }
  29. .device{
  30. display: flex;
  31. align-items: center;
  32. gap: 10px;
  33. margin-left: 20px;
  34. }
  35. .device .icon{
  36. font-size: 28px;
  37. width: 24px;
  38. display: flex;
  39. align-items: center;
  40. justify-content: center;
  41. }
  42. .device-info {
  43. display: flex;
  44. flex-direction: column;
  45. justify-content: center;
  46. }
  47. .title-line {
  48. line-height: 1.3;
  49. }
  50. .title-line .title {
  51. font-size: 15px;
  52. font-weight: 600;
  53. color: #e2e8f0;
  54. letter-spacing: 0.5px;
  55. }
  56. .imei-line {
  57. line-height: 1.3;
  58. }
  59. #imei-value {
  60. font-family: ui-monospace, monospace;
  61. font-size: 15px;
  62. color: #94a3b8;
  63. }
  64. .actions{
  65. display:flex;
  66. align-items:center;
  67. gap:10px;
  68. }
  69. /* 次布局 */
  70. .layout{
  71. display:flex;
  72. flex:1;
  73. overflow:hidden;
  74. }
  75. /* 左侧栏 */
  76. .sidebar{
  77. width:240px;
  78. background:#0f172a;
  79. border-right:1px solid rgba(148,163,184,0.12);
  80. display:flex;
  81. flex-direction:column;
  82. padding: 20px;
  83. }
  84. .menu-item{
  85. display:flex;
  86. align-items:center;
  87. gap:10px;
  88. padding:14px 16px;
  89. border-radius:4px;
  90. cursor:pointer;
  91. color:#94a3b8;
  92. font-size:15px;
  93. font-weight:500;
  94. transition:0.2s;
  95. }
  96. .menu-item:hover{
  97. background:#1e293b;
  98. color:white;
  99. }
  100. .menu-item.active{
  101. background:#2563eb;
  102. color:white;
  103. }
  104. /* 页容器 */
  105. .view{
  106. flex:1;
  107. padding:6px;
  108. overflow:auto;
  109. background:#0f172a;
  110. }
  111. /* 页风格 */
  112. .card {
  113. background: #0f172a;
  114. border: 1px solid #1f2937;
  115. border-radius: 4px;
  116. padding: 12px;
  117. margin-bottom: 0;
  118. }
  119. .card-header {
  120. display: flex;
  121. justify-content: space-between;
  122. align-items: center;
  123. margin-bottom: 12px;
  124. }
  125. .card-header h2 {
  126. font-size: 14px;
  127. font-weight: 500;
  128. color: #e2e8f0;
  129. margin: 0;
  130. }
  131. .output {
  132. background: #020617;
  133. border: 1px solid #1f2937;
  134. border-radius: 4px;
  135. padding: 8px;
  136. font-size: 12px;
  137. font-family: ui-monospace, Consolas, monospace;
  138. color: #cbd5e1;
  139. overflow: auto;
  140. white-space: pre-wrap;
  141. word-break: break-all;
  142. line-height: 1.6;
  143. }
  144. h1{
  145. font-size:20px;
  146. margin-bottom:10px;
  147. color:#e2e8f0;
  148. }
  149. p{
  150. font-size:15px;
  151. color:#94a3b8;
  152. }
  153. /* 日志区 */
  154. .log-card {
  155. flex: 1;
  156. display: flex;
  157. flex-direction: column;
  158. min-height: 0;
  159. }
  160. .log-card .output {
  161. flex: 1;
  162. min-height: 0;
  163. }
  164. .log-actions {
  165. display: flex;
  166. align-items: center;
  167. gap: 10px;
  168. }
  169. .log-level-select {
  170. background: #0f172a;
  171. border: 1px solid rgba(148, 163, 184, 0.25);
  172. border-radius: 4px;
  173. color: #e5e7eb;
  174. font-size: 14px;
  175. padding: 6px 8px;
  176. height: 30px;
  177. min-width: 80px;
  178. cursor: pointer;
  179. outline: none;
  180. -webkit-appearance: none;
  181. appearance: none;
  182. }
  183. .log-level-select:hover {
  184. border-color: rgba(148, 163, 184, 0.45);
  185. }
  186. .log-level-select:focus {
  187. border-color: #3b82f6;
  188. }
  189. .log-card .output {
  190. padding-bottom: 32px;
  191. }
  192. /* 日志色 */
  193. .log-trace {
  194. color:#38bdf8;
  195. }
  196. .log-debug {
  197. color:#38bdf8;
  198. }
  199. .log-info {
  200. color:#38bdf8;
  201. }
  202. .log-warn {
  203. color:#fbbf24;
  204. }
  205. .log-error {
  206. color:#fb7185;
  207. }
  208. .log-fatal {
  209. color:#ef4444;
  210. font-weight:bold;
  211. }
  212. .log-panic {
  213. color:#c084fc;
  214. font-weight:bold;
  215. }
  216. .log-default {
  217. color:#38bdf8;
  218. }