280 lines
4.2 KiB
CSS
280 lines
4.2 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--bg: #151719;
|
|
--panel: #24282b;
|
|
--panel-2: #1b1f22;
|
|
--line: #3c4246;
|
|
--text: #e8ecef;
|
|
--muted: #9ba6ad;
|
|
--green: #34d058;
|
|
--amber: #f2b84b;
|
|
--red: #f25f5c;
|
|
--cyan: #39b7d7;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-width: 1040px;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
button,
|
|
textarea,
|
|
input {
|
|
font: inherit;
|
|
}
|
|
|
|
.cnc-shell {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
grid-template-rows: 54px 1fr;
|
|
}
|
|
|
|
.top-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 18px;
|
|
background: #101214;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.brand {
|
|
font-weight: 700;
|
|
font-size: 22px;
|
|
color: var(--cyan);
|
|
}
|
|
|
|
.status-strip {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.status {
|
|
min-width: 92px;
|
|
height: 30px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid var(--line);
|
|
background: #202428;
|
|
color: var(--green);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.status.alarm {
|
|
color: var(--red);
|
|
}
|
|
|
|
.machine-panel {
|
|
display: grid;
|
|
grid-template-columns: 290px minmax(480px, 1fr) 390px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.left-panel,
|
|
.right-panel,
|
|
.center-panel {
|
|
min-height: 0;
|
|
border-right: 1px solid var(--line);
|
|
background: var(--panel);
|
|
}
|
|
|
|
.center-panel {
|
|
display: grid;
|
|
grid-template-rows: 1fr 58px;
|
|
background: #111416;
|
|
}
|
|
|
|
.right-panel {
|
|
border-right: 0;
|
|
display: grid;
|
|
grid-template-rows: 42px 1fr 150px;
|
|
}
|
|
|
|
.dro {
|
|
padding: 16px;
|
|
background: var(--panel-2);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.dro-row {
|
|
display: grid;
|
|
grid-template-columns: 34px 1fr;
|
|
align-items: baseline;
|
|
height: 48px;
|
|
border-bottom: 1px solid #30363a;
|
|
}
|
|
|
|
.dro-row:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.dro-row span {
|
|
color: var(--amber);
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.dro-row output {
|
|
text-align: right;
|
|
font-family: "Courier New", monospace;
|
|
font-size: 28px;
|
|
color: #f5f7f8;
|
|
}
|
|
|
|
.meters {
|
|
display: grid;
|
|
gap: 18px;
|
|
padding: 18px 16px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.meters label {
|
|
display: grid;
|
|
gap: 8px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.meters input {
|
|
width: 100%;
|
|
}
|
|
|
|
.keypad {
|
|
padding: 16px;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
button {
|
|
height: 44px;
|
|
border: 1px solid #565f65;
|
|
border-radius: 4px;
|
|
background: #30363a;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
button:hover {
|
|
background: #3a4248;
|
|
}
|
|
|
|
button.cycle {
|
|
background: #205f37;
|
|
border-color: #2d8a4e;
|
|
}
|
|
|
|
button.stop {
|
|
background: #7a2726;
|
|
border-color: #a83a38;
|
|
}
|
|
|
|
#toolpathCanvas {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
background: #090b0c;
|
|
}
|
|
|
|
.soft-keys {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, 1fr);
|
|
gap: 8px;
|
|
padding: 8px;
|
|
border-top: 1px solid var(--line);
|
|
background: #1b1f22;
|
|
}
|
|
|
|
.program-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
padding: 0 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: var(--panel-2);
|
|
color: var(--amber);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.backend-select {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.backend-select select {
|
|
height: 26px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 4px;
|
|
background: #101214;
|
|
color: var(--text);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
height: 100%;
|
|
resize: none;
|
|
border: 0;
|
|
outline: none;
|
|
padding: 14px;
|
|
background: #121517;
|
|
color: #e5f5e9;
|
|
font-family: "Courier New", monospace;
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.alarm-list {
|
|
overflow: auto;
|
|
padding: 10px 12px;
|
|
border-top: 1px solid var(--line);
|
|
background: #1a1d20;
|
|
color: var(--muted);
|
|
font-family: "Courier New", monospace;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.alarm-line {
|
|
padding: 4px 0;
|
|
border-bottom: 1px solid #2a3034;
|
|
}
|
|
|
|
.alarm-line.error {
|
|
color: var(--red);
|
|
}
|
|
|
|
@media (max-width: 1180px) {
|
|
body {
|
|
min-width: 0;
|
|
}
|
|
|
|
.machine-panel {
|
|
grid-template-columns: 260px 1fr;
|
|
}
|
|
|
|
.right-panel {
|
|
grid-column: 1 / -1;
|
|
min-height: 360px;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
}
|