chore: add and update gitignore rules for project files
add a comprehensive gitignore file to exclude unnecessary files like dependencies, runtime data, uploads, local configs and debug temporary files
This commit is contained in:
@@ -0,0 +1,688 @@
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
:root {
|
||||
--bg: #f5f5f7;
|
||||
--window-bg: #ffffff;
|
||||
--sidebar-bg: #ececec;
|
||||
--header-bg: #f0f0f2;
|
||||
--text: #1d1d1f;
|
||||
--text-secondary: #6e6e73;
|
||||
--border: rgba(0,0,0,0.08);
|
||||
--selection: #0a84ff;
|
||||
--selection-bg: rgba(10,132,255,0.14);
|
||||
--selection-border: rgba(10,132,255,0.35);
|
||||
--hover-bg: rgba(0,0,0,0.04);
|
||||
--danger: #ff3b30;
|
||||
--shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 10px rgba(0,0,0,0.08);
|
||||
--radius: 10px;
|
||||
--radius-sm: 6px;
|
||||
}
|
||||
|
||||
:root.theme-dark {
|
||||
--bg: #1e1e1e;
|
||||
--window-bg: #2c2c2e;
|
||||
--sidebar-bg: #232325;
|
||||
--header-bg: #2a2a2c;
|
||||
--text: #f5f5f7;
|
||||
--text-secondary: #a1a1a6;
|
||||
--border: rgba(255,255,255,0.08);
|
||||
--selection: #0a84ff;
|
||||
--selection-bg: rgba(10,132,255,0.25);
|
||||
--selection-border: rgba(10,132,255,0.5);
|
||||
--hover-bg: rgba(255,255,255,0.05);
|
||||
--shadow: 0 10px 40px rgba(0,0,0,0.5), 0 2px 10px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
||||
font-size: 13px;
|
||||
color: var(--text);
|
||||
background: var(--bg);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; color: inherit; }
|
||||
input, select, textarea { font-family: inherit; outline: none; }
|
||||
|
||||
/* ===== 登录页 ===== */
|
||||
.login-screen {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background: linear-gradient(180deg, #6b7dff 0%, #b066ff 50%, #ff6ec7 100%);
|
||||
}
|
||||
|
||||
:root.theme-dark .login-screen { background: linear-gradient(180deg, #1a1d2e 0%, #2a1d3a 50%, #3a1d2e 100%); }
|
||||
|
||||
.login-card {
|
||||
width: 320px;
|
||||
padding: 32px 28px;
|
||||
background: var(--window-bg);
|
||||
border-radius: 14px;
|
||||
box-shadow: var(--shadow);
|
||||
text-align: center;
|
||||
backdrop-filter: blur(20px) saturate(180%);
|
||||
}
|
||||
|
||||
.login-icon { font-size: 48px; margin-bottom: 8px; }
|
||||
.login-card h1 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
|
||||
.login-subtitle { font-size: 12px; color: var(--text-secondary); margin-bottom: 20px; }
|
||||
|
||||
.login-form { text-align: left; }
|
||||
.form-group { margin-bottom: 12px; }
|
||||
.form-group label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
|
||||
.form-group input {
|
||||
width: 100%;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-size: 13px;
|
||||
}
|
||||
.form-group input:focus { border-color: var(--selection); }
|
||||
|
||||
.btn-primary {
|
||||
width: 100%;
|
||||
padding: 9px 16px;
|
||||
background: var(--selection);
|
||||
color: #fff;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
margin-top: 6px;
|
||||
transition: opacity 0.15s;
|
||||
}
|
||||
.btn-primary:hover { opacity: 0.88; }
|
||||
.btn-ghost {
|
||||
padding: 8px 16px;
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 13px;
|
||||
}
|
||||
.btn-ghost:hover { background: var(--hover-bg); }
|
||||
|
||||
.login-error { margin-top: 12px; color: var(--danger); font-size: 12px; text-align: center; min-height: 16px; }
|
||||
|
||||
/* ===== Finder 窗口 ===== */
|
||||
.finder-app { width: 100%; height: 100vh; padding: 12px; }
|
||||
|
||||
.finder-window {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: var(--window-bg);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.finder-titlebar {
|
||||
height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 14px;
|
||||
background: var(--header-bg);
|
||||
border-bottom: 1px solid var(--border);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.window-buttons { display: flex; gap: 8px; }
|
||||
.window-buttons span {
|
||||
width: 12px; height: 12px;
|
||||
border-radius: 50%;
|
||||
display: block;
|
||||
}
|
||||
.btn-close { background: #ff5f57; }
|
||||
.btn-mini { background: #febc2e; }
|
||||
.btn-max { background: #28c840; }
|
||||
|
||||
.finder-title {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.finder-actions { display: flex; gap: 6px; }
|
||||
.icon-btn {
|
||||
padding: 4px 8px;
|
||||
font-size: 14px;
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.icon-btn:hover { background: var(--hover-bg); color: var(--text); }
|
||||
|
||||
/* ===== Toolbar ===== */
|
||||
.finder-toolbar {
|
||||
height: 44px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 14px;
|
||||
gap: 12px;
|
||||
background: var(--header-bg);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.nav-buttons { display: flex; gap: 4px; }
|
||||
.nav-btn {
|
||||
width: 28px; height: 28px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.nav-btn:hover { background: var(--hover-bg); color: var(--text); }
|
||||
|
||||
.path-bar {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 4px 12px;
|
||||
background: var(--bg);
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 13px;
|
||||
min-height: 28px;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.crumb {
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.crumb.active { color: var(--text); font-weight: 500; }
|
||||
.crumb:hover:not(.active) { background: var(--hover-bg); color: var(--text); }
|
||||
.crumb-sep { color: var(--text-secondary); opacity: 0.5; }
|
||||
|
||||
.view-switcher {
|
||||
display: flex;
|
||||
background: var(--bg);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 2px;
|
||||
}
|
||||
.view-btn {
|
||||
width: 28px; height: 24px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.view-btn:hover { color: var(--text); }
|
||||
.view-btn.active { background: var(--window-bg); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
|
||||
|
||||
.search-box input {
|
||||
width: 180px;
|
||||
padding: 6px 10px;
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text);
|
||||
font-size: 12px;
|
||||
}
|
||||
.search-box input:focus { border-color: var(--selection); }
|
||||
|
||||
/* ===== Body ===== */
|
||||
.finder-body {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.finder-sidebar {
|
||||
width: 180px;
|
||||
background: var(--sidebar-bg);
|
||||
padding: 10px 6px;
|
||||
overflow-y: auto;
|
||||
border-right: 1px solid var(--border);
|
||||
}
|
||||
.sidebar-section-title {
|
||||
font-size: 11px;
|
||||
color: var(--text-secondary);
|
||||
padding: 8px 10px 4px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.sidebar-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 6px 10px;
|
||||
margin: 1px 0;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
color: var(--text);
|
||||
}
|
||||
.sidebar-item:hover { background: var(--hover-bg); }
|
||||
.sidebar-item.active { background: var(--selection); color: #fff; }
|
||||
.sidebar-icon { font-size: 14px; }
|
||||
|
||||
.finder-content {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
background: var(--window-bg);
|
||||
}
|
||||
|
||||
/* ===== 文件区 ===== */
|
||||
.file-area {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 18px;
|
||||
overflow-y: auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* 图标视图 */
|
||||
.icon-view {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
|
||||
gap: 16px;
|
||||
align-content: start;
|
||||
}
|
||||
.icon-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 8px 6px;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
transition: background 0.12s;
|
||||
user-select: none;
|
||||
}
|
||||
.icon-item:hover { background: var(--hover-bg); }
|
||||
.icon-item.selected { background: var(--selection-bg); }
|
||||
.icon-wrap {
|
||||
width: 64px; height: 64px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 34px;
|
||||
margin-bottom: 4px;
|
||||
border-radius: 12px;
|
||||
background: var(--file-icon-bg, #f0f0f0);
|
||||
overflow: hidden;
|
||||
}
|
||||
.icon-wrap.file-red { background: #ffebee; }
|
||||
.icon-wrap.file-blue { background: #e3f2fd; }
|
||||
.icon-wrap.file-green { background: #e8f5e9; }
|
||||
.icon-wrap.file-orange { background: #fff3e0; }
|
||||
.icon-wrap.file-purple { background: #f3e5f5; }
|
||||
.icon-wrap.file-pink { background: #fce4ec; }
|
||||
.icon-wrap.file-yellow { background: #fffde7; }
|
||||
.icon-wrap.file-image { background: #e8eaf6; }
|
||||
.icon-wrap.file-text { background: #f5f5f5; }
|
||||
.icon-wrap.file-gray { background: #f0f0f0; }
|
||||
.icon-thumb {
|
||||
width: 100%; height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
.icon-name {
|
||||
font-size: 12px;
|
||||
line-height: 1.3;
|
||||
max-width: 80px;
|
||||
word-break: break-all;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 列表视图 */
|
||||
.list-table {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.list-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(280px, 1fr) 100px 180px 100px;
|
||||
padding: 6px 12px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
border-bottom: 1px solid var(--border);
|
||||
align-items: center;
|
||||
user-select: none;
|
||||
}
|
||||
.list-row:hover { background: var(--hover-bg); }
|
||||
.list-row.selected { background: var(--selection-bg); }
|
||||
.list-header {
|
||||
background: var(--header-bg);
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
cursor: default;
|
||||
border-bottom: 1px solid var(--border);
|
||||
z-index: 1;
|
||||
}
|
||||
.list-header:hover { background: var(--header-bg); }
|
||||
.col-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.col-size, .col-modified, .col-kind { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.row-icon {
|
||||
width: 22px; height: 22px;
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
font-size: 13px;
|
||||
border-radius: 5px;
|
||||
flex-shrink: 0;
|
||||
background: var(--file-icon-bg, #f0f0f0);
|
||||
}
|
||||
.row-icon.file-red { background: #ffebee; }
|
||||
.row-icon.file-blue { background: #e3f2fd; }
|
||||
.row-icon.file-green { background: #e8f5e9; }
|
||||
.row-icon.file-orange { background: #fff3e0; }
|
||||
.row-icon.file-purple { background: #f3e5f5; }
|
||||
.row-icon.file-pink { background: #fce4ec; }
|
||||
.row-icon.file-yellow { background: #fffde7; }
|
||||
.row-icon.file-image { background: #e8eaf6; }
|
||||
.row-icon.file-text { background: #f5f5f5; }
|
||||
.row-icon.file-gray { background: #f0f0f0; }
|
||||
|
||||
/* 分栏视图 */
|
||||
.file-area.column-view {
|
||||
display: flex;
|
||||
padding: 0;
|
||||
}
|
||||
.column {
|
||||
flex: 1;
|
||||
min-width: 200px;
|
||||
border-right: 1px solid var(--border);
|
||||
overflow-y: auto;
|
||||
}
|
||||
.column:last-child { border-right: none; }
|
||||
.column-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 6px 12px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
border-bottom: 1px solid var(--border);
|
||||
user-select: none;
|
||||
}
|
||||
.column-row:hover { background: var(--hover-bg); }
|
||||
.column-row.selected { background: var(--selection); color: #fff; }
|
||||
.column-hint { flex: 2; display: flex; align-items: center; justify-content: center; }
|
||||
.column-empty { color: var(--text-secondary); font-size: 12px; }
|
||||
.col-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.column-info-panel { padding: 20px; text-align: center; }
|
||||
.column-info-name { font-size: 14px; font-weight: 600; margin-bottom: 12px; word-break: break-all; }
|
||||
.column-info-row { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
|
||||
.file-area.column-view { overflow-x: auto; }
|
||||
.column { min-width: 180px; max-width: 280px; }
|
||||
|
||||
/* 状态栏 */
|
||||
.finder-statusbar {
|
||||
height: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 14px;
|
||||
background: var(--header-bg);
|
||||
border-top: 1px solid var(--border);
|
||||
font-size: 11px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* 空状态 */
|
||||
.empty-state {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
text-align: center;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
|
||||
.empty-title { font-size: 15px; margin-bottom: 4px; font-weight: 500; color: var(--text); opacity: 0.7; }
|
||||
.empty-hint { font-size: 12px; }
|
||||
|
||||
/* 拖拽蒙层 */
|
||||
.drop-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(10,132,255,0.15);
|
||||
backdrop-filter: blur(8px);
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 999;
|
||||
pointer-events: none;
|
||||
border: 3px dashed var(--selection);
|
||||
}
|
||||
.drop-box {
|
||||
background: var(--window-bg);
|
||||
padding: 32px 48px;
|
||||
border-radius: 12px;
|
||||
text-align: center;
|
||||
box-shadow: var(--shadow);
|
||||
pointer-events: auto;
|
||||
}
|
||||
.drop-icon { font-size: 48px; margin-bottom: 8px; }
|
||||
.drop-text { font-size: 14px; color: var(--text); }
|
||||
|
||||
/* 选框 */
|
||||
.selection-rect {
|
||||
position: fixed;
|
||||
border: 1px solid var(--selection);
|
||||
background: var(--selection-bg);
|
||||
border-radius: 2px;
|
||||
pointer-events: none;
|
||||
z-index: 998;
|
||||
}
|
||||
|
||||
/* ===== 右键菜单 ===== */
|
||||
.context-menu {
|
||||
position: fixed;
|
||||
min-width: 200px;
|
||||
background: var(--window-bg);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.1);
|
||||
padding: 4px;
|
||||
z-index: 1000;
|
||||
backdrop-filter: blur(30px) saturate(180%);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.cm-item {
|
||||
padding: 7px 12px;
|
||||
font-size: 13px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
color: var(--text);
|
||||
}
|
||||
.cm-item:hover { background: var(--selection); color: #fff; }
|
||||
.cm-item.danger { color: var(--danger); }
|
||||
.cm-item.danger:hover { background: var(--danger); color: #fff; }
|
||||
.cm-sep {
|
||||
height: 1px;
|
||||
background: var(--border);
|
||||
margin: 4px 8px;
|
||||
}
|
||||
|
||||
/* ===== 弹窗 ===== */
|
||||
.modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 2000;
|
||||
}
|
||||
.modal-backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgba(0,0,0,0.3);
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
.modal-content {
|
||||
position: relative;
|
||||
background: var(--window-bg);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
|
||||
padding: 20px 24px;
|
||||
min-width: 360px;
|
||||
max-width: 520px;
|
||||
max-height: 80vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.modal-title {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 14px;
|
||||
color: var(--text);
|
||||
}
|
||||
.modal-body {
|
||||
font-size: 13px;
|
||||
color: var(--text);
|
||||
line-height: 1.6;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.modal-body label {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 6px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.modal-body label:first-child { margin-top: 0; }
|
||||
.modal-body input, .modal-body select {
|
||||
width: 100%;
|
||||
padding: 7px 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 5px;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-size: 13px;
|
||||
}
|
||||
.modal-body input:focus, .modal-body select:focus { border-color: var(--selection); }
|
||||
|
||||
.modal-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
}
|
||||
.modal-footer .btn-primary, .modal-footer .btn-ghost {
|
||||
width: auto;
|
||||
min-width: 72px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* 简介 */
|
||||
.info-row {
|
||||
display: flex;
|
||||
padding: 4px 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 12px;
|
||||
}
|
||||
.info-row:last-child { border-bottom: none; }
|
||||
.info-label {
|
||||
width: 80px;
|
||||
color: var(--text-secondary);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.info-value {
|
||||
flex: 1;
|
||||
color: var(--text);
|
||||
overflow-wrap: break-word;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
/* 分享输出 */
|
||||
.share-output { margin-top: 8px; }
|
||||
.share-title { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
|
||||
.share-url-box {
|
||||
padding: 8px 10px;
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 5px;
|
||||
font-size: 11px;
|
||||
font-family: 'SF Mono', Menlo, monospace;
|
||||
color: var(--text);
|
||||
word-break: break-all;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
/* 图片预览 */
|
||||
.modal-content.image-preview {
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
padding: 0;
|
||||
min-width: auto;
|
||||
max-width: 90vw;
|
||||
max-height: 90vh;
|
||||
overflow: visible;
|
||||
}
|
||||
.modal-content.image-preview img {
|
||||
max-width: 90vw;
|
||||
max-height: 85vh;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
|
||||
transition: transform 0.08s ease-out;
|
||||
cursor: zoom-in;
|
||||
}
|
||||
.modal-close {
|
||||
position: absolute;
|
||||
top: -10px;
|
||||
right: -10px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
background: var(--window-bg);
|
||||
color: var(--text);
|
||||
font-size: 14px;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 10;
|
||||
}
|
||||
.modal-close:hover { background: var(--selection); color: #fff; }
|
||||
|
||||
/* ===== Toast ===== */
|
||||
.toast {
|
||||
position: fixed;
|
||||
bottom: 24px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: var(--window-bg);
|
||||
color: var(--text);
|
||||
padding: 10px 20px;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,0.15);
|
||||
font-size: 13px;
|
||||
z-index: 9999;
|
||||
display: none;
|
||||
align-items: center;
|
||||
border: 1px solid var(--border);
|
||||
backdrop-filter: blur(20px);
|
||||
}
|
||||
.toast-success { border-left: 3px solid #28c840; }
|
||||
.toast-error { border-left: 3px solid var(--danger); }
|
||||
.toast-info { border-left: 3px solid var(--selection); }
|
||||
|
||||
/* 滚动条 */
|
||||
::-webkit-scrollbar { width: 8px; height: 8px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }
|
||||
:root.theme-dark ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
|
||||
:root.theme-dark ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.finder-sidebar { width: 140px; }
|
||||
.list-row { grid-template-columns: minmax(180px, 1fr) 80px 140px 80px; font-size: 11px; }
|
||||
.search-box input { width: 120px; }
|
||||
}
|
||||
Reference in New Issue
Block a user