d0927cbad5
- 支持Cisco、华为、H3C、ASA、Linux、Windows设备 - SSH远程采集设备信息 - 自动发现网络拓扑(LLDP/CDP) - Web可视化界面 - 支持旧版SSH加密算法兼容
272 lines
4.0 KiB
CSS
272 lines
4.0 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: #f5f5f5;
|
|
color: #333;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
}
|
|
|
|
header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #4CAF50;
|
|
color: white;
|
|
}
|
|
|
|
.btn-success {
|
|
background: #2196F3;
|
|
color: white;
|
|
}
|
|
|
|
.btn-info {
|
|
background: #FF9800;
|
|
color: white;
|
|
}
|
|
|
|
.main-content {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 300px;
|
|
background: white;
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
box-shadow: 2px 0 5px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.panel {
|
|
margin-bottom: 20px;
|
|
padding: 15px;
|
|
background: #fafafa;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.panel h3 {
|
|
margin-bottom: 15px;
|
|
color: #667eea;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 100%;
|
|
height: 20px;
|
|
background: #e0e0e0;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #4CAF50, #45a049);
|
|
width: 0%;
|
|
transition: width 0.3s;
|
|
}
|
|
|
|
.device-list {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.device-item {
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
background: white;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
border-left: 3px solid #667eea;
|
|
}
|
|
|
|
.device-item:hover {
|
|
background: #f0f0f0;
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
.device-item .ip {
|
|
font-weight: bold;
|
|
color: #667eea;
|
|
}
|
|
|
|
.device-item .type {
|
|
font-size: 12px;
|
|
color: #666;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.content {
|
|
flex: 1;
|
|
position: relative;
|
|
}
|
|
|
|
#cy {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: white;
|
|
}
|
|
|
|
.detail-panel {
|
|
width: 350px;
|
|
background: white;
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
box-shadow: -2px 0 5px rgba(0,0,0,0.1);
|
|
display: none;
|
|
}
|
|
|
|
.detail-panel.active {
|
|
display: block;
|
|
}
|
|
|
|
.detail-panel h3 {
|
|
margin-bottom: 15px;
|
|
color: #667eea;
|
|
}
|
|
|
|
.detail-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.detail-section h4 {
|
|
margin-bottom: 10px;
|
|
color: #333;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.interface-item {
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
background: #f9f9f9;
|
|
border-radius: 5px;
|
|
border-left: 3px solid #2196F3;
|
|
}
|
|
|
|
.interface-item .name {
|
|
font-weight: bold;
|
|
color: #2196F3;
|
|
}
|
|
|
|
.interface-item .info {
|
|
font-size: 12px;
|
|
color: #666;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0,0,0,0.5);
|
|
}
|
|
|
|
.modal.active {
|
|
display: block;
|
|
}
|
|
|
|
.modal-content {
|
|
background: white;
|
|
margin: 10% auto;
|
|
padding: 30px;
|
|
border-radius: 10px;
|
|
width: 500px;
|
|
position: relative;
|
|
}
|
|
|
|
.close {
|
|
position: absolute;
|
|
right: 20px;
|
|
top: 20px;
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
color: #999;
|
|
}
|
|
|
|
.close:hover {
|
|
color: #333;
|
|
}
|
|
|
|
.status-up {
|
|
color: #4CAF50;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.status-down {
|
|
color: #f44336;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.status-admin-down {
|
|
color: #FF9800;
|
|
font-weight: bold;
|
|
}
|