App.css 4.1 KB
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #root {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #f0f2f5;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  background: #001529;
  color: #fff;
  flex-shrink: 0;
}

.app-header .logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
}

.app-header .conn-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.left-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.right-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

/* 拖动分隔条 */
.resize-handle {
  width: 12px;
  cursor: col-resize;
  background: #f0f0f0;
  border-left: 1px solid #d9d9d9;
  border-right: 1px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
  z-index: 10;
}

.resize-handle:hover {
  background: #e0e0e0;
}

.resize-handle:active {
  background: #d0d0d0;
}

.collapse-btn {
  width: 20px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  color: #666;
  transition: all 0.2s;
  z-index: 11;
}

.collapse-btn:hover {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

.panel-section {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-title {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.editor-wrapper {
  flex: 1;
  overflow: auto;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
}

.editor-wrapper .cm-editor {
  height: 100%;
  font-size: 14px;
}

.editor-wrapper .cm-editor .cm-scroller {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  overflow: auto !important;
}

.editor-wrapper .cm-editor .cm-scroll {
  overflow: auto !important;
}

.editor-toolbar {
  padding: 8px 12px;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.result-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.result-toolbar {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.result-toolbar .left-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-toolbar .right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-table-wrapper {
  flex: 1;
  overflow: auto;
  padding: 0 12px;
}

.result-pagination {
  padding: 12px 16px;
  display: flex;
  justify-content: flex-end;
  background: #fafafa;
  border-top: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.check-modal .check-item {
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  font-size: 13px;
}

.check-modal .check-item.high {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
}

.check-modal .check-item.medium {
  background: #fff7e6;
  border: 1px solid #ffd591;
  color: #d46b08;
}

.check-modal .check-item.warn {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #ad6800;
}

.check-modal .check-item.info {
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  color: #096dd9;
}

.check-modal .check-item.ok {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #389e0d;
}

.check-modal .explain-table {
  margin-top: 12px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #999;
}

.ant-table-wrapper {
  overflow: auto;
}