Files
zftpd/web/css/file-manager.css
T

627 lines
11 KiB
CSS

/* ══ DUAL-PANE FILE MANAGER — PROFESSIONAL TRANSFER CLIENT ═══════════════ */
.fm-content {
padding-top: 8px;
}
.fm-shell {
display: flex;
flex-direction: column;
gap: 10px;
min-width: 0;
}
.fm-topline {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 16px;
border: 1px solid var(--bd);
border-radius: 8px;
background:
linear-gradient(135deg, rgba(var(--acR), .10), transparent 46%),
var(--sf);
box-shadow: var(--card-shadow);
padding: 14px 16px;
}
.fm-title-block {
min-width: 0;
}
.fm-eyebrow {
color: var(--ac);
font-size: 10px;
font-weight: 800;
letter-spacing: .08em;
text-transform: uppercase;
}
.fm-title-block h1 {
margin: 2px 0 0;
color: var(--tx);
font-size: 26px;
line-height: 1.05;
}
.fm-title-block p {
margin: 6px 0 0;
color: var(--tx3);
font-size: 12px;
font-weight: 600;
}
.fm-top-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
}
.fm-location-strip {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.fm-preset-block {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
border: 1px solid var(--bd);
border-radius: 8px;
background: var(--sf);
padding: 8px;
}
.fm-preset-block span {
color: var(--tx3);
font-size: 10px;
font-weight: 800;
letter-spacing: .07em;
text-transform: uppercase;
padding: 0 4px;
}
.fm-preset {
border: 1px solid var(--bd2);
border-radius: 7px;
background: var(--bg);
color: var(--tx2);
cursor: pointer;
font-size: 11px;
font-weight: 800;
line-height: 1;
min-height: 30px;
padding: 0 10px;
}
.fm-preset:hover {
border-color: var(--ac);
color: var(--ac);
background: rgba(var(--acR), .08);
}
.fm-container {
display: grid;
grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
gap: 10px;
height: calc(100vh - 250px);
min-height: 430px;
}
.fm-panel {
display: flex;
flex-direction: column;
min-width: 0;
background: var(--sf);
border: 1px solid var(--bd);
border-radius: 8px;
box-shadow: var(--card-shadow);
overflow: hidden;
transition: border-color .14s ease, box-shadow .14s ease;
}
.fm-panel.active {
border-color: rgba(var(--acR), .56);
box-shadow: 0 0 0 1px rgba(var(--acR), .22), var(--card-shadow);
}
.fm-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 12px;
background: var(--sf2);
border-bottom: 1px solid var(--bd);
}
.fm-panel-title {
display: grid;
gap: 3px;
min-width: 0;
}
.fm-panel-header .fm-label {
color: var(--ac);
font-size: 10px;
font-weight: 800;
letter-spacing: .08em;
text-transform: uppercase;
}
.fm-panel-title b {
color: var(--tx);
font-size: 12px;
font-weight: 800;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.fm-panel-tools,
.fm-panel-actions {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.fm-panel-tools .btn-icon {
width: 32px;
height: 32px;
padding: 0;
justify-content: center;
}
.fm-panel-actions {
border-bottom: 1px solid var(--bd);
background: var(--sf);
padding: 8px 10px;
}
.fm-panel-actions .btn {
min-height: 30px;
padding: 0 10px;
font-size: 11px;
}
.fm-panel-path {
display: flex;
align-items: center;
gap: 4px;
min-height: 36px;
padding: 6px 10px;
border-bottom: 1px solid var(--bd);
background: var(--bg);
overflow-x: auto;
scrollbar-width: none;
}
.fm-panel-path::-webkit-scrollbar {
display: none;
}
.fm-panel-path .crumb,
.fm-panel-path .cr-sep {
flex: 0 0 auto;
font-size: 11px;
}
.fm-panel-path .crumb {
border: 1px solid transparent;
border-radius: 7px;
color: var(--tx2);
cursor: pointer;
font-weight: 800;
line-height: 1;
padding: 5px 7px;
}
.fm-panel-path .crumb:hover,
.fm-panel-path .crumb.act {
border-color: rgba(var(--acR), .30);
background: rgba(var(--acR), .10);
color: var(--ac);
}
.fm-panel-path .cr-sep {
color: var(--tx3);
}
.fm-table-head,
.fm-row {
display: grid;
grid-template-columns: minmax(0, 1fr) 82px 92px;
align-items: center;
}
.fm-table-head {
min-height: 30px;
border-bottom: 1px solid var(--bd);
background: var(--sf2);
color: var(--tx3);
font-size: 10px;
font-weight: 800;
letter-spacing: .08em;
padding: 0 12px;
text-transform: uppercase;
}
.fm-table-head span:nth-child(2),
.fm-table-head span:nth-child(3) {
text-align: right;
}
.fm-panel-body {
flex: 1;
overflow-y: auto;
padding: 3px 0;
}
.fm-row {
min-height: 34px;
color: var(--tx2);
cursor: pointer;
font-size: 12px;
padding: 0 12px;
transition: background .1s, color .1s;
user-select: none;
}
.fm-row:hover {
background: rgba(var(--acR), .06);
color: var(--tx);
}
.fm-row.selected {
background: rgba(var(--acR), .14);
color: var(--ac);
}
.fm-row.dragging {
opacity: .5;
}
.fm-row-main {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.fm-row-ico {
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.fm-row-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 700;
}
.fm-row-size,
.fm-row-date {
color: var(--tx3);
font-size: 10px;
font-weight: 700;
text-align: right;
white-space: nowrap;
}
.fm-row.selected .fm-row-size,
.fm-row.selected .fm-row-date {
color: currentColor;
}
.fm-empty,
.fm-loading,
.fm-error {
display: flex;
align-items: center;
justify-content: center;
min-height: 150px;
color: var(--tx3);
font-size: 12px;
font-weight: 700;
padding: 24px;
text-align: center;
}
.fm-error {
color: var(--er);
}
.fm-center {
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: center;
gap: 8px;
min-width: 0;
}
.fm-action-btn {
display: grid;
place-items: center;
gap: 4px;
width: 72px;
min-height: 52px;
border: 1px solid var(--bd2);
border-radius: 8px;
background: var(--sf);
color: var(--tx2);
cursor: pointer;
font-size: 10px;
font-weight: 800;
line-height: 1;
transition: all var(--transition-fast);
}
.fm-action-btn:hover {
border-color: var(--ac);
color: var(--ac);
background: rgba(var(--acR), .08);
}
.fm-action-btn.primary {
border-color: rgba(var(--acR), .45);
color: var(--ac);
}
.fm-action-btn.danger {
color: var(--er);
border-color: rgba(255, 95, 87, .32);
}
.fm-action-btn:disabled {
opacity: .42;
cursor: not-allowed;
filter: saturate(.65);
}
.fm-panel-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
min-height: 34px;
padding: 7px 12px;
border-top: 1px solid var(--bd);
background: var(--sf2);
color: var(--tx3);
font-size: 10px;
font-weight: 700;
}
.fm-panel-footer b {
color: var(--tx2);
}
.fm-panel-footer .fm-selected-count {
color: var(--ac);
}
.fm-queue {
grid-column: 1 / -1;
background: var(--sf);
border: 1px solid var(--bd);
border-radius: 8px;
margin-top: 8px;
max-height: 150px;
overflow-y: auto;
}
.fm-queue-header {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
border-bottom: 1px solid var(--bd);
font-size: 10px;
font-weight: 800;
color: var(--tx2);
text-transform: uppercase;
letter-spacing: .06em;
}
.fm-queue-row {
display: flex;
align-items: center;
gap: 8px;
padding: 5px 12px;
font-size: 11px;
border-bottom: 1px solid var(--bd);
}
.fm-queue-row:last-child {
border-bottom: none;
}
.fm-queue-name {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--tx);
font-weight: 700;
}
.fm-queue-progress {
width: 80px;
height: 4px;
border-radius: var(--radius-pill);
background: var(--bd);
overflow: hidden;
}
.fm-queue-bar {
height: 100%;
border-radius: var(--radius-pill);
background: linear-gradient(90deg, var(--ac), var(--ac2));
transition: width .15s ease;
}
.fm-queue-status {
font-size: 10px;
color: var(--tx2);
min-width: 50px;
text-align: right;
}
.fm-panel.fm-drop-target {
border-color: var(--ac);
box-shadow: inset 0 0 20px rgba(var(--acR), .1);
}
#view-filemanager.fm-classic .fm-location-strip,
#view-filemanager.fm-classic .fm-panel-actions,
#view-filemanager.fm-classic .fm-table-head,
#view-filemanager.fm-classic .fm-row-date {
display: none;
}
#view-filemanager.fm-classic .fm-container {
grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
height: calc(100vh - 180px);
}
#view-filemanager.fm-classic .fm-panel {
border-radius: var(--radius-md);
}
#view-filemanager.fm-classic .fm-row {
grid-template-columns: minmax(0, 1fr) 72px;
min-height: 32px;
}
#view-filemanager.fm-classic .fm-center {
gap: 6px;
}
#view-filemanager.fm-classic .fm-action-btn {
width: 40px;
min-height: 40px;
}
#view-filemanager.fm-classic .fm-action-btn span {
display: none;
}
[data-theme="cloud"] .fm-topline,
[data-theme="cloud"] .fm-preset-block,
[data-theme="cloud"] .fm-panel,
[data-theme="cloud"] .fm-action-btn,
[data-theme="cloud"] .fm-queue {
background: #fff;
border-color: #d8dee8;
}
[data-theme="cloud"] .fm-panel-header,
[data-theme="cloud"] .fm-panel-actions,
[data-theme="cloud"] .fm-table-head,
[data-theme="cloud"] .fm-panel-footer {
background: #f8fafc;
border-color: #d8dee8;
}
[data-theme="cloud"] .fm-panel-path,
[data-theme="cloud"] .fm-preset {
background: #f8fafc;
border-color: #d8dee8;
}
@media (max-width: 1120px) {
.fm-container {
grid-template-columns: minmax(0, 1fr);
height: auto;
}
.fm-center {
position: sticky;
bottom: calc(12px + env(safe-area-inset-bottom));
z-index: 20;
flex-direction: row;
justify-content: center;
order: 2;
border: 1px solid var(--bd);
border-radius: 8px;
background: var(--sf);
box-shadow: var(--card-shadow);
padding: 8px;
}
#fm-panel-left {
order: 1;
}
#fm-panel-right {
order: 3;
}
.fm-action-btn {
width: auto;
min-width: 62px;
min-height: 44px;
padding: 0 10px;
}
}
@media (max-width: 720px) {
.fm-topline,
.fm-location-strip {
grid-template-columns: 1fr;
}
.fm-top-actions,
.fm-preset-block {
flex-wrap: wrap;
justify-content: flex-start;
}
.fm-title-block h1 {
font-size: 23px;
}
.fm-panel {
min-height: 330px;
max-height: none;
}
.fm-panel-header {
align-items: flex-start;
}
.fm-panel-actions {
overflow-x: auto;
}
.fm-table-head,
.fm-row {
grid-template-columns: minmax(0, 1fr) 72px;
}
.fm-table-head span:nth-child(3),
.fm-row-date {
display: none;
}
.fm-action-btn span {
display: none;
}
.fm-action-btn {
min-width: 46px;
}
}