This commit is contained in:
oneao committed 2026-04-29 21:54:37 +08:00
1 parent 3620369d47
commit 217838c615
11 files changed
+1268 -1022

No files matched your search

+1 -227
View File
@@ -6,7 +6,7 @@
border: 1px solid #eef0f2;
border-radius: 8px;
--g3-z-dropdown: 100;
--g3-z-modal: 200;
--g3-z-toast: 300;
--g3-z-task: 400;
--g3-z-lock: 500;
@@ -907,230 +907,4 @@
display: block;
}
/* ============================================================================
Modal 样式
============================================================================ */
.g3-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: var(--g3-z-modal);
display: none;
align-items: center;
justify-content: center;
}
.g3-modal-overlay.is-visible {
display: flex;
}
.g3-modal {
width: 90%;
height: 90%;
background: #ffffff;
border-radius: 8px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
display: flex;
flex-direction: column;
overflow: hidden;
transition:
transform 0.3s ease,
opacity 0.3s ease;
transform: scale(0.95);
opacity: 0;
}
.g3-modal-overlay.is-visible .g3-modal {
transform: scale(1);
opacity: 1;
}
.g3-modal.is-maximized {
width: 100%;
height: 100%;
max-width: none;
border-radius: 0;
}
.g3-modal-header {
height: 48px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
background: #fafbfc;
border-bottom: 1px solid #eef0f2;
flex-shrink: 0;
}
.g3-modal-title {
font-size: 14px;
font-weight: 500;
color: #333;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.g3-modal-actions {
display: flex;
align-items: center;
gap: 4px;
}
.g3-modal-btn {
width: 32px;
height: 32px;
border: none;
background: transparent;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: background-color 0.2s ease;
color: #666;
}
.g3-modal-btn:hover {
background: #f0f2f5;
color: #333;
}
.g3-modal-btn-close:hover {
background: #ff4d4f;
color: #fff;
}
.g3-modal-body {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.g3-modal-preview-toolbar {
height: 48px;
display: flex;
align-items: center;
padding: 0 16px;
background: #ffffff;
border-bottom: 1px solid #eef0f2;
flex-shrink: 0;
}
.g3-modal-preview-nav {
display: flex;
align-items: center;
gap: 12px;
}
.g3-modal-preview-nav .g3-modal-preview-counter {
font-size: 14px;
color: #666;
font-weight: 500;
min-width: 50px;
text-align: center;
}
.g3-modal-preview-filename {
font-size: 14px;
color: #333;
font-weight: 500;
margin-left: 16px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.g3-modal-preview-btn {
width: 32px;
height: 32px;
border: 1px solid #d9d9d9;
border-radius: 4px;
background: #ffffff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
padding: 0;
color: #666;
}
.g3-modal-preview-btn:hover:not(:disabled) {
border-color: #165dff;
background: rgba(22, 93, 255, 0.05);
color: #165dff;
}
.g3-modal-preview-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.g3-modal-preview-content {
flex: 1;
position: relative;
padding: 20px;
overflow: auto;
background: #fafbfc;
}
.g3-modal-preview-content .g3-modal-preview-placeholder {
text-align: center;
color: #999;
font-size: 24px;
}
.g3-modal-preview-content .g3-modal-preview-iframe {
width: 100%;
height: 100%;
border: none;
margin: 0;
padding: 0;
background: #ffffff;
position: absolute;
top: 0;
left: 0;
transition: opacity 0.3s ease;
}
.g3-modal-preview-content .g3-modal-preview-iframe.current {
opacity: 1;
z-index: 1;
}
.g3-modal-preview-content .g3-modal-preview-iframe.next {
opacity: 0;
z-index: 2;
}
.g3-modal-footer {
display: none;
height: 48px;
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0 16px;
background: #fafbfc;
border-top: 1px solid #eef0f2;
flex-shrink: 0;
visibility: hidden;
height: 0;
padding: 0;
border-top: none;
}
.g3-modal-footer.has-content {
display: flex;
visibility: visible;
height: 48px;
padding: 0 16px;
border-top: 1px solid #eef0f2;
}