Checkpoint SKF project format and export updates

This commit is contained in:
Formsmith
2026-07-16 12:30:39 +03:00
parent 400c4bf86e
commit 70e45bb966
22 changed files with 3028 additions and 133 deletions
+499 -5
View File
@@ -1965,6 +1965,441 @@ button {
background: #eef8fc;
}
.top-action-heading {
display: grid;
gap: 2px;
}
.top-action-heading > span {
color: #6b7f91;
font-size: 11px;
font-weight: 700;
}
.top-action-panel.export-action-panel,
.top-action-panel.import-action-panel {
width: min(440px, calc(100vw - 28px));
overflow: hidden;
border-color: #d8e1e8;
border-radius: 12px;
box-shadow: 0 18px 55px rgba(19, 37, 55, 0.24);
}
.export-action-panel header,
.import-action-panel header {
height: 52px;
padding: 0 12px 0 15px;
background: #fff;
}
.import-action-panel .top-action-body {
padding: 14px;
background: #f7f9fb;
}
.export-dialog-body {
display: grid;
max-height: calc(100vh - var(--editor-toolbar-height) - 96px);
overflow-y: auto;
background: #f7f9fb;
}
.export-setting-section {
display: grid;
gap: 8px;
padding: 12px 14px;
background: #fff;
border-bottom: 1px solid #e5ebf0;
}
.export-file-section {
grid-template-columns: 72px minmax(0, 1fr);
align-items: center;
}
.export-file-section label,
.export-section-heading strong {
color: #20384d;
font-size: 13px;
font-weight: 800;
}
.export-file-input-wrap {
display: flex;
min-width: 0;
overflow: hidden;
background: #f7f9fb;
border: 1px solid #d9e2e9;
border-radius: 6px;
}
.export-file-input-wrap:focus-within {
background: #fff;
border-color: #10a8d0;
box-shadow: 0 0 0 2px rgba(16, 168, 208, 0.12);
}
.export-file-input {
min-width: 0;
flex: 1;
height: 32px;
padding: 0 2px 0 10px;
color: #263e52;
font: inherit;
font-size: 12px;
font-weight: 750;
background: transparent;
border: 0;
outline: 0;
}
.export-file-input-wrap > span {
display: inline-flex;
flex: none;
align-items: center;
padding: 0 9px 0 4px;
color: #6d8090;
font-size: 11px;
font-weight: 800;
text-transform: lowercase;
}
.export-section-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 14px;
}
.export-section-heading > div {
display: grid;
gap: 3px;
}
.export-section-heading > div > span {
color: #718494;
font-size: 11px;
font-weight: 650;
}
.export-scope-badge {
flex: none;
padding: 4px 8px;
color: #137897;
font-size: 10px;
font-weight: 850;
text-transform: uppercase;
background: #eaf9fd;
border: 1px solid #c5edf7;
border-radius: 999px;
}
.export-format-slider {
position: relative;
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
height: 38px;
padding: 3px;
overflow: hidden;
background: #edf2f5;
border: 1px solid #dbe4eb;
border-radius: 8px;
}
.export-format-slider::before {
position: absolute;
top: 3px;
bottom: 3px;
left: 3px;
width: calc((100% - 6px) / 5);
content: "";
background: #fff;
border: 1px solid #a9dce9;
border-radius: 6px;
box-shadow: 0 2px 7px rgba(27, 65, 89, 0.12);
transition: transform 180ms ease;
}
.export-format-slider[data-format="obj"]::before {
transform: translateX(100%);
}
.export-format-slider[data-format="step"]::before {
transform: translateX(200%);
}
.export-format-slider[data-format="svg"]::before {
transform: translateX(300%);
}
.export-format-slider[data-format="skf"]::before {
transform: translateX(400%);
}
.export-format-slider button {
position: relative;
z-index: 1;
min-width: 0;
padding: 0 5px;
color: #6f8291;
font-size: 11px;
font-weight: 850;
letter-spacing: 0.02em;
background: transparent;
border: 0;
border-radius: 6px;
cursor: pointer;
transition: color 160ms ease;
}
.export-format-slider button:hover {
color: #22546a;
}
.export-format-slider button[aria-checked="true"] {
color: #087f9f;
}
.skf-history-section {
gap: 9px;
}
.skf-history-range-control {
position: relative;
height: 26px;
}
.skf-history-range-control::before,
.skf-history-range-control::after {
position: absolute;
top: 10px;
left: 9px;
height: 6px;
content: "";
border-radius: 999px;
}
.skf-history-range-control::before {
right: 9px;
background: #dbe5eb;
box-shadow: inset 0 1px 2px rgba(40, 65, 82, 0.12);
}
.skf-history-range-control::after {
width: 0;
background: linear-gradient(90deg, #22b9dc, #079bc2);
transition: width 140ms ease;
}
.skf-history-range-control[data-limit="100"]::after {
width: calc(33.333333% - 6px);
}
.skf-history-range-control[data-limit="50"]::after {
width: calc(66.666667% - 12px);
}
.skf-history-range-control[data-limit="30"]::after {
width: calc(100% - 18px);
}
.skf-history-range {
position: absolute;
inset: 0;
z-index: 1;
width: 100%;
height: 26px;
margin: 0;
appearance: none;
background: transparent;
border: 0;
cursor: grab;
}
.skf-history-range:active {
cursor: grabbing;
}
.skf-history-range:focus {
outline: 0;
}
.skf-history-range::-webkit-slider-runnable-track {
height: 6px;
background: transparent;
}
.skf-history-range::-webkit-slider-thumb {
width: 18px;
height: 18px;
margin-top: -6px;
appearance: none;
background: #fff;
border: 2px solid #0ba4ca;
border-radius: 50%;
box-shadow: 0 2px 6px rgba(22, 82, 108, 0.25);
}
.skf-history-range::-moz-range-track {
height: 6px;
background: transparent;
}
.skf-history-range::-moz-range-thumb {
width: 14px;
height: 14px;
background: #fff;
border: 2px solid #0ba4ca;
border-radius: 50%;
box-shadow: 0 2px 6px rgba(22, 82, 108, 0.25);
}
.skf-history-range:focus-visible::-webkit-slider-thumb {
box-shadow: 0 0 0 4px rgba(11, 164, 202, 0.17), 0 2px 6px rgba(22, 82, 108, 0.25);
}
.skf-history-range:focus-visible::-moz-range-thumb {
box-shadow: 0 0 0 4px rgba(11, 164, 202, 0.17), 0 2px 6px rgba(22, 82, 108, 0.25);
}
.skf-history-range-labels {
position: relative;
height: 14px;
margin-top: -3px;
}
.skf-history-range-labels span {
position: absolute;
top: 0;
color: #718494;
font-size: 10px;
font-weight: 750;
transform: translateX(-50%);
transition: color 140ms ease;
}
.skf-history-range-labels span:first-child {
left: 0;
transform: none;
}
.skf-history-range-labels span:nth-child(2) {
left: calc(33.333333% + 3px);
}
.skf-history-range-labels span:nth-child(3) {
left: calc(66.666667% - 3px);
}
.skf-history-range-labels span:last-child {
right: 0;
transform: none;
}
.skf-history-range-labels span.active {
color: #087f9f;
font-weight: 850;
}
.export-format-summary {
display: grid;
gap: 5px;
margin: 10px 14px;
padding: 9px 11px;
background: #eef4f7;
border: 1px solid #dde7ed;
border-radius: 7px;
}
.export-format-summary > div {
display: flex;
align-items: baseline;
gap: 8px;
}
.export-format-summary strong {
color: #1f3c52;
font-size: 12px;
font-weight: 850;
}
.export-format-summary span,
.export-format-summary p {
margin: 0;
color: #627789;
font-size: 11px;
font-weight: 700;
line-height: 1.4;
}
.export-dialog-footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
padding: 10px 14px 12px;
background: #fff;
border-top: 1px solid #e2e9ee;
}
.export-dialog-footer > div {
display: flex;
justify-content: flex-end;
gap: 9px;
}
.export-dialog-footer button {
display: inline-flex;
min-width: 78px;
min-height: 34px;
align-items: center;
justify-content: center;
gap: 7px;
padding: 0 13px;
border-radius: 6px;
cursor: pointer;
font-size: 12px;
font-weight: 850;
}
.export-dialog-footer .export-primary-button {
min-width: 118px;
color: #fff;
background: linear-gradient(180deg, #14b4dc, #0799c1);
border: 1px solid #078daf;
box-shadow: 0 5px 14px rgba(4, 145, 183, 0.22);
}
.export-dialog-footer .export-primary-button:hover:not(:disabled) {
background: linear-gradient(180deg, #0eadd4, #058db2);
}
.export-dialog-footer .export-primary-button:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.export-primary-button svg {
width: 16px;
height: 16px;
}
@media (max-width: 560px) {
.top-action-panel.export-action-panel,
.top-action-panel.import-action-panel {
right: 10px;
width: calc(100vw - 20px);
}
.export-file-section {
grid-template-columns: 1fr;
}
.export-dialog-footer {
align-items: flex-end;
}
}
.top-action-body {
display: grid;
gap: 10px;
@@ -1999,6 +2434,65 @@ button {
background: #eef8fc;
}
.top-action-body .open-skf-project-button {
display: grid;
grid-template-columns: 38px minmax(0, 1fr);
min-height: 66px;
justify-content: stretch;
padding: 10px 12px;
color: #173b5a;
background: #fff;
border-color: #cfe2eb;
border-radius: 8px;
text-align: left;
}
.open-skf-project-button > span:last-child {
display: grid;
gap: 3px;
}
.open-skf-project-button strong,
.open-skf-project-button small {
display: block;
}
.open-skf-project-button small {
color: #667d8e;
font-size: 11px;
font-weight: 700;
line-height: 1.35;
}
.open-skf-project-icon {
display: grid;
width: 34px;
height: 34px;
place-items: center;
color: #087f9f;
background: #eaf9fd;
border: 1px solid #c5edf7;
border-radius: 8px;
}
.import-kind-divider {
display: flex;
align-items: center;
gap: 9px;
color: #7a8c9a;
font-size: 10px;
font-weight: 800;
text-transform: uppercase;
}
.import-kind-divider::before,
.import-kind-divider::after {
height: 1px;
flex: 1;
content: "";
background: #dfe7ed;
}
.top-action-body button svg,
.top-action-body button .vector-toolbar-sprite-icon,
.top-action-body button .toolbar-command-icon {
@@ -2013,16 +2507,16 @@ button {
align-content: center;
justify-items: center;
gap: 8px;
padding: 17px 14px;
padding: 20px 14px;
color: #244057;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 248, 251, 0.96));
border: 1.5px dashed rgba(93, 124, 150, 0.62);
border-radius: 5px;
background: #fff;
border: 1.5px dashed #b8cbd8;
border-radius: 8px;
text-align: center;
}
.top-action-body .import-drop-zone:hover {
background: #fff;
background: #fafeff;
border-color: rgba(0, 159, 227, 0.76);
box-shadow: inset 0 0 0 1px rgba(0, 159, 227, 0.12), 0 4px 14px rgba(30, 50, 70, 0.1);
}