This commit is contained in:
oneao committed 2026-04-27 22:11:59 +08:00
1 parent 3a951f764c
commit ae6ccad238
6 files changed
+2963 -1175

No files matched your search

+156 -31
View File
@@ -1,21 +1,27 @@
/* ============================================================================
* G3File 样式文件
* ============================================================================ */
/* 整体布局 */
.g3-file-container {
height: 100%;
display: flex;
flex-direction: column;
background: #ffffff;
overflow: hidden;
}
/* 拖拽时的样式 */
.g3-file-container.drag-over {
background: rgba(22, 93, 255, 0.05);
border: 2px dashed #165dff;
}
/* 头部样式 */
.g3-file-container .header {
display: flex;
align-items: center;
padding: 10px 14px;
background: #fafbfc;
border-bottom: 1px solid #eef0f2;
}
@@ -25,18 +31,12 @@
flex: 1;
min-height: 0;
padding: 4px 0px;
overflow: auto;
display: flex;
flex-wrap: wrap;
align-content: flex-start;
border-left: 1px solid #eef0f2;
border-right: 1px solid #eef0f2;
/* justify-content: center; */
}
.g3-file-container .main > * {
@@ -60,9 +60,7 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
background: #fafbfc;
border-top: 1px solid #eee;
}
@@ -115,11 +113,9 @@
transition: all 0.2s ease;
border: none;
width: auto;
height: 28px;
line-height: 1;
padding: 0 15px;
display: flex;
align-items: center;
justify-content: center;
@@ -155,11 +151,9 @@
width: calc(50% - 26px);
position: relative;
cursor: pointer;
border: 1px solid #eef0f2;
border-radius: 8px;
background: #fff;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
@@ -228,7 +222,6 @@
font-size: 12px;
color: #999;
line-height: 1.4;
display: flex;
flex-direction: column;
align-items: center;
@@ -258,7 +251,6 @@
display: flex;
align-items: center;
justify-content: flex-end;
overflow: hidden;
border-top: 1px solid #f0f2f5;
}
@@ -270,7 +262,6 @@
align-items: center;
justify-content: center;
gap: 4px;
cursor: pointer;
font-size: 12px;
border-right: 1px solid #f0f2f5;
@@ -368,6 +359,45 @@
z-index: 1;
}
/* 上传中标记 */
.g3-file-item .g3-file-uploading-badge {
position: absolute;
top: 6px;
right: 6px;
background: #165dff;
color: white;
font-size: 10px;
padding: 2px 6px;
border-radius: 10px;
z-index: 1;
}
/* 上传失败标记 */
.g3-file-item .g3-file-failed-badge {
position: absolute;
top: 6px;
right: 6px;
background: #ff4d4f;
color: white;
font-size: 10px;
padding: 2px 6px;
border-radius: 10px;
z-index: 1;
}
/* 上传成功标记 */
.g3-file-item .g3-file-uploaded-badge {
position: absolute;
top: 6px;
right: 6px;
background: #52c41a;
color: white;
font-size: 10px;
padding: 2px 6px;
border-radius: 10px;
z-index: 1;
}
/* 浮动删除按钮 */
.g3-file-container .g3-file-delete-btn {
position: absolute;
@@ -385,7 +415,6 @@
z-index: 100;
font-size: 12px;
border: 1px solid #e8e8e8;
transition: all 0.2s ease;
}
@@ -404,14 +433,12 @@
.g3-global-menu {
position: absolute;
z-index: 9999;
width: 160px;
background: #fff;
border: 1px solid #eee;
border-radius: 8px;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
position: fixed; /* ⭐必须,不然一定会错位 */
position: fixed;
visibility: hidden;
pointer-events: none;
}
@@ -474,7 +501,7 @@
border-radius: 8px 8px 0 0;
}
.task-dock .dock-header .title {
.task-dock .dock-header .dock-title {
font-size: 14px;
font-weight: 500;
color: #333;
@@ -528,12 +555,6 @@
text-overflow: ellipsis;
}
.task-dock .task-type {
font-size: 12px;
color: #999;
margin-bottom: 12px;
}
.task-dock .bar {
width: 100%;
height: 6px;
@@ -556,6 +577,110 @@
text-align: right;
}
/* 通知容器 */
.notification-container {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
z-index: 9999;
}
/* 通知样式 */
.notification {
min-width: 300px;
max-width: 400px;
background: #ffffff;
border: 1px solid #eef0f2;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
padding: 16px;
display: flex;
align-items: flex-start;
justify-content: space-between;
pointer-events: auto;
transition: all 0.3s ease;
}
/* 通知内容 */
.notification-content {
flex: 1;
}
/* 通知标题 */
.notification-title {
font-size: 14px;
font-weight: 500;
color: #333;
margin-bottom: 8px;
}
/* 通知消息 */
.notification-message {
font-size: 14px;
color: #666;
line-height: 1.4;
}
/* 关闭按钮 */
.notification-close {
width: 24px;
height: 24px;
border: none;
background: transparent;
color: #666;
font-size: 16px;
cursor: pointer;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
margin-left: 12px;
transition: all 0.2s ease;
flex-shrink: 0;
}
.notification-close:hover {
background: #f0f2f5;
color: #333;
}
/* 通知类型样式 */
.notification-success {
border-left: 4px solid #52c41a;
}
.notification-warning {
border-left: 4px solid #faad14;
}
.notification-error {
border-left: 4px solid #ff4d4f;
}
.notification-info {
border-left: 4px solid #165dff;
}
/* 通知动画 */
@keyframes slideIn {
from {
transform: translateX(100%) translateY(100%);
opacity: 0;
}
to {
transform: translateX(0) translateY(0);
opacity: 1;
}
}
.notification-fade-out {
opacity: 0;
transform: translateY(-10px);
}
/* UI Lock 样式 */
.ui-lock {
position: fixed;
@@ -566,4 +691,4 @@
background: rgba(0, 0, 0, 0.05);
z-index: 9998;
display: none;
}
}