page9.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /* 页面整体布局 */
  2. .page-cbd {
  3. display: flex;
  4. flex-direction: column;
  5. gap: 12px;
  6. overflow: hidden;
  7. }
  8. /* 左右拆分的栏 */
  9. .page-cbd .panes {
  10. display: flex;
  11. gap: 12px;
  12. flex: 1;
  13. min-height: 0;
  14. overflow: hidden;
  15. }
  16. /* 左栏 */
  17. .page-cbd .left-pane {
  18. flex: 1;
  19. display: flex;
  20. flex-direction: column;
  21. gap: 12px;
  22. min-width: 0;
  23. min-height: 0;
  24. overflow: hidden;
  25. }
  26. .page-cbd .left-pane .card {
  27. display: flex;
  28. flex-direction: column;
  29. min-height: 0;
  30. overflow: hidden;
  31. }
  32. /* 常用指令:占2/3 */
  33. .page-cbd .command-card {
  34. flex: 2;
  35. }
  36. /* 固件升级:占1/3 */
  37. .page-cbd .firmware-card {
  38. flex: 1;
  39. }
  40. /* 左侧内容区域 */
  41. .page-cbd .command-content,
  42. .page-cbd .firmware-content {
  43. flex: 1;
  44. min-height: 0;
  45. overflow: auto;
  46. }
  47. /* 右栏:应用日志 */
  48. .page-cbd .right-pane {
  49. flex: 1;
  50. display: flex;
  51. flex-direction: column;
  52. min-width: 0;
  53. min-height: 0;
  54. }
  55. .page-cbd .right-pane .log-card {
  56. flex: 1;
  57. display: flex;
  58. flex-direction: column;
  59. min-height: 0;
  60. overflow: hidden;
  61. }
  62. .page-cbd .right-pane .output {
  63. flex: 1;
  64. min-height: 0;
  65. }
  66. /* ================= 移动端适配 (≤768px) ================= */
  67. @media (max-width: 768px) {
  68. .page-cbd .panes {
  69. flex-direction: column;
  70. flex: none;
  71. overflow: visible;
  72. }
  73. .page-cbd .left-pane,
  74. .page-cbd .right-pane {
  75. width: 100%;
  76. flex: none;
  77. overflow: visible;
  78. }
  79. .page-cbd .command-card {
  80. flex: none;
  81. min-height: 240px;
  82. }
  83. .page-cbd .firmware-card {
  84. flex: none;
  85. min-height: 180px;
  86. }
  87. .page-cbd .right-pane .log-card {
  88. min-height: 400px;
  89. }
  90. }