| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- /* 页面整体布局 */
- .page-network {
- display: flex;
- flex-direction: column;
- gap: 12px;
- overflow: hidden;
- }
- /* 顶部的状态栏 */
- .status-bar {
- display: flex;
- padding: 8px 12px;
- background: linear-gradient(180deg, #0f172a, #0b1220);
- gap: 16px;
- border: 1px solid rgba(148,163,184,0.15);
- border-radius: 4px;
- flex-shrink: 0;
- }
- .status-item {
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
- .status-item .label {
- font-size: 14px;
- }
- .status-item .value {
- font-size: 14px;
- font-family: ui-monospace, Consolas, monospace;
- }
- /* 左右拆分的栏 */
- .panes {
- display: flex;
- gap: 12px;
- flex: 1;
- min-height: 0;
- overflow: hidden;
- }
- /* 展示网络信息 */
- .left-pane {
- flex: 1;
- display: flex;
- flex-direction: column;
- gap: 12px;
- overflow: hidden;
- min-width: 0;
- }
- .left-pane .card {
- flex: 1;
- display: flex;
- flex-direction: column;
- min-height: 0;
- overflow: hidden;
- }
- .left-pane .card:nth-child(1) {
- flex: 2;
- }
- .left-pane .card:nth-child(2),
- .left-pane .card:nth-child(3) {
- flex: 1;
- }
- .left-pane .output {
- flex: 1;
- min-height: 0;
- }
- /* 展示服务日志 */
- .right-pane {
- flex: 1;
- display: flex;
- flex-direction: column;
- min-width: 0;
- }
- .log-card {
- flex: 1;
- display: flex;
- flex-direction: column;
- min-height: 0;
- }
- .log-card .output {
- flex: 1;
- min-height: 0;
- }
- .log-actions {
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .log-level-select {
- background: #0f172a;
- border: 1px solid rgba(148, 163, 184, 0.25);
- border-radius: 4px;
- color: #e5e7eb;
- font-size: 14px;
- padding: 6px 8px;
- height: 30px;
- min-width: 80px;
- cursor: pointer;
- outline: none;
- -webkit-appearance: none;
- appearance: none;
- }
- .log-level-select:hover {
- border-color: rgba(148, 163, 184, 0.45);
- }
- .log-level-select:focus {
- border-color: #3b82f6;
- }
- /* 卡片基础样式 */
- .card {
- background: #0f172a;
- border: 1px solid #1f2937;
- border-radius: 4px;
- padding: 12px;
- margin-bottom: 0;
- }
- .card-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 12px;
- }
- .card-header h2 {
- font-size: 14px;
- font-weight: 500;
- color: #e2e8f0;
- margin: 0;
- }
- /* 输出信息区域 */
- .output {
- background: #020617;
- border: 1px solid #1f2937;
- border-radius: 4px;
- padding: 8px;
- font-size: 12px;
- font-family: ui-monospace, Consolas, monospace;
- color: #cbd5e1;
- overflow: auto;
- white-space: pre;
- line-height: 1.6;
- }
|