Download css/style.css from WACATW/newpan: direct link, hf CLI and curl.
- Browser
- Download file 13.2 kB
-
https://huggingface.co/spaces/WACATW/newpan/resolve/main/css/style.css
- Command line
-
hf download hf://spaces/WACATW/newpan/css/style.css
-
curl -L -o style.css https://huggingface.co/spaces/WACATW/newpan/resolve/main/css/style.css
13.2 kB
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; | |
| background-color: #f5f7fa; | |
| color: #333; | |
| height: 100vh; | |
| overflow: hidden; | |
| } | |
| .app-container { | |
| display: flex; | |
| flex-direction: column; | |
| height: 100vh; | |
| } | |
| /* 顶部导航栏 */ | |
| .app-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 12px 20px; | |
| background: #fff; | |
| border-bottom: 1px solid #e8e8e8; | |
| box-shadow: 0 2px 4px rgba(0,0,0,0.05); | |
| z-index: 100; | |
| } | |
| .header-left .logo { | |
| font-size: 18px; | |
| font-weight: 600; | |
| color: #1890ff; | |
| } | |
| .header-center { | |
| flex: 1; | |
| padding: 0 20px; | |
| } | |
| .breadcrumb { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: 14px; | |
| color: #666; | |
| } | |
| .breadcrumb-item { | |
| cursor: pointer; | |
| padding: 4px 8px; | |
| border-radius: 4px; | |
| transition: background 0.2s; | |
| } | |
| .breadcrumb-item:hover { | |
| background: #f0f0f0; | |
| } | |
| .breadcrumb-item.active { | |
| color: #1890ff; | |
| font-weight: 500; | |
| } | |
| .breadcrumb-separator { | |
| color: #ccc; | |
| } | |
| .header-right { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| /* 按钮样式 */ | |
| .btn { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| padding: 8px 16px; | |
| border: 1px solid #d9d9d9; | |
| border-radius: 6px; | |
| background: #fff; | |
| color: #333; | |
| font-size: 14px; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| } | |
| .btn:hover { | |
| border-color: #1890ff; | |
| color: #1890ff; | |
| } | |
| .btn-primary { | |
| background: #1890ff; | |
| border-color: #1890ff; | |
| color: #fff; | |
| } | |
| .btn-primary:hover { | |
| background: #40a9ff; | |
| border-color: #40a9ff; | |
| color: #fff; | |
| } | |
| .btn-danger { | |
| background: #ff4d4f; | |
| border-color: #ff4d4f; | |
| color: #fff; | |
| } | |
| .btn-danger:hover { | |
| background: #ff7875; | |
| border-color: #ff7875; | |
| color: #fff; | |
| } | |
| .btn-icon { | |
| padding: 8px; | |
| width: 36px; | |
| height: 36px; | |
| justify-content: center; | |
| } | |
| .btn-sm { | |
| padding: 4px 12px; | |
| font-size: 13px; | |
| } | |
| .btn-close { | |
| background: none; | |
| border: none; | |
| font-size: 24px; | |
| cursor: pointer; | |
| color: #999; | |
| line-height: 1; | |
| } | |
| .btn-close:hover { | |
| color: #333; | |
| } | |
| /* 主内容区 */ | |
| .app-main { | |
| display: flex; | |
| flex: 1; | |
| overflow: hidden; | |
| } | |
| /* 侧边栏 */ | |
| .sidebar { | |
| width: 240px; | |
| background: #fff; | |
| border-right: 1px solid #e8e8e8; | |
| overflow-y: auto; | |
| padding: 16px 0; | |
| } | |
| .sidebar-section { | |
| padding: 0 16px 16px; | |
| border-bottom: 1px solid #f0f0f0; | |
| margin-bottom: 16px; | |
| } | |
| .sidebar-section:last-child { | |
| border-bottom: none; | |
| } | |
| .sidebar-section h3 { | |
| font-size: 13px; | |
| color: #999; | |
| margin-bottom: 12px; | |
| font-weight: 500; | |
| } | |
| .folder-tree { | |
| font-size: 14px; | |
| } | |
| .folder-tree-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 8px 10px; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| transition: background 0.2s; | |
| margin-bottom: 2px; | |
| } | |
| .folder-tree-item:hover { | |
| background: #f5f5f5; | |
| } | |
| .folder-tree-item.active { | |
| background: #e6f7ff; | |
| color: #1890ff; | |
| } | |
| .folder-tree-item .folder-icon { | |
| font-size: 16px; | |
| } | |
| .folder-tree-children { | |
| margin-left: 20px; | |
| } | |
| .storage-info { | |
| font-size: 13px; | |
| } | |
| .storage-bar { | |
| height: 8px; | |
| background: #f0f0f0; | |
| border-radius: 4px; | |
| overflow: hidden; | |
| margin-bottom: 8px; | |
| } | |
| .storage-used { | |
| height: 100%; | |
| background: linear-gradient(90deg, #1890ff, #36cfc9); | |
| border-radius: 4px; | |
| transition: width 0.3s; | |
| } | |
| .storage-text { | |
| color: #666; | |
| font-size: 12px; | |
| } | |
| /* 主内容区 */ | |
| .main-content { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 20px; | |
| position: relative; | |
| } | |
| /* 上传区域 */ | |
| .upload-area { | |
| border: 2px dashed #d9d9d9; | |
| border-radius: 8px; | |
| padding: 40px; | |
| text-align: center; | |
| margin-bottom: 20px; | |
| transition: all 0.3s; | |
| background: #fafafa; | |
| } | |
| .upload-area.drag-over { | |
| border-color: #1890ff; | |
| background: #e6f7ff; | |
| } | |
| .upload-placeholder .upload-icon { | |
| font-size: 48px; | |
| margin-bottom: 16px; | |
| } | |
| .upload-placeholder p { | |
| color: #666; | |
| margin-bottom: 8px; | |
| } | |
| .upload-hint { | |
| font-size: 13px; | |
| color: #999; | |
| } | |
| /* 文件列表 - 列表视图 */ | |
| .file-list.list-view { | |
| background: #fff; | |
| border-radius: 8px; | |
| overflow: hidden; | |
| box-shadow: 0 1px 2px rgba(0,0,0,0.05); | |
| } | |
| .file-list-header { | |
| display: grid; | |
| grid-template-columns: 1fr 120px 150px 120px; | |
| padding: 12px 16px; | |
| background: #fafafa; | |
| border-bottom: 1px solid #f0f0f0; | |
| font-size: 13px; | |
| color: #666; | |
| font-weight: 500; | |
| } | |
| .file-item { | |
| display: grid; | |
| grid-template-columns: 1fr 120px 150px 120px; | |
| padding: 12px 16px; | |
| border-bottom: 1px solid #f5f5f5; | |
| align-items: center; | |
| cursor: pointer; | |
| transition: background 0.2s; | |
| } | |
| .file-item:hover { | |
| background: #fafafa; | |
| } | |
| .file-item:last-child { | |
| border-bottom: none; | |
| } | |
| .file-name { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .file-icon { | |
| font-size: 20px; | |
| } | |
| .file-name-text { | |
| font-size: 14px; | |
| color: #333; | |
| } | |
| .file-size, .file-date, .file-actions { | |
| font-size: 13px; | |
| color: #999; | |
| } | |
| .file-actions { | |
| display: flex; | |
| gap: 8px; | |
| opacity: 0; | |
| transition: opacity 0.2s; | |
| } | |
| .file-item:hover .file-actions { | |
| opacity: 1; | |
| } | |
| .action-btn { | |
| padding: 4px 8px; | |
| border: none; | |
| background: none; | |
| cursor: pointer; | |
| font-size: 13px; | |
| color: #666; | |
| border-radius: 4px; | |
| transition: all 0.2s; | |
| } | |
| .action-btn:hover { | |
| background: #f0f0f0; | |
| color: #1890ff; | |
| } | |
| .action-btn.delete:hover { | |
| color: #ff4d4f; | |
| } | |
| /* 文件列表 - 图标视图 */ | |
| .file-list.grid-view { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); | |
| gap: 16px; | |
| } | |
| .grid-view .file-item { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| padding: 20px 12px; | |
| background: #fff; | |
| border-radius: 8px; | |
| border: 2px solid transparent; | |
| box-shadow: 0 1px 3px rgba(0,0,0,0.08); | |
| } | |
| .grid-view .file-item:hover { | |
| border-color: #1890ff; | |
| background: #fff; | |
| } | |
| .grid-view .file-icon { | |
| font-size: 48px; | |
| margin-bottom: 12px; | |
| } | |
| .grid-view .file-name-text { | |
| font-size: 13px; | |
| text-align: center; | |
| word-break: break-all; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 2; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .grid-view .file-size, | |
| .grid-view .file-date, | |
| .grid-view .file-actions { | |
| display: none; | |
| } | |
| /* 空状态 */ | |
| .empty-state { | |
| text-align: center; | |
| padding: 80px 20px; | |
| color: #999; | |
| } | |
| .empty-icon { | |
| font-size: 64px; | |
| margin-bottom: 16px; | |
| opacity: 0.5; | |
| } | |
| .empty-state p { | |
| margin-bottom: 8px; | |
| } | |
| .empty-hint { | |
| font-size: 13px; | |
| color: #bbb; | |
| } | |
| /* 弹窗样式 */ | |
| .modal { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: rgba(0,0,0,0.5); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 1000; | |
| } | |
| .modal-content { | |
| background: #fff; | |
| border-radius: 8px; | |
| width: 500px; | |
| max-height: 80vh; | |
| display: flex; | |
| flex-direction: column; | |
| box-shadow: 0 4px 20px rgba(0,0,0,0.15); | |
| } | |
| .modal-small { | |
| width: 400px; | |
| } | |
| .modal-large { | |
| width: 700px; | |
| } | |
| .modal-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 16px 20px; | |
| border-bottom: 1px solid #f0f0f0; | |
| } | |
| .modal-header h3 { | |
| font-size: 16px; | |
| font-weight: 600; | |
| } | |
| .modal-body { | |
| padding: 20px; | |
| flex: 1; | |
| overflow-y: auto; | |
| } | |
| .modal-footer { | |
| display: flex; | |
| justify-content: flex-end; | |
| gap: 12px; | |
| padding: 16px 20px; | |
| border-top: 1px solid #f0f0f0; | |
| } | |
| /* 表单样式 */ | |
| .form-input { | |
| width: 100%; | |
| padding: 10px 12px; | |
| border: 1px solid #d9d9d9; | |
| border-radius: 6px; | |
| font-size: 14px; | |
| transition: border-color 0.2s; | |
| } | |
| .form-input:focus { | |
| outline: none; | |
| border-color: #1890ff; | |
| box-shadow: 0 0 0 2px rgba(24,144,255,0.2); | |
| } | |
| .form-input-sm { | |
| padding: 6px 10px; | |
| font-size: 13px; | |
| } | |
| /* 文件编辑器 */ | |
| .editor-toolbar { | |
| display: flex; | |
| gap: 12px; | |
| margin-bottom: 12px; | |
| align-items: center; | |
| } | |
| .editor-toolbar .form-input { | |
| flex: 1; | |
| } | |
| .file-editor { | |
| width: 100%; | |
| height: 400px; | |
| padding: 12px; | |
| border: 1px solid #d9d9d9; | |
| border-radius: 6px; | |
| font-family: 'Consolas', 'Monaco', monospace; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| resize: none; | |
| } | |
| .file-editor:focus { | |
| outline: none; | |
| border-color: #1890ff; | |
| box-shadow: 0 0 0 2px rgba(24,144,255,0.2); | |
| } | |
| /* 上传进度 */ | |
| .upload-progress-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 16px; | |
| } | |
| .upload-progress-item { | |
| padding: 12px; | |
| background: #fafafa; | |
| border-radius: 6px; | |
| } | |
| .upload-file-name { | |
| font-size: 14px; | |
| margin-bottom: 8px; | |
| color: #333; | |
| } | |
| .upload-progress-bar { | |
| height: 6px; | |
| background: #e8e8e8; | |
| border-radius: 3px; | |
| overflow: hidden; | |
| margin-bottom: 6px; | |
| } | |
| .upload-progress-fill { | |
| height: 100%; | |
| background: #1890ff; | |
| border-radius: 3px; | |
| transition: width 0.3s; | |
| } | |
| .upload-progress-text { | |
| font-size: 12px; | |
| color: #999; | |
| display: flex; | |
| justify-content: space-between; | |
| } | |
| .upload-status { | |
| font-size: 12px; | |
| } | |
| .upload-status.success { | |
| color: #52c41a; | |
| } | |
| .upload-status.error { | |
| color: #ff4d4f; | |
| } | |
| /* 分享弹窗 */ | |
| .share-hint { | |
| font-size: 13px; | |
| color: #52c41a; | |
| margin-bottom: 16px; | |
| } | |
| .share-link-box { | |
| display: flex; | |
| gap: 8px; | |
| margin-bottom: 16px; | |
| } | |
| .share-link-box .form-input { | |
| flex: 1; | |
| background: #f5f5f5; | |
| } | |
| .share-info { | |
| padding: 12px; | |
| background: #fafafa; | |
| border-radius: 6px; | |
| font-size: 13px; | |
| color: #666; | |
| } | |
| .share-info p { | |
| margin-bottom: 4px; | |
| } | |
| .share-info p:last-child { | |
| margin-bottom: 0; | |
| } | |
| /* 加载状态 */ | |
| .loading-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: rgba(255,255,255,0.8); | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 2000; | |
| } | |
| .loading-spinner { | |
| width: 40px; | |
| height: 40px; | |
| border: 3px solid #f0f0f0; | |
| border-top-color: #1890ff; | |
| border-radius: 50%; | |
| animation: spin 0.8s linear infinite; | |
| margin-bottom: 16px; | |
| } | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| .loading-overlay p { | |
| color: #666; | |
| font-size: 14px; | |
| } | |
| /* Toast 提示 */ | |
| .toast { | |
| position: fixed; | |
| top: 20px; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| padding: 12px 24px; | |
| background: rgba(0,0,0,0.8); | |
| color: #fff; | |
| border-radius: 6px; | |
| font-size: 14px; | |
| z-index: 3000; | |
| animation: slideDown 0.3s ease; | |
| } | |
| @keyframes slideDown { | |
| from { | |
| opacity: 0; | |
| transform: translateX(-50%) translateY(-20px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateX(-50%) translateY(0); | |
| } | |
| } | |
| .toast.success { | |
| background: rgba(82, 196, 26, 0.9); | |
| } | |
| .toast.error { | |
| background: rgba(255, 77, 79, 0.9); | |
| } | |
| /* 响应式设计 */ | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| display: none; | |
| } | |
| .header-right .btn span { | |
| display: none; | |
| } | |
| .header-right .btn { | |
| padding: 8px; | |
| width: 36px; | |
| height: 36px; | |
| justify-content: center; | |
| } | |
| .file-list-header { | |
| grid-template-columns: 1fr 80px; | |
| } | |
| .file-item { | |
| grid-template-columns: 1fr 80px; | |
| } | |
| .file-date { | |
| display: none; | |
| } | |
| .file-actions { | |
| opacity: 1; | |
| } | |
| .modal-content { | |
| width: 90%; | |
| margin: 20px; | |
| } | |
| } | |
| /* 右键菜单 */ | |
| .context-menu { | |
| position: fixed; | |
| background: #fff; | |
| border-radius: 6px; | |
| box-shadow: 0 2px 12px rgba(0,0,0,0.15); | |
| padding: 6px 0; | |
| min-width: 140px; | |
| z-index: 1500; | |
| display: none; | |
| } | |
| .context-menu-item { | |
| padding: 8px 16px; | |
| font-size: 14px; | |
| cursor: pointer; | |
| transition: background 0.2s; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .context-menu-item:hover { | |
| background: #f5f5f5; | |
| } | |
| .context-menu-item.danger { | |
| color: #ff4d4f; | |
| } | |
| .context-menu-divider { | |
| height: 1px; | |
| background: #f0f0f0; | |
| margin: 4px 0; | |
| } | |