Files
esengine/packages/editor-app/src/styles/EntityInspector.css

141 lines
2.1 KiB
CSS
Raw Normal View History

2025-10-14 23:31:09 +08:00
.entity-inspector {
display: flex;
flex-direction: column;
height: 100%;
background-color: #1e1e1e;
color: #cccccc;
}
.inspector-header {
padding: 10px;
border-bottom: 1px solid #3c3c3c;
background-color: #252526;
}
.inspector-header h3 {
margin: 0;
font-size: 14px;
font-weight: 600;
color: #cccccc;
}
.inspector-content {
flex: 1;
overflow-y: auto;
padding: 12px;
}
.inspector-section {
margin-bottom: 16px;
}
.section-header {
2025-10-14 23:42:06 +08:00
display: flex;
justify-content: space-between;
align-items: center;
2025-10-14 23:31:09 +08:00
font-size: 12px;
font-weight: 600;
color: #858585;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 8px;
padding: 4px 0;
border-bottom: 1px solid #3c3c3c;
}
2025-10-14 23:42:06 +08:00
.add-component-btn {
background-color: #007acc;
color: #fff;
border: none;
border-radius: 3px;
width: 20px;
height: 20px;
font-size: 16px;
line-height: 16px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s;
}
.add-component-btn:hover {
background-color: #0098ff;
}
2025-10-14 23:31:09 +08:00
.section-content {
padding: 8px 0;
}
.info-row {
display: flex;
justify-content: space-between;
padding: 6px 0;
font-size: 13px;
}
.info-label {
color: #858585;
font-weight: 500;
}
.info-value {
color: #cccccc;
}
.component-list {
list-style: none;
margin: 0;
padding: 0;
}
.component-item {
display: flex;
align-items: center;
padding: 8px;
margin-bottom: 4px;
background-color: #252526;
border: 1px solid #3c3c3c;
border-radius: 3px;
font-size: 13px;
2025-10-14 23:42:06 +08:00
position: relative;
2025-10-14 23:31:09 +08:00
}
.component-item:hover {
background-color: #2a2d2e;
border-color: #505050;
}
.component-icon {
margin-right: 8px;
font-size: 14px;
}
.component-name {
2025-10-14 23:42:06 +08:00
flex: 1;
2025-10-14 23:31:09 +08:00
color: #cccccc;
}
2025-10-14 23:42:06 +08:00
.remove-component-btn {
background: none;
border: none;
color: #858585;
font-size: 18px;
line-height: 14px;
cursor: pointer;
padding: 2px 6px;
transition: color 0.2s;
margin-left: 8px;
}
.remove-component-btn:hover {
color: #ff5555;
}
2025-10-14 23:31:09 +08:00
.empty-state {
padding: 20px;
text-align: center;
color: #858585;
font-size: 13px;
}