mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:31:12 +08:00
1 parent
d9046af3b0
commit
ecf221c1c0
12 files changed
+1222
-30
No files matched your search
@@ -690,6 +690,237 @@ button:not(:disabled):hover {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.convert-dialog {
|
||||
--convert-format-width: 64px;
|
||||
width: 720px;
|
||||
}
|
||||
|
||||
.convert-dialog .form-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.convert-options {
|
||||
flex: none;
|
||||
display: grid;
|
||||
grid-template-columns: calc(2em + 8px + var(--convert-format-width)) 132px calc(2em + 8px + var(--convert-format-width));
|
||||
gap: 12px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.convert-options:has(#convertDPIRow[hidden]) {
|
||||
grid-template-columns: repeat(2, calc(2em + 8px + var(--convert-format-width)));
|
||||
}
|
||||
|
||||
.convert-options .form-row {
|
||||
gap: 8px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#convertCount {
|
||||
margin-left: auto;
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.convert-table {
|
||||
max-height: 40dvh;
|
||||
min-height: 120px;
|
||||
overflow: auto;
|
||||
border: 1px solid var(--line);
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.convert-table table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.convert-table th,
|
||||
.convert-table td {
|
||||
padding: 8px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.convert-table th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
background: #eef1f4;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.convert-table th:nth-child(2) {
|
||||
width: 112px;
|
||||
}
|
||||
|
||||
.convert-table th:nth-child(3),
|
||||
.convert-table th:nth-child(4) {
|
||||
width: calc(var(--convert-format-width) + 16px);
|
||||
}
|
||||
|
||||
.convert-table select,
|
||||
.convert-table input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
height: var(--control-height);
|
||||
padding: 0 6px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 0;
|
||||
background: #fff;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.convert-table input {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.convert-table th:last-child,
|
||||
.convert-table td:last-child {
|
||||
width: 48px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.convert-table tbody tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.convert-name {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.convert-table tr:has(+ .convert-details) > td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.convert-table .convert-details > td {
|
||||
width: auto;
|
||||
padding-top: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.convert-table .convert-details details {
|
||||
margin: 0;
|
||||
color: var(--text-muted);
|
||||
overflow-wrap: anywhere;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.convert-table .convert-details details[open] > summary {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.convert-messages {
|
||||
max-height: min(180px, 24dvh);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: auto;
|
||||
list-style: none;
|
||||
line-height: 1.5;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.convert-messages > li + li {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.convert-table td[data-status="failed"] {
|
||||
color: #b42318;
|
||||
}
|
||||
|
||||
.convert-table td[data-status="done"] {
|
||||
color: var(--accent-strong);
|
||||
}
|
||||
|
||||
.convert-empty {
|
||||
padding: 28px 12px;
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.convert-progress {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.convert-dialog .form-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.convert-dialog .form-actions .button {
|
||||
min-width: 3.5em;
|
||||
}
|
||||
|
||||
.convert-progress progress {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
#convertStatus {
|
||||
min-height: 1.5em;
|
||||
margin-top: 12px;
|
||||
line-height: 1.5;
|
||||
overflow-wrap: anywhere;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
#convertButton[data-running] {
|
||||
color: var(--accent-strong);
|
||||
background: var(--accent-soft);
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.convert-dialog .form-actions { flex-wrap: wrap; }
|
||||
.convert-options { order: -1; flex-basis: 100%; justify-content: center; margin: 0 0 4px; }
|
||||
#convertClose { margin-left: auto; }
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
.convert-options {
|
||||
grid-template-columns: calc(2em + 8px + var(--convert-format-width)) 132px;
|
||||
}
|
||||
.convert-table table,
|
||||
.convert-table tbody { display: block; }
|
||||
.convert-table thead { display: none; }
|
||||
.convert-table tr {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.convert-table tr:last-child { border-bottom: 0; }
|
||||
.convert-table tr:has(+ .convert-details) { padding-bottom: 0; border-bottom: 0; }
|
||||
.convert-table td { min-width: 0; padding: 0; border: 0; }
|
||||
.convert-table td:first-child { flex: 0 0 calc(100% - var(--convert-format-width) - var(--control-height) - 16px); }
|
||||
.convert-table td:nth-child(4) { order: 1; flex: 0 0 var(--convert-format-width); text-align: right; }
|
||||
.convert-table td:last-child { order: 2; flex: 0 0 var(--control-height); }
|
||||
.convert-table td[data-label] {
|
||||
order: 3;
|
||||
display: grid;
|
||||
grid-template-columns: 2em minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.convert-table td:nth-child(2) { flex: 1 1 0; }
|
||||
.convert-table td:nth-child(3) { flex: 0 0 calc(2em + 8px + var(--convert-format-width)); }
|
||||
.convert-table td[data-label]::before { content: attr(data-label); color: var(--text-muted); }
|
||||
.convert-table .convert-details > td { flex: 0 0 100%; }
|
||||
}
|
||||
|
||||
#sourceTextPanel {
|
||||
width: 440px;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user