velxio/frontend/src/components/editor/FileExplorer.css

151 lines
2.6 KiB
CSS
Raw Normal View History

.file-explorer {
width: 195px;
flex-shrink: 0;
background: #252526;
border-right: 1px solid #333;
display: flex;
flex-direction: column;
overflow: hidden;
font-size: 12px;
font-family: 'Segoe UI', sans-serif;
}
.file-explorer-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 7px 10px 6px;
color: #9d9d9d;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.5px;
border-bottom: 1px solid #333;
flex-shrink: 0;
}
.file-explorer-new-btn {
background: none;
border: none;
color: #9d9d9d;
font-size: 18px;
line-height: 1;
cursor: pointer;
padding: 0 3px;
border-radius: 3px;
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
}
.file-explorer-new-btn:hover {
background: rgba(255, 255, 255, 0.08);
color: #fff;
}
.file-explorer-list {
flex: 1;
overflow-y: auto;
padding: 4px 0;
scrollbar-width: thin;
scrollbar-color: #3c3c3c transparent;
}
.file-explorer-item {
display: flex;
align-items: center;
gap: 6px;
padding: 5px 8px;
cursor: pointer;
color: #ccc;
border-radius: 3px;
margin: 1px 4px;
white-space: nowrap;
overflow: hidden;
user-select: none;
}
.file-explorer-item:hover {
background: rgba(255, 255, 255, 0.06);
}
.file-explorer-item-active {
background: rgba(79, 195, 247, 0.12);
color: #e2e2e2;
}
.file-explorer-item-new {
background: rgba(255, 255, 255, 0.04);
}
.file-explorer-icon {
font-size: 12px;
flex-shrink: 0;
opacity: 0.8;
}
.file-explorer-name {
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
}
.file-explorer-dot {
color: #e8a87c;
font-size: 9px;
flex-shrink: 0;
}
.file-explorer-rename-input {
flex: 1;
background: #3c3c3c;
border: 1px solid #4fc3f7;
color: #fff;
font-size: 12px;
padding: 1px 4px;
border-radius: 2px;
outline: none;
min-width: 0;
font-family: inherit;
}
/* Context menu */
.file-explorer-context-menu {
position: fixed;
background: #2d2d2d;
border: 1px solid #3c3c3c;
border-radius: 4px;
z-index: 2000;
display: flex;
flex-direction: column;
min-width: 120px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.file-explorer-context-menu button {
background: none;
border: none;
color: #ccc;
padding: 7px 14px;
text-align: left;
cursor: pointer;
font-size: 12px;
font-family: inherit;
}
.file-explorer-context-menu button:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.08);
color: #fff;
}
.file-explorer-context-menu button:disabled {
opacity: 0.35;
cursor: not-allowed;
}
.ctx-delete:hover:not(:disabled) {
color: #ef5350 !important;
}