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

79 lines
1.2 KiB
CSS
Raw Normal View History

2025-10-15 10:08:15 +08:00
.file-tree {
height: 100%;
overflow-y: auto;
overflow-x: hidden;
background: #1e1e1e;
color: #cccccc;
user-select: none;
}
.file-tree::-webkit-scrollbar {
width: 10px;
}
.file-tree::-webkit-scrollbar-track {
background: #1e1e1e;
}
.file-tree::-webkit-scrollbar-thumb {
background: #424242;
border-radius: 5px;
}
.file-tree::-webkit-scrollbar-thumb:hover {
background: #4e4e4e;
}
.file-tree.loading,
.file-tree.empty {
display: flex;
align-items: center;
justify-content: center;
color: #858585;
2025-10-17 23:47:04 +08:00
font-size: var(--font-size-sm);
2025-10-15 10:08:15 +08:00
}
.tree-node {
display: flex;
align-items: center;
padding: 4px 8px;
cursor: pointer;
2025-10-17 23:47:04 +08:00
font-size: var(--font-size-base);
2025-10-15 10:08:15 +08:00
white-space: nowrap;
transition: background 0.1s ease;
}
.tree-node:hover {
background: #2a2d2e;
}
.tree-node.selected {
background: #37373d;
}
.tree-arrow {
width: 16px;
height: 16px;
display: inline-flex;
align-items: center;
justify-content: center;
margin-right: 4px;
2025-10-17 23:47:04 +08:00
font-size: var(--font-size-xs);
2025-10-15 10:08:15 +08:00
color: #cccccc;
}
.tree-icon {
margin-right: 6px;
2025-10-17 23:47:04 +08:00
font-size: var(--font-size-md);
2025-10-15 10:08:15 +08:00
}
.tree-label {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
}
.tree-children {
/* Children are indented via inline style */
}