rojects/source/components/file-tree-panel/file-tree-panel.css

194 lines
2.9 KiB
CSS
Raw Normal View History

file-tree-panel
{
display: flex;
flex-direction: column;
height: 100%;
background: #0f1117;
color: #c8cbde;
font-size: 0.85rem;
}
ftp-header
{
display: flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
border-bottom: 1px solid #2a2d3a;
flex-shrink: 0;
}
.ftp-btn
{
padding: 2px 6px;
background: transparent;
border: 1px solid #2a2d3a;
border-radius: 3px;
color: #666;
cursor: pointer;
font-size: 0.7rem;
font-family: inherit;
}
.ftp-btn:hover { color: #aaa; background: #1a1d27; border-color: #444; }
ftp-inline-create
{
display: flex;
flex-direction: column;
gap: 4px;
padding: 8px;
background: #13151f;
border-bottom: 1px solid #2a2d3a;
}
ftp-inline-label
{
display: block;
font-size: 0.75rem;
color: #666;
font-style: italic;
}
.ftp-rename-input
{
width: 100%;
padding: 4px 6px;
background: #0f1117;
border: 1px solid #7c8cff;
border-radius: 3px;
color: #e2e4ed;
font-size: 0.85rem;
font-family: inherit;
outline: none;
}
ftp-inline-create .ftp-btn
{
align-self: flex-start;
display: inline-block;
margin-right: 4px;
}
ftp-tree
{
display: block;
flex: 1;
overflow-y: auto;
padding: 4px 0;
}
ftp-list
{
display: block;
list-style: none;
padding: 0;
margin: 0;
}
ftp-list ftp-list
{
display: none;
}
ftp-dir
{
display: block;
}
ftp-dir.open > ftp-list
{
display: block;
}
ftp-dir-label
{
display: flex;
align-items: center;
gap: 5px;
padding: 3px 8px 3px calc(8px + var(--depth, 0) * 12px);
cursor: pointer;
color: #7b7f96;
}
ftp-dir-label::before
{
content: '';
display: inline-block;
flex-shrink: 0;
width: 0;
height: 0;
border-style: solid;
border-width: 4px 0 4px 6px;
border-color: transparent transparent transparent currentColor;
transition: transform 0.14s;
}
ftp-dir.open > ftp-dir-label::before
{
transform: rotate( 90deg );
}
ftp-dir-label:hover { color: #c8cbde; }
ftp-dir.open > ftp-dir-label { color: #c8cbde; }
ftp-dir,
ftp-file
{
margin-top: 0.1em;
margin-bottom: 0.1em;
}
ftp-file
{
display: flex;
align-items: center;
gap: 5px;
padding: 3px 8px 3px calc( 19px + var(--depth, 0) * 12px );
cursor: pointer;
color: #9ba4c7;
}
.ftp-icon
{
flex-shrink: 0;
width: 16px;
height: 16px;
}
ftp-file:hover { background: #1a1d27; color: #e2e4ed; }
ftp-file.active { background: #1e2235; color: #7c8cff; }
ftp-dir-label.active { background: #1e2235; color: #c8cbde; }
ftp-type-error
{
display: block;
padding: 6px 10px;
color: #e07070;
font-size: 0.8rem;
background: #1e1520;
border-bottom: 1px solid #3a2a2a;
}
ftp-empty
{
display: block;
padding: 12px;
color: #555;
font-style: italic;
}
ftp-up
{
display: block;
padding: 4px 8px;
cursor: pointer;
color: #666;
font-size: 0.8rem;
font-style: italic;
border-bottom: 1px solid #1e2030;
}
ftp-up:hover { color: #c8cbde; background: #1a1d27; }