feat: establish reproducible FreeCAD web compatibility baseline
This commit is contained in:
277
src/styles.css
277
src/styles.css
@@ -1,21 +1,21 @@
|
||||
:root {
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
color: #e5e9eb;
|
||||
background: #0f1317;
|
||||
color: #e8eaed;
|
||||
background: #202225;
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
--bg: #0f1317;
|
||||
--bg-raised: #151a1f;
|
||||
--bg-panel: #191f24;
|
||||
--bg-soft: #20272d;
|
||||
--bg-hover: #252e35;
|
||||
--line: #2b343b;
|
||||
--line-soft: #232b31;
|
||||
--text: #e5e9eb;
|
||||
--text-soft: #a5afb5;
|
||||
--text-muted: #707c83;
|
||||
--cyan: #5ed6d6;
|
||||
--cyan-soft: #203c40;
|
||||
--bg: #202225;
|
||||
--bg-raised: #292c30;
|
||||
--bg-panel: #303338;
|
||||
--bg-soft: #383c42;
|
||||
--bg-hover: #41464d;
|
||||
--line: #50545a;
|
||||
--line-soft: #3e4248;
|
||||
--text: #e8eaed;
|
||||
--text-soft: #c1c5ca;
|
||||
--text-muted: #8f969e;
|
||||
--cyan: #67a8df;
|
||||
--cyan-soft: #263f57;
|
||||
--green: #73d6a3;
|
||||
--green-soft: #203b31;
|
||||
--amber: #efbe72;
|
||||
@@ -24,7 +24,7 @@
|
||||
--red-soft: #452a2c;
|
||||
--violet: #b9a4ec;
|
||||
--blue: #8cbff1;
|
||||
--radius: 6px;
|
||||
--radius: 4px;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
@@ -35,43 +35,43 @@ button { color: inherit; }
|
||||
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
|
||||
|
||||
.app-shell { min-height: 100vh; background: var(--bg); }
|
||||
.topbar { height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #11161a; position: relative; z-index: 3; }
|
||||
.brand-lockup { display: flex; align-items: center; gap: 9px; width: 174px; cursor: pointer; user-select: none; }
|
||||
.brand-mark { width: 25px; height: 25px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-items: end; }
|
||||
.topbar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 8px; border-bottom: 1px solid #151719; background: #26292d; position: relative; z-index: 30; box-shadow: inset 0 -1px rgba(255,255,255,.035); }
|
||||
.brand-lockup { display: flex; align-items: center; gap: 7px; min-width: 187px; padding-right: 10px; border-right: 1px solid var(--line-soft); cursor: pointer; user-select: none; }
|
||||
.brand-mark { width: 18px; height: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; align-items: end; }
|
||||
.brand-mark span { display: block; border-radius: 2px 2px 1px 1px; background: var(--cyan); }
|
||||
.brand-mark span:nth-child(1) { height: 11px; opacity: .55; }
|
||||
.brand-mark span:nth-child(2) { height: 18px; }
|
||||
.brand-mark span:nth-child(3) { height: 25px; opacity: .75; }
|
||||
.brand-name { font-size: 13px; font-weight: 750; letter-spacing: .03em; line-height: 15px; }
|
||||
.brand-product { color: var(--text-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; line-height: 12px; }
|
||||
.brand-mark span:nth-child(1) { height: 8px; opacity: .55; }
|
||||
.brand-mark span:nth-child(2) { height: 13px; }
|
||||
.brand-mark span:nth-child(3) { height: 18px; opacity: .75; }
|
||||
.brand-name { font-size: 11px; font-weight: 650; line-height: 14px; }
|
||||
.brand-product { display: none; }
|
||||
.top-menu { display: flex; align-items: center; gap: 1px; }
|
||||
.menu-wrapper { position: relative; }
|
||||
.top-menu button { border: 0; background: transparent; color: var(--text-soft); font-size: 12px; padding: 8px 9px; border-radius: 4px; cursor: pointer; }
|
||||
.top-menu button { height: 27px; border: 0; background: transparent; color: var(--text-soft); font-size: 11px; padding: 0 8px; border-radius: 2px; cursor: pointer; }
|
||||
.top-menu button:hover { background: var(--bg-hover); color: var(--text); }
|
||||
.top-menu button.is-open { background: var(--bg-soft); color: var(--text); }
|
||||
.menu-popover { position: absolute; top: 35px; left: 0; z-index: 20; min-width: 205px; padding: 5px; border: 1px solid var(--line); border-radius: 4px; background: #171d22; box-shadow: 0 14px 28px rgba(0,0,0,.35); }
|
||||
.menu-popover button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px 9px; border-radius: 3px; text-align: left; color: var(--text-soft); font-size: 11px; }
|
||||
.menu-popover { position: absolute; top: 29px; left: 0; z-index: 40; min-width: 230px; padding: 4px; border: 1px solid #666b72; border-radius: 2px; background: #303338; box-shadow: 0 8px 22px rgba(0,0,0,.48); }
|
||||
.menu-popover button { width: 100%; height: 27px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 9px; border-radius: 2px; text-align: left; color: var(--text-soft); font-size: 11px; }
|
||||
.menu-popover button:hover { background: var(--bg-hover); color: var(--text); }
|
||||
.menu-popover kbd { color: var(--text-muted); font-size: 9px; white-space: nowrap; }
|
||||
.topbar-spacer { flex: 1; }
|
||||
.topbar-context { display: flex; align-items: center; gap: 12px; margin-right: 4px; white-space: nowrap; }
|
||||
.topbar-context { display: flex; align-items: center; gap: 10px; margin-right: 3px; white-space: nowrap; }
|
||||
.context-document { font-size: 12px; color: var(--text-soft); }
|
||||
.context-dot, .save-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; margin-right: 7px; background: var(--cyan); vertical-align: 1px; }
|
||||
.context-separator { color: var(--text-muted); margin: 0 7px; }
|
||||
.save-state { color: var(--amber); font-size: 11px; }
|
||||
.save-dot { background: var(--amber); }
|
||||
.topbar-divider, .toolbar-divider { width: 1px; height: 22px; background: var(--line); margin: 0 3px; }
|
||||
.icon-button { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--text-muted); cursor: pointer; padding: 0; }
|
||||
.icon-button { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 2px; background: transparent; color: var(--text-soft); cursor: pointer; padding: 0; }
|
||||
.icon-button:hover { color: var(--text); background: var(--bg-hover); border-color: var(--line); }
|
||||
.icon-button.is-active { color: var(--cyan); background: var(--cyan-soft); border-color: #2e6768; }
|
||||
.icon-button:disabled { opacity: .35; cursor: not-allowed; }
|
||||
.command-search { height: 30px; min-width: 172px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 10px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 4px; color: var(--text-muted); font-size: 11px; cursor: pointer; }
|
||||
.command-search { height: 26px; min-width: 162px; display: flex; align-items: center; gap: 7px; padding: 0 7px 0 9px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 2px; color: var(--text-muted); font-size: 10px; cursor: pointer; }
|
||||
.command-search:hover { color: var(--text); border-color: #466067; }
|
||||
.command-search kbd { margin-left: auto; color: var(--text-muted); font-size: 10px; border: 1px solid var(--line); border-radius: 3px; padding: 2px 4px; }
|
||||
.avatar-button { height: 30px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-raised); color: var(--text-soft); padding: 0 8px; cursor: pointer; font-size: 10px; }
|
||||
.avatar-button { height: 26px; display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg-raised); color: var(--text-soft); padding: 0 7px; cursor: pointer; font-size: 9px; }
|
||||
.avatar-button:hover { border-color: #466067; color: var(--text); }
|
||||
|
||||
.page-shell { min-height: calc(100vh - 56px); overflow: auto; }
|
||||
.page-shell { min-height: calc(100vh - 34px); overflow: auto; }
|
||||
.page-content { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 56px 0 44px; }
|
||||
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
|
||||
.page-heading { max-width: 690px; }
|
||||
@@ -381,6 +381,10 @@ button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px s
|
||||
.property-link-sub > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.property-link-sub .icon-button { width: 24px; height: 24px; flex: 0 0 24px; }
|
||||
.property-topology-candidates { min-width: 0; max-width: 112px; }
|
||||
.property-link-sub-list { align-items: flex-start; }
|
||||
.property-link-sub-items { display: grid; min-width: 0; flex: 1; gap: 3px; }
|
||||
.property-link-sub-item { display: flex; min-width: 0; align-items: center; gap: 4px; }
|
||||
.property-link-sub-item > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.topology-repair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 8px 0 0 34px; }
|
||||
.property-color { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 9px; }
|
||||
.property-color input { width: 22px; height: 18px; padding: 0; border: 1px solid var(--line); border-radius: 2px; background: transparent; }
|
||||
@@ -407,6 +411,10 @@ button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px s
|
||||
.property-placement-grid span { color: var(--text-muted); font-size: 10px; }
|
||||
.property-placement-grid input, .property-vector input { min-width: 0; width: 100%; height: 24px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); padding: 2px 4px; }
|
||||
.multi-transform-editor { width: 100%; display: grid; gap: 7px; margin-bottom: 12px; }
|
||||
.task-link-list { max-height: 142px; display: grid; gap: 4px; margin: -7px 0 12px; padding: 7px 8px; overflow: auto; border: 1px solid var(--line); border-radius: 3px; background: var(--bg-raised); }
|
||||
.task-link-list .check-row { min-height: 22px; margin: 0; }
|
||||
.task-vector-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: -4px 0 6px; }
|
||||
.task-vector-fields label { display: grid; gap: 3px; color: var(--text-muted); font-size: 10px; text-transform: uppercase; }
|
||||
.multi-transform-step { width: 100%; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-soft); padding: 7px; }
|
||||
.multi-transform-step-head { display: grid; grid-template-columns: minmax(42px, 1fr) minmax(82px, 1.4fr) 24px; gap: 5px; align-items: center; color: var(--text-muted); font-size: 10px; }
|
||||
.multi-transform-step-head select, .multi-transform-fields input, .multi-transform-fields select { min-width: 0; width: 100%; height: 25px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg-raised); color: var(--text); padding: 0 5px; font-size: 10px; }
|
||||
@@ -420,3 +428,210 @@ button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px s
|
||||
.multi-transform-add:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
|
||||
.multi-transform-add:disabled { opacity: .4; cursor: default; }
|
||||
.property-vector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; }
|
||||
|
||||
/* Native FreeCAD workspace chrome */
|
||||
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(10, 11, 13, .66); }
|
||||
.freecad-dialog { width: min(440px, 100%); overflow: hidden; border: 1px solid #737980; border-radius: 3px; background: var(--bg-panel); box-shadow: 0 20px 70px rgba(0, 0, 0, .58); }
|
||||
.freecad-dialog.is-wide { width: min(610px, 100%); }
|
||||
.dialog-titlebar { height: 32px; display: flex; align-items: center; justify-content: space-between; padding-left: 10px; border-bottom: 1px solid var(--line); background: #292c30; color: var(--text); font-size: 11px; font-weight: 600; }
|
||||
.dialog-title-icon { width: 23px; display: grid; place-items: center; color: var(--cyan); }
|
||||
.dialog-titlebar > span:nth-child(2) { flex: 1; }
|
||||
.dialog-close { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-left: 1px solid var(--line-soft); background: transparent; color: var(--text-soft); cursor: pointer; }
|
||||
.dialog-close:hover { color: #fff; background: var(--red-soft); }
|
||||
.dialog-subtitle { padding: 8px 11px; border-bottom: 1px solid var(--line-soft); background: #34373c; color: var(--text-muted); font-size: 10px; }
|
||||
.dialog-body { min-height: 126px; display: flex; align-items: flex-start; gap: 15px; padding: 24px 22px; }
|
||||
.dialog-mark { width: 49px; height: 49px; flex: 0 0 49px; display: grid; place-items: center; border: 1px solid #52779b; border-radius: 3px; background: var(--cyan-soft); color: var(--cyan); }
|
||||
.dialog-body h2 { margin: 1px 0 7px; font-size: 16px; font-weight: 650; }
|
||||
.dialog-body p { margin: 0 0 7px; color: var(--text-soft); font-size: 11px; line-height: 1.45; }
|
||||
.dialog-body .dialog-muted { color: var(--text-muted); font-size: 10px; }
|
||||
.dialog-footer { display: flex; justify-content: flex-end; padding: 9px 10px; border-top: 1px solid var(--line); background: var(--bg-raised); }
|
||||
.dialog-footer .button { min-width: 76px; min-height: 28px; }
|
||||
.dialog-form { display: grid; gap: 10px; padding: 16px 13px 20px; }
|
||||
.dialog-form label { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(170px, 1.4fr); align-items: center; gap: 12px; color: var(--text-soft); font-size: 10px; }
|
||||
.dialog-form select { height: 28px; min-width: 0; padding: 0 7px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg-raised); color: var(--text); font-size: 10px; }
|
||||
.dialog-form .dialog-check { display: flex; gap: 7px; }
|
||||
.dialog-check input { accent-color: var(--cyan); }
|
||||
.command-palette { padding: 10px; }
|
||||
.command-palette-input { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid #6685a0; border-radius: 2px; background: #202327; color: var(--text-muted); }
|
||||
.command-palette-input input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
|
||||
.command-palette-list { max-height: 330px; margin-top: 7px; overflow: auto; border: 1px solid var(--line-soft); }
|
||||
.command-palette-list button { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 5px 9px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
|
||||
.command-palette-list button:last-child { border-bottom: 0; }
|
||||
.command-palette-list button:hover, .command-palette-list button:focus { outline: 0; background: var(--cyan-soft); }
|
||||
.command-palette-list strong, .command-palette-list small { display: block; }
|
||||
.command-palette-list strong { font-size: 10px; font-weight: 600; }
|
||||
.command-palette-list small { margin-top: 3px; color: var(--text-muted); font-size: 8px; }
|
||||
.command-palette-list kbd { color: var(--text-muted); font-size: 9px; }
|
||||
.command-palette-empty { padding: 22px 9px; color: var(--text-muted); font-size: 10px; text-align: center; }
|
||||
.macro-dialog { padding: 18px 14px; }
|
||||
.macro-status { display: flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 10px; }
|
||||
.macro-dialog p { margin: 12px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.55; }
|
||||
.dialog-warning { display: flex; align-items: flex-start; gap: 9px; padding: 20px 14px; color: var(--amber); font-size: 10px; line-height: 1.5; }
|
||||
.dialog-warning svg { flex: 0 0 auto; }
|
||||
.button-danger { border-color: var(--red); background: var(--red); color: #281112; }
|
||||
.button-danger:hover { border-color: #f29a97; background: #f29a97; }
|
||||
.tree-context-menu { position: fixed; z-index: 90; width: 214px; display: grid; padding: 4px; border: 1px solid #666b72; border-radius: 2px; background: #303338; box-shadow: 0 9px 24px rgba(0, 0, 0, .48); }
|
||||
.tree-context-menu button { min-height: 27px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 0 7px; border: 0; border-radius: 2px; background: transparent; color: var(--text-soft); text-align: left; font-size: 10px; cursor: pointer; }
|
||||
.tree-context-menu button:hover, .tree-context-menu button:focus { outline: 0; background: var(--bg-hover); color: var(--text); }
|
||||
.tree-context-menu button.is-danger { color: var(--red); }
|
||||
.tree-context-menu kbd { color: var(--text-muted); font-size: 8px; }
|
||||
.context-separator-line { height: 1px; margin: 3px 5px; background: var(--line-soft); }
|
||||
|
||||
.workspace-page { height: calc(100vh - 34px); min-height: 600px; background: #25282c; }
|
||||
.standard-toolbar { height: 38px; gap: 3px; padding: 0 7px; background: #303338; box-shadow: inset 0 -1px rgba(0, 0, 0, .18); }
|
||||
.workbench-picker { height: 28px; min-width: 167px; gap: 6px; padding: 0 6px 0 8px; border-color: #586a7b; border-radius: 2px; background: #343a41; color: var(--cyan); }
|
||||
.workbench-picker select { min-width: 112px; font-size: 11px; }
|
||||
.toolbar-status { padding: 0 7px; }
|
||||
.workbench-commandbar { height: 53px; flex: 0 0 53px; display: flex; align-items: stretch; gap: 0; padding: 2px 5px 0; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid var(--line); background: #292c30; }
|
||||
.command-tool-group { height: 49px; flex: 0 0 auto; display: grid; grid-template-rows: 31px 14px; align-items: center; padding: 1px 5px 0; border-right: 1px solid var(--line-soft); }
|
||||
.command-tool-group:last-child { border-right: 0; }
|
||||
.command-tool-buttons { display: flex; align-items: center; gap: 1px; }
|
||||
.command-tool-buttons button { width: 29px; height: 29px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 2px; background: transparent; color: var(--text-soft); cursor: pointer; }
|
||||
.command-tool-buttons button:hover:not(:disabled) { color: #fff; border-color: #60666e; background: var(--bg-hover); }
|
||||
.command-tool-buttons button:active:not(:disabled) { background: var(--cyan-soft); color: var(--cyan); }
|
||||
.command-tool-buttons button:disabled { opacity: .28; cursor: not-allowed; }
|
||||
.command-tool-label { max-width: 180px; overflow: hidden; color: var(--text-muted); font-size: 8px; line-height: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.document-tabs { height: 32px; padding: 0 6px; background: #202225; }
|
||||
.doc-tab { height: 29px; border-radius: 2px 2px 0 0; }
|
||||
.document-meta { padding-bottom: 7px; }
|
||||
.workspace-content { grid-template-columns: 310px minmax(0, 1fr) 238px; background: #202225; }
|
||||
.workspace-content.combo-collapsed { grid-template-columns: minmax(0, 1fr) 238px; }
|
||||
.workspace-content.selection-collapsed { grid-template-columns: 310px minmax(0, 1fr); }
|
||||
.workspace-content.combo-collapsed.selection-collapsed { grid-template-columns: minmax(0, 1fr); }
|
||||
.left-panel, .right-panel { background: #303338; }
|
||||
.panel-tabs { height: 32px; background: #292c30; }
|
||||
.panel-tabs button { padding: 0 10px; font-size: 10px; }
|
||||
.combo-model { height: calc(100% - 32px); }
|
||||
.combo-panel > .task-panel { height: calc(100% - 32px); }
|
||||
.combo-panel > .task-panel .task-actions-top { position: sticky; top: 0; z-index: 2; background: #292c30; }
|
||||
.tree-toolbar { padding: 7px 7px 5px; }
|
||||
.tree-search { height: 25px; border-radius: 2px; }
|
||||
.tree-document-row, .tree-row { min-height: 25px; height: 25px; }
|
||||
.tree-footer { padding: 8px 10px 9px; }
|
||||
.combo-property { min-height: 200px; }
|
||||
.combo-property .property-heading { min-height: 48px; padding: 8px 9px 6px; }
|
||||
.property-heading h2 { margin-top: 3px; font-size: 12px; }
|
||||
.property-tabs { height: 28px; }
|
||||
.combo-property .properties-scroll { max-height: calc(100% - 76px); }
|
||||
.property-group { padding: 0 8px 7px; }
|
||||
.property-group-title { padding: 8px 0 5px; }
|
||||
.property-row { min-height: 25px; }
|
||||
.task-actions-top { justify-content: flex-start; padding: 7px 8px; }
|
||||
.task-actions-top .button { min-height: 27px; min-width: 64px; }
|
||||
.task-header { padding: 10px 9px; }
|
||||
.task-body { padding: 11px 9px 18px; }
|
||||
.task-step { padding-bottom: 11px; margin-bottom: 12px; }
|
||||
.field-label { margin-bottom: 11px; }
|
||||
.field-input { height: 27px; margin-top: 4px; border-radius: 2px; }
|
||||
.viewport-region { background: #181a1d; }
|
||||
.viewport-header { height: 34px; padding: 0 8px; background: rgba(40, 43, 47, .93); }
|
||||
.viewport-title { flex-direction: row; align-items: center; gap: 8px; }
|
||||
.viewport-title .eyebrow { padding-right: 8px; border-right: 1px solid var(--line); }
|
||||
.viewport-actions .icon-button { width: 27px; height: 27px; }
|
||||
.viewport-grid { cursor: default; }
|
||||
.three-viewport-host { pointer-events: auto; }
|
||||
.three-viewport-host canvas { cursor: default; }
|
||||
.view-chip { background: rgba(41, 44, 48, .9); border-color: #555a61; border-radius: 2px; }
|
||||
|
||||
.selection-panel { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-left: 1px solid var(--line); }
|
||||
.selection-panel-title { min-height: 51px; display: flex; align-items: flex-start; justify-content: space-between; padding: 9px 8px 7px; border-bottom: 1px solid var(--line); background: #292c30; }
|
||||
.selection-panel-title h2 { max-width: 165px; margin: 4px 0 0; overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.selection-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 18px; color: var(--text-muted); text-align: center; }
|
||||
.selection-empty span { color: var(--text-soft); font-size: 11px; }
|
||||
.selection-empty small { font-size: 9px; line-height: 1.45; }
|
||||
.selection-content { min-height: 0; display: flex; flex: 1; flex-direction: column; overflow: auto; padding-bottom: 9px; }
|
||||
.selection-summary { display: flex; align-items: center; gap: 8px; padding: 10px 9px; border-bottom: 1px solid var(--line-soft); }
|
||||
.selection-object-icon { width: 29px; height: 29px; display: grid; flex: 0 0 29px; place-items: center; border: 1px solid #52779b; border-radius: 2px; background: var(--cyan-soft); color: var(--cyan); }
|
||||
.selection-summary strong, .selection-summary span { display: block; max-width: 172px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.selection-summary strong { font-size: 10px; }
|
||||
.selection-summary span { margin-top: 3px; color: var(--text-muted); font-size: 9px; }
|
||||
.selection-table { display: grid; padding: 5px 9px; }
|
||||
.selection-table > div { min-height: 25px; display: grid; grid-template-columns: 43% 57%; align-items: center; border-bottom: 1px solid var(--line-soft); font-size: 9px; }
|
||||
.selection-table span { color: var(--text-muted); }
|
||||
.selection-table strong { min-width: 0; overflow: hidden; color: var(--text-soft); font-weight: 500; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.selection-section-title { padding: 9px 9px 5px; color: var(--text-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
|
||||
.selection-elements { display: grid; gap: 2px; padding: 0 6px; }
|
||||
.selection-elements button { min-height: 25px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 2px; background: transparent; color: var(--text-soft); font-size: 9px; cursor: pointer; }
|
||||
.selection-elements button:hover { background: var(--bg-hover); color: var(--text); }
|
||||
.selection-elements small { color: var(--text-muted); }
|
||||
.selection-no-elements { padding: 10px 4px; color: var(--text-muted); font-size: 9px; }
|
||||
.selection-clear { margin: auto 8px 0; min-height: 27px; font-size: 9px; }
|
||||
.bottom-drawer { height: 31px; background: #303338; }
|
||||
.bottom-drawer.is-open { height: 108px; }
|
||||
.bottom-drawer-header { height: 30px; }
|
||||
.bottom-drawer-content { padding: 4px 9px 7px; }
|
||||
.report-line { min-height: 27px; }
|
||||
.freecad-statusbar { height: 22px; flex: 0 0 22px; display: flex; align-items: center; gap: 13px; padding: 0 8px; border-top: 1px solid #151719; background: #292c30; color: var(--text-muted); font-size: 9px; }
|
||||
.freecad-statusbar > span:not(.status-message):not(.status-spacer):not(.status-ready) { padding-left: 10px; border-left: 1px solid var(--line-soft); }
|
||||
|
||||
/* FreeCAD CAM workbench */
|
||||
.menu-popover-cam { width: 256px; max-height: min(72vh, 650px); overflow-y: auto; }
|
||||
.menu-popover .menu-group-start { position: relative; height: auto; min-height: 48px; margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
|
||||
.menu-popover .menu-group-start:first-child { margin-top: 0; border-top: 0; }
|
||||
.menu-section-label { position: absolute; top: 5px; left: 9px; color: var(--text-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
|
||||
.cam-job-panel { height: calc(100% - 32px); min-height: 0; display: grid; grid-template-rows: minmax(180px, 1fr) minmax(150px, .72fr); }
|
||||
.cam-tree { min-height: 0; padding: 5px 4px 10px; overflow: auto; border-bottom: 1px solid var(--line); }
|
||||
.cam-tree-row { width: 100%; min-height: 25px; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto auto; align-items: center; gap: 4px; padding: 2px 5px; border: 0; border-radius: 2px; background: transparent; color: var(--text-soft); text-align: left; font-size: 10px; cursor: pointer; }
|
||||
.cam-tree-row:hover, .cam-tree-row.is-selected { background: var(--bg-hover); color: var(--text); }
|
||||
.cam-tree-row.is-selected { outline: 1px solid #4c6c72; outline-offset: -1px; }
|
||||
.cam-tree-row > small { max-width: 92px; overflow: hidden; color: var(--text-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.cam-tree-children { padding-left: 12px; }
|
||||
.cam-tree-group { min-height: 23px; display: flex; align-items: center; justify-content: space-between; margin-top: 3px; padding: 0 6px; color: var(--text-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
|
||||
.cam-tree-group > span { display: flex; align-items: center; gap: 5px; }
|
||||
.cam-tree-group > small { min-width: 18px; text-align: right; }
|
||||
.cam-state { padding: 1px 4px; border-radius: 2px; color: var(--text-muted); background: #24272b; font-size: 7px; text-transform: uppercase; }
|
||||
.cam-state.generated, .cam-state.pass { color: var(--green); }
|
||||
.cam-state.collision, .cam-state.error { color: var(--red); }
|
||||
.cam-state.draft, .cam-state.warning { color: var(--amber); }
|
||||
.cam-tree-empty { display: grid; gap: 7px; justify-items: start; margin: 8px 20px; color: var(--text-muted); font-size: 9px; }
|
||||
.cam-tree-empty button { border: 0; background: transparent; color: var(--cyan); font-size: 9px; cursor: pointer; }
|
||||
.cam-property-view { min-height: 0; overflow: auto; background: #292c30; }
|
||||
.cam-property-title { min-height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 7px 0 9px; border-bottom: 1px solid var(--line); color: var(--text-soft); font-size: 9px; font-weight: 700; text-transform: uppercase; }
|
||||
.cam-property-title button { width: 23px; height: 23px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; }
|
||||
.cam-property-row { min-height: 25px; display: grid; grid-template-columns: minmax(82px, .85fr) minmax(0, 1.15fr); border-bottom: 1px solid #34383d; font-size: 9px; }
|
||||
.cam-property-row > span, .cam-property-row > strong { min-width: 0; display: flex; align-items: center; padding: 4px 7px; overflow-wrap: anywhere; }
|
||||
.cam-property-row > span { color: var(--text-muted); border-right: 1px solid #34383d; }
|
||||
.cam-property-row > strong { color: var(--text-soft); font-weight: 500; }
|
||||
.cam-task-panel .task-header { position: sticky; top: 0; z-index: 1; background: var(--bg-panel); }
|
||||
.cam-task-summary { display: grid; gap: 5px; margin-bottom: 14px; padding: 8px 9px; border: 1px solid var(--line); background: var(--bg-raised); color: var(--text-muted); font-size: 9px; }
|
||||
.cam-task-summary strong { color: var(--text); font-size: 11px; }
|
||||
.cam-task-command { width: 100%; justify-content: flex-start; margin-bottom: 6px; }
|
||||
.cam-task-section { margin: 17px 0 10px; padding: 5px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-soft); color: var(--text); font-size: 9px; font-weight: 700; text-transform: uppercase; }
|
||||
.cam-tool-json-label { align-items: start; }
|
||||
.cam-tool-json { min-height: 130px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; line-height: 1.35; }
|
||||
.legend-swatch.toolpath { background: #ffd05a; box-shadow: 0 0 0 1px rgba(255, 208, 90, .25); }
|
||||
.status-ready { display: flex; align-items: center; gap: 6px; color: var(--text-soft); }
|
||||
.status-ready .status-pulse { width: 5px; height: 5px; }
|
||||
.status-message { color: var(--text-soft); }
|
||||
.status-spacer { flex: 1; }
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.topbar-context, .command-search { display: none; }
|
||||
.topbar-spacer { flex: 1; }
|
||||
}
|
||||
|
||||
@media (max-width: 1050px) {
|
||||
.brand-lockup { min-width: 152px; }
|
||||
.workspace-content { grid-template-columns: 260px minmax(0, 1fr) 205px; }
|
||||
.workspace-content.combo-collapsed { grid-template-columns: minmax(0, 1fr) 205px; }
|
||||
.workspace-content.selection-collapsed { grid-template-columns: 260px minmax(0, 1fr); }
|
||||
.workspace-content.combo-collapsed.selection-collapsed { grid-template-columns: minmax(0, 1fr); }
|
||||
.selection-panel-title h2, .selection-summary strong, .selection-summary span { max-width: 140px; }
|
||||
}
|
||||
|
||||
@media (max-width: 780px) {
|
||||
.topbar { height: 40px; }
|
||||
.brand-lockup { min-width: 0; border-right: 0; padding-right: 0; }
|
||||
.brand-name { display: none; }
|
||||
.page-shell { min-height: calc(100vh - 40px); }
|
||||
.workspace-page { height: auto; min-height: calc(100vh - 40px); }
|
||||
.workbench-commandbar { height: 48px; flex-basis: 48px; }
|
||||
.command-tool-group { height: 44px; grid-template-rows: 31px 10px; }
|
||||
.command-tool-label { display: none; }
|
||||
.workspace-content, .workspace-content.combo-collapsed, .workspace-content.selection-collapsed, .workspace-content.combo-collapsed.selection-collapsed { display: flex; grid-template-columns: none; }
|
||||
.combo-panel { min-height: 520px; max-height: 620px; order: 2; }
|
||||
.selection-panel { min-height: 245px; max-height: 310px; order: 3; border-left: 0; border-bottom: 1px solid var(--line); }
|
||||
.selection-panel-title h2, .selection-summary strong, .selection-summary span { max-width: calc(100vw - 100px); }
|
||||
.freecad-statusbar { position: sticky; bottom: 0; z-index: 8; }
|
||||
.freecad-statusbar > span:nth-last-child(-n + 2) { display: none; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user