2042 lines
44 KiB
TypeScript
2042 lines
44 KiB
TypeScript
import { css } from "lit";
|
|
|
|
/** The editor's own styles: the plan canvas, the side panel with its forms and libraries, the 3D pane and the phone layout. */
|
|
export const editorStyles = css`
|
|
.nf-editor-context{display:grid;gap:8px;padding:10px 12px;border-bottom:1px solid var(--nf-line)}
|
|
.nf-editor-building-row,.nf-editor-floor-nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}
|
|
.nf-editor-building-row>label{display:flex;gap:8px;align-items:center;font-size:12px;min-width:0;flex:1}
|
|
.nf-editor-building-select{font:inherit;color:var(--nf-text);background:var(--nf-chrome-solid);border:1px solid var(--nf-line);border-radius:8px;padding:7px 10px;min-width:0;width:min(100%,480px)}
|
|
.nf-editor-floor-nav{font-size:12px}.nf-editor-floor-nav .nf-editor-move-floor{margin-left:auto;font-size:11px}
|
|
.nf-hierarchy-dialog,.nf-floor-move-dialog{box-sizing:border-box;width:min(1050px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:18px;border:1px solid var(--nf-line);border-radius:14px;color:var(--nf-text);background:var(--nf-chrome-solid,#1c1c1c);box-shadow:0 20px 70px #0008;font:13px/1.4 system-ui}
|
|
.nf-hierarchy-dialog::backdrop,.nf-floor-move-dialog::backdrop{background:#050b16a6;backdrop-filter:blur(3px)}
|
|
.nf-hierarchy-dialog>header,.nf-floor-move-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.nf-hierarchy-dialog h2,.nf-floor-move-dialog h2{font-size:17px;margin:0}
|
|
.nf-floor-move-dialog{width:min(650px,calc(100vw - 24px))}.nf-floor-move-source{overflow-wrap:anywhere}.nf-floor-move-dialog>.nf-btn{margin-top:16px}
|
|
.nf-room-area-group h4{font-size:11px;color:var(--nf-muted);margin:12px 0 4px}.nf-room-context{font-size:11px;color:var(--nf-muted);margin:4px 0 12px;overflow-wrap:anywhere}
|
|
.nf-value-links h4 { margin: 12px 0; }
|
|
.nf-value-add { min-width: 30px; font-size: 18px; padding: 3px 8px; }
|
|
.nf-value-link { padding: 8px 0; border-bottom: 1px solid var(--nf-line); }
|
|
:host {
|
|
display: block;
|
|
height: 100%;
|
|
}
|
|
.nf-editor {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 320px;
|
|
height: 100%;
|
|
min-height: 0;
|
|
}
|
|
.nf-editor:has(> .nf-side-strip) {
|
|
grid-template-columns: minmax(0, 1fr) 52px;
|
|
}
|
|
.nf-side-strip {
|
|
padding: 10px 6px;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
.nf-strip-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 1px solid var(--nf-line);
|
|
border-radius: 12px;
|
|
background: var(--nf-chrome);
|
|
color: var(--nf-text);
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
}
|
|
.nf-strip-hot {
|
|
border-color: var(--nf-accent);
|
|
color: var(--nf-accent);
|
|
}
|
|
.nf-side-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: min(340px, 60%);
|
|
z-index: 6;
|
|
box-shadow: -12px 0 32px rgba(0, 0, 0, 0.45);
|
|
}
|
|
.nf-pin-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
.nf-3d-size {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
color: var(--nf-muted);
|
|
font-size: 12px;
|
|
}
|
|
.nf-3d-size input {
|
|
width: 58px;
|
|
padding: 4px 6px;
|
|
font: inherit;
|
|
color: var(--nf-text);
|
|
background: var(--nf-chrome-solid);
|
|
border: 1px solid var(--nf-line);
|
|
border-radius: 8px;
|
|
}
|
|
.nf-3d-select {
|
|
font: inherit;
|
|
color: var(--nf-text);
|
|
background: var(--nf-chrome-solid);
|
|
border: 1px solid var(--nf-line);
|
|
border-radius: 999px;
|
|
padding: 4px 10px;
|
|
}
|
|
.nf-editor.nf-narrow {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: minmax(360px, 62vh) auto;
|
|
height: auto;
|
|
}
|
|
.nf-main {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
grid-template-rows: auto 1fr;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
}
|
|
/* a row of tools wider than the plan scrolls inside its pill instead of pushing the plan over the side bar (#67) */
|
|
.nf-toolbar .nf-seg {
|
|
max-width: 100%;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
}
|
|
.nf-toolbar .nf-seg > button {
|
|
flex: none;
|
|
}
|
|
.nf-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: center;
|
|
padding: 10px 12px;
|
|
}
|
|
/* phones: the tools as one dropdown instead of a row of eleven buttons */
|
|
.nf-tool-select {
|
|
font: inherit;
|
|
padding: 8px 10px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--nf-line);
|
|
background: var(--nf-bg2);
|
|
color: var(--nf-text);
|
|
}
|
|
.nf-warn {
|
|
color: var(--nf-warm);
|
|
font-size: 12.5px;
|
|
}
|
|
.nf-picture-group {
|
|
display: grid;
|
|
gap: 6px;
|
|
margin: 6px 0 10px;
|
|
padding: 8px;
|
|
border: 1px solid var(--nf-line);
|
|
border-radius: 10px;
|
|
}
|
|
.nf-picture-group > select {
|
|
min-width: 0;
|
|
}
|
|
.nf-picture-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto auto;
|
|
gap: 6px;
|
|
align-items: center;
|
|
padding: 6px;
|
|
border-radius: 8px;
|
|
background: color-mix(in srgb, var(--nf-line) 40%, transparent);
|
|
}
|
|
.nf-picture-row input[type="url"] {
|
|
grid-column: 1 / -1;
|
|
min-width: 0;
|
|
}
|
|
.nf-picture-row > .nf-sub,
|
|
.nf-picture-row > .nf-picture-camera {
|
|
grid-column: 1 / -1;
|
|
}
|
|
.nf-picture-row.nf-rule-hit {
|
|
outline: 1px solid var(--nf-accent);
|
|
}
|
|
.nf-rule-now {
|
|
grid-column: 1 / -1;
|
|
}
|
|
.nf-rule-hit {
|
|
color: var(--nf-accent);
|
|
}
|
|
.nf-picture-reuse {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
}
|
|
.nf-picture-reuse-btn {
|
|
padding: 2px;
|
|
border: 1px solid var(--nf-line);
|
|
border-radius: 6px;
|
|
background: var(--nf-chrome-solid);
|
|
cursor: pointer;
|
|
}
|
|
.nf-picture-reuse-btn img {
|
|
display: block;
|
|
height: 28px;
|
|
max-width: 60px;
|
|
object-fit: contain;
|
|
}
|
|
.nf-picture-reuse-btn:hover {
|
|
border-color: var(--nf-accent);
|
|
}
|
|
.nf-picture-thumb {
|
|
max-height: 60px;
|
|
max-width: 100%;
|
|
border-radius: 6px;
|
|
justify-self: start;
|
|
}
|
|
.nf-picture-pick {
|
|
justify-self: start;
|
|
}
|
|
.nf-parking-row {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
margin: 4px 0;
|
|
}
|
|
.nf-parking-row input,
|
|
.nf-parking-row select {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.nf-stage-pair {
|
|
display: flex;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
}
|
|
.nf-stage-pair > .nf-canvas-wrap {
|
|
flex: 1 1 var(--nf-split, 55%);
|
|
min-width: 0;
|
|
}
|
|
.nf-split > .nf-canvas-wrap {
|
|
flex: 0 0 var(--nf-split, 55%);
|
|
}
|
|
.nf-split-handle {
|
|
flex: 0 0 8px;
|
|
cursor: col-resize;
|
|
background: var(--nf-line);
|
|
touch-action: none;
|
|
}
|
|
.nf-split-handle:hover {
|
|
background: var(--nf-accent);
|
|
}
|
|
.nf-editor-3d {
|
|
position: relative;
|
|
flex: 1 1 0;
|
|
min-width: 240px;
|
|
min-height: 0;
|
|
border-left: 1px solid var(--nf-line);
|
|
container-type: size;
|
|
container-name: nf;
|
|
}
|
|
.nf-editor-3d nf-view3d {
|
|
display: block;
|
|
height: 100%;
|
|
}
|
|
.nf-3d-walls {
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 10px;
|
|
z-index: 3;
|
|
}
|
|
.nf-3d-bar {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 12px;
|
|
transform: translateX(-50%);
|
|
z-index: 3;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
max-width: calc(100% - 24px);
|
|
padding: 6px 8px 6px 14px;
|
|
border-radius: 999px;
|
|
background: var(--nf-chrome);
|
|
box-shadow: var(--nf-shadow);
|
|
font-size: 13px;
|
|
}
|
|
.nf-danger-chip {
|
|
color: var(--nf-danger, #ff6b7a);
|
|
}
|
|
.nf-narrow .nf-stage-pair.nf-split {
|
|
flex-direction: column;
|
|
}
|
|
.nf-narrow .nf-split > .nf-canvas-wrap {
|
|
flex: 1 1 auto;
|
|
}
|
|
.nf-narrow .nf-editor-3d {
|
|
flex: 0 0 42%;
|
|
min-width: 0;
|
|
border-left: none;
|
|
border-top: 1px solid var(--nf-line);
|
|
}
|
|
.nf-canvas-wrap {
|
|
position: relative;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
background: radial-gradient(ellipse at 50% 35%, var(--nf-bg2), var(--nf-bg) 75%);
|
|
}
|
|
svg.nf-plan {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
touch-action: none;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
cursor: default;
|
|
}
|
|
svg.nf-tool-rect,
|
|
svg.nf-tool-polygon {
|
|
cursor: crosshair;
|
|
}
|
|
.nf-grid-minor {
|
|
stroke: color-mix(in srgb, var(--nf-accent) 5%, transparent);
|
|
stroke-width: 1;
|
|
}
|
|
.nf-grid-major {
|
|
stroke: color-mix(in srgb, var(--nf-soft) 16%, transparent);
|
|
stroke-width: 1;
|
|
}
|
|
.nf-origin {
|
|
fill: color-mix(in srgb, var(--nf-soft) 50%, transparent);
|
|
}
|
|
.nf-ghost {
|
|
fill: none;
|
|
stroke: rgba(138, 155, 184, 0.35);
|
|
stroke-dasharray: 4 4;
|
|
}
|
|
.nf-void {
|
|
fill: rgba(138, 155, 184, 0.12);
|
|
stroke: rgba(138, 155, 184, 0.55);
|
|
stroke-dasharray: 2 3;
|
|
}
|
|
.nf-wall {
|
|
fill: #1b2a47;
|
|
}
|
|
.nf-wall-ext {
|
|
fill: #22345a;
|
|
}
|
|
.nf-room {
|
|
fill: color-mix(in srgb, var(--nf-accent) 5%, transparent);
|
|
stroke: color-mix(in srgb, var(--nf-accent) 75%, transparent);
|
|
stroke-width: 1.5;
|
|
stroke-linejoin: round;
|
|
cursor: pointer;
|
|
}
|
|
.nf-room:hover {
|
|
fill: color-mix(in srgb, var(--nf-accent) 9%, transparent);
|
|
}
|
|
.nf-room-sel {
|
|
fill: color-mix(in srgb, var(--nf-accent) 14%, transparent);
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 2.5;
|
|
}
|
|
.nf-room-name {
|
|
fill: var(--nf-text);
|
|
font: 600 13px var(--nf-title-font);
|
|
text-anchor: middle;
|
|
}
|
|
.nf-room-area {
|
|
fill: var(--nf-muted);
|
|
font: 500 11.5px var(--nf-font);
|
|
text-anchor: middle;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.nf-dim {
|
|
fill: var(--nf-accent);
|
|
font: 600 11.5px var(--nf-font);
|
|
text-anchor: middle;
|
|
font-variant-numeric: tabular-nums;
|
|
paint-order: stroke;
|
|
stroke: var(--nf-bg);
|
|
stroke-width: 3px;
|
|
}
|
|
.nf-vertex circle:not(.nf-hit) {
|
|
fill: var(--nf-bg);
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 2;
|
|
}
|
|
.nf-vertex-sel circle:not(.nf-hit) {
|
|
fill: var(--nf-accent);
|
|
}
|
|
.nf-vertex,
|
|
.nf-mid {
|
|
cursor: grab;
|
|
}
|
|
.nf-hit {
|
|
fill: transparent;
|
|
}
|
|
.nf-mid circle:not(.nf-hit) {
|
|
fill: color-mix(in srgb, var(--nf-soft) 35%, transparent);
|
|
stroke: var(--nf-soft);
|
|
}
|
|
.nf-mid path {
|
|
stroke: var(--nf-text);
|
|
stroke-width: 1.5;
|
|
}
|
|
.nf-draft {
|
|
fill: rgba(255, 181, 71, 0.08);
|
|
stroke: var(--nf-warm);
|
|
stroke-width: 2;
|
|
stroke-dasharray: 6 4;
|
|
}
|
|
polyline.nf-draft {
|
|
fill: none;
|
|
}
|
|
.nf-draft-pt {
|
|
fill: var(--nf-warm);
|
|
}
|
|
.nf-draft-first {
|
|
fill: transparent;
|
|
stroke: var(--nf-warm);
|
|
stroke-width: 2;
|
|
}
|
|
.nf-cursor {
|
|
fill: var(--nf-warm);
|
|
}
|
|
.nf-guide {
|
|
stroke: rgba(255, 95, 210, 0.55);
|
|
stroke-dasharray: 3 5;
|
|
}
|
|
.nf-snap {
|
|
fill: none;
|
|
stroke: #ff5fd2;
|
|
stroke-width: 2;
|
|
}
|
|
.nf-dim {
|
|
font: 600 10px var(--nf-font);
|
|
fill: var(--nf-text);
|
|
paint-order: stroke;
|
|
stroke: rgba(10, 16, 32, 0.85);
|
|
stroke-width: 3px;
|
|
}
|
|
.nf-note rect {
|
|
fill: #ffe58a;
|
|
stroke: #8a6d00;
|
|
stroke-width: 1;
|
|
}
|
|
.nf-note text {
|
|
fill: #3a2e00;
|
|
font: 700 13px var(--nf-font);
|
|
pointer-events: none;
|
|
}
|
|
.nf-note-due rect {
|
|
fill: #ffa726;
|
|
}
|
|
.nf-note-sel rect {
|
|
stroke: var(--nf-accent, #03a9f4);
|
|
stroke-width: 3;
|
|
}
|
|
.nf-note {
|
|
cursor: pointer;
|
|
}
|
|
.nf-keys-open {
|
|
position: absolute;
|
|
right: 12px;
|
|
bottom: 30px;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--nf-line);
|
|
background: var(--nf-chrome, rgba(20, 28, 48, 0.8));
|
|
color: var(--nf-text);
|
|
font: 700 15px var(--nf-font);
|
|
cursor: pointer;
|
|
}
|
|
.nf-keys {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
z-index: 20;
|
|
}
|
|
.nf-keys-card {
|
|
max-width: min(520px, 92%);
|
|
max-height: 85%;
|
|
overflow: auto;
|
|
padding: 14px 18px;
|
|
border-radius: 14px;
|
|
background: var(--nf-surface, #1c1c1c);
|
|
box-shadow: var(--nf-shadow);
|
|
}
|
|
.nf-keys dl {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
gap: 6px 14px;
|
|
margin: 8px 0 0;
|
|
font-size: 13px;
|
|
}
|
|
.nf-keys dt {
|
|
white-space: nowrap;
|
|
}
|
|
.nf-keys dd {
|
|
margin: 0;
|
|
color: var(--nf-muted);
|
|
}
|
|
.nf-keys kbd {
|
|
display: inline-block;
|
|
padding: 1px 6px;
|
|
border-radius: 5px;
|
|
border: 1px solid var(--nf-line);
|
|
font: 600 12px var(--nf-font);
|
|
}
|
|
.nf-tour {
|
|
position: absolute;
|
|
left: 16px;
|
|
bottom: 36px;
|
|
max-width: 340px;
|
|
padding: 12px 16px;
|
|
border-radius: 14px;
|
|
background: var(--nf-surface, #1c1c1c);
|
|
border: 1px solid var(--nf-accent, #03a9f4);
|
|
box-shadow: var(--nf-shadow);
|
|
z-index: 15;
|
|
}
|
|
.nf-tour h3 {
|
|
margin: 2px 0 6px;
|
|
}
|
|
.nf-tour p {
|
|
margin: 0 0 10px;
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
.nf-tour-step {
|
|
font-size: 11px;
|
|
color: var(--nf-muted);
|
|
}
|
|
.nf-hint {
|
|
position: absolute;
|
|
left: 12px;
|
|
right: 12px;
|
|
bottom: 8px;
|
|
margin: 0;
|
|
font-size: 12px;
|
|
color: var(--nf-muted);
|
|
pointer-events: none;
|
|
}
|
|
.nf-side {
|
|
border-left: 1px solid var(--nf-line);
|
|
background: var(--nf-chrome-solid);
|
|
overflow-y: auto;
|
|
padding: 12px 14px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
min-height: 0;
|
|
}
|
|
.nf-narrow .nf-side {
|
|
border-left: none;
|
|
border-top: 1px solid var(--nf-line);
|
|
}
|
|
h3,
|
|
summary {
|
|
margin: 0 0 8px;
|
|
font-size: 11.5px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--nf-muted);
|
|
font-weight: 600;
|
|
}
|
|
summary {
|
|
cursor: pointer;
|
|
margin: 0;
|
|
}
|
|
details[open] > summary {
|
|
margin-bottom: 8px;
|
|
}
|
|
.nf-floor-list,
|
|
.nf-compass {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--nf-line);
|
|
border-radius: 12px;
|
|
}
|
|
.nf-compass-dial {
|
|
width: 96px;
|
|
height: 96px;
|
|
flex: none;
|
|
}
|
|
.nf-compass-ring {
|
|
fill: none;
|
|
stroke: var(--nf-line);
|
|
stroke-width: 1.5;
|
|
}
|
|
.nf-compass-up {
|
|
fill: var(--nf-soft);
|
|
}
|
|
.nf-compass-n {
|
|
fill: var(--nf-accent);
|
|
}
|
|
.nf-compass-s {
|
|
fill: color-mix(in srgb, var(--nf-soft) 55%, transparent);
|
|
}
|
|
.nf-compass-label {
|
|
fill: var(--nf-text);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-anchor: middle;
|
|
}
|
|
.nf-compass-label-s {
|
|
fill: var(--nf-soft);
|
|
}
|
|
.nf-map-settings {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
.nf-map-move {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
.nf-map-arrows {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
.nf-compass-side {
|
|
display: grid;
|
|
gap: 6px;
|
|
flex: 1 1 200px;
|
|
}
|
|
.nf-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
.nf-floor-list .nf-chip {
|
|
box-shadow: none;
|
|
border: 1px solid var(--nf-line);
|
|
}
|
|
.nf-version-actions {
|
|
display: inline-flex;
|
|
gap: 8px;
|
|
white-space: nowrap;
|
|
}
|
|
.nf-diff {
|
|
margin: 2px 0 10px 8px;
|
|
padding-left: 8px;
|
|
border-left: 2px solid color-mix(in srgb, var(--nf-soft, #8a9bb8) 35%, transparent);
|
|
}
|
|
.nf-diff-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 0.9em;
|
|
line-height: 1.5;
|
|
}
|
|
.nf-check-open {
|
|
width: 100%;
|
|
margin: 0 0 8px;
|
|
}
|
|
.nf-check-floor {
|
|
margin: 10px 0 4px;
|
|
font-size: 0.85em;
|
|
color: var(--nf-muted, #8d9bbd);
|
|
}
|
|
.nf-check-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
.nf-check-list li {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
gap: 8px;
|
|
align-items: center;
|
|
padding: 6px 8px;
|
|
border-radius: 8px;
|
|
background: color-mix(in srgb, var(--nf-soft, #8a9bb8) 10%, transparent);
|
|
}
|
|
.nf-check-names {
|
|
grid-column: 1 / -1;
|
|
font-size: 0.85em;
|
|
}
|
|
.nf-check-names ul {
|
|
list-style: none;
|
|
margin: 6px 0;
|
|
padding: 0;
|
|
display: grid;
|
|
gap: 4px;
|
|
}
|
|
.nf-check-names li {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
padding: 2px 0;
|
|
background: none;
|
|
}
|
|
.nf-check-names li small {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--nf-muted, #8d9bbd);
|
|
}
|
|
.nf-check-text {
|
|
font-size: 0.9em;
|
|
line-height: 1.3;
|
|
}
|
|
.nf-check-ok {
|
|
font-size: 1em;
|
|
}
|
|
.nf-studio-view {
|
|
display: block;
|
|
width: 100%;
|
|
max-height: 200px;
|
|
margin: 6px 0 10px;
|
|
background: color-mix(in srgb, var(--nf-soft, #8a9bb8) 10%, transparent);
|
|
border-radius: 8px;
|
|
}
|
|
.nf-studio-glow {
|
|
filter: drop-shadow(0 0 4px rgba(255, 214, 120, 0.8));
|
|
}
|
|
.nf-lib-studio {
|
|
width: 100%;
|
|
margin: 4px 0 8px;
|
|
}
|
|
.nf-form {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
.nf-wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
.nf-room-list {
|
|
display: grid;
|
|
gap: 2px;
|
|
}
|
|
.nf-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
font: inherit;
|
|
color: var(--nf-text);
|
|
background: none;
|
|
border: none;
|
|
border-bottom: 1px solid var(--nf-line);
|
|
padding: 9px 2px;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
.nf-row:hover {
|
|
color: var(--nf-accent);
|
|
}
|
|
.nf-check {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
color: var(--nf-muted);
|
|
}
|
|
.nf-check input {
|
|
accent-color: var(--nf-accent);
|
|
}
|
|
.nf-meter rect {
|
|
fill: #2a2a10;
|
|
stroke: #ffc633;
|
|
stroke-width: 1.5;
|
|
}
|
|
.nf-meter path {
|
|
fill: #ffc633;
|
|
}
|
|
.nf-packages {
|
|
display: grid;
|
|
gap: 6px;
|
|
margin-top: 10px;
|
|
}
|
|
.nf-packages .nf-btn {
|
|
display: grid;
|
|
text-align: left;
|
|
gap: 2px;
|
|
}
|
|
.nf-packages .nf-btn span {
|
|
font-weight: 400;
|
|
font-size: 12px;
|
|
color: var(--nf-muted);
|
|
}
|
|
.nf-arrows {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 52px);
|
|
grid-template-areas: ". up ." "left . right" ". down .";
|
|
gap: 6px;
|
|
justify-content: center;
|
|
}
|
|
.nf-arrows .nf-btn {
|
|
font-size: 20px;
|
|
padding: 6px 0;
|
|
}
|
|
.nf-arrow-up {
|
|
grid-area: up;
|
|
}
|
|
.nf-arrow-left {
|
|
grid-area: left;
|
|
}
|
|
.nf-arrow-right {
|
|
grid-area: right;
|
|
}
|
|
.nf-arrow-down {
|
|
grid-area: down;
|
|
}
|
|
.nf-measure-list {
|
|
margin: 8px 0;
|
|
padding-left: 22px;
|
|
color: var(--nf-muted);
|
|
font-size: 13px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.nf-library {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
|
|
gap: 6px;
|
|
margin-top: 8px;
|
|
}
|
|
.nf-library .nf-btn {
|
|
font-weight: 500;
|
|
font-size: 13px;
|
|
}
|
|
/* the library cards: a picture, the name, size and source, a star, and size chips for a model in several sizes */
|
|
.nf-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
.nf-card {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 14px;
|
|
background: var(--nf-chrome);
|
|
box-shadow: 0 0 0 1px var(--nf-line);
|
|
}
|
|
.nf-card-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
padding: 6px 6px 8px;
|
|
border: 0;
|
|
border-radius: 14px;
|
|
background: none;
|
|
color: var(--nf-text);
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.nf-card-main:hover,
|
|
.nf-card-main:focus-visible {
|
|
background: rgba(127, 127, 127, 0.1);
|
|
outline: none;
|
|
}
|
|
.nf-card-name {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 1.25;
|
|
overflow-wrap: anywhere;
|
|
hyphens: auto;
|
|
}
|
|
.nf-card-meta {
|
|
font-size: 11px;
|
|
color: var(--nf-muted);
|
|
line-height: 1.25;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.nf-card-star {
|
|
position: absolute;
|
|
top: 3px;
|
|
right: 3px;
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 0;
|
|
border-radius: 50%;
|
|
background: rgba(0, 0, 0, 0.25);
|
|
color: var(--nf-muted);
|
|
font-size: 15px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
.nf-card-star[aria-pressed="true"] {
|
|
color: var(--nf-warm, #ffb547);
|
|
}
|
|
.nf-card-sizes {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
padding: 0 6px 8px;
|
|
}
|
|
.nf-size {
|
|
min-width: 34px;
|
|
padding: 3px 6px;
|
|
border: 1px solid var(--nf-line);
|
|
border-radius: 999px;
|
|
background: none;
|
|
color: var(--nf-muted);
|
|
font: inherit;
|
|
font-size: 11px;
|
|
font-variant-numeric: tabular-nums;
|
|
cursor: pointer;
|
|
}
|
|
.nf-size[aria-pressed="true"] {
|
|
border-color: var(--nf-accent);
|
|
color: var(--nf-accent);
|
|
}
|
|
.nf-lib-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 8px;
|
|
}
|
|
.nf-lib-chip {
|
|
min-height: 30px;
|
|
padding: 4px 10px;
|
|
font-size: 12px;
|
|
box-shadow: 0 0 0 1px var(--nf-line);
|
|
}
|
|
.nf-lib-chip[aria-pressed="true"] {
|
|
color: var(--nf-accent);
|
|
box-shadow: 0 0 0 1px var(--nf-accent);
|
|
}
|
|
.nf-lib-all {
|
|
width: 100%;
|
|
margin-top: 12px;
|
|
}
|
|
/* the background picture while it is edited: a dashed frame and a corner handle */
|
|
.nf-bg-frame {
|
|
fill: none;
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 1.5;
|
|
stroke-dasharray: 6 4;
|
|
pointer-events: none;
|
|
}
|
|
.nf-bg-handle {
|
|
fill: var(--nf-accent);
|
|
stroke: #041018;
|
|
stroke-width: 2;
|
|
cursor: nwse-resize;
|
|
}
|
|
.nf-furn-body {
|
|
fill: color-mix(in srgb, var(--nf-soft) 10%, transparent);
|
|
stroke: color-mix(in srgb, var(--nf-soft) 55%, transparent);
|
|
stroke-width: 1.2;
|
|
vector-effect: non-scaling-stroke;
|
|
cursor: grab;
|
|
}
|
|
.nf-furn-sym * {
|
|
fill: none;
|
|
stroke: rgba(150, 175, 255, 0.55);
|
|
stroke-width: 1;
|
|
vector-effect: non-scaling-stroke;
|
|
pointer-events: none;
|
|
}
|
|
.nf-furn-sym .nf-sym-fill {
|
|
fill: color-mix(in srgb, var(--nf-soft) 28%, transparent);
|
|
}
|
|
.nf-furn-sym .nf-sym-dash {
|
|
stroke-dasharray: 6 4;
|
|
}
|
|
.nf-furn-sym .nf-sym-strong {
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 2;
|
|
}
|
|
.nf-out polygon {
|
|
fill: color-mix(in srgb, var(--nf-soft) 6%, transparent);
|
|
stroke: color-mix(in srgb, var(--nf-soft) 40%, transparent);
|
|
stroke-width: 1;
|
|
stroke-dasharray: 4 3;
|
|
cursor: grab;
|
|
}
|
|
.nf-out-lawn polygon,
|
|
.nf-out-bed polygon,
|
|
.nf-out-wild polygon,
|
|
.nf-out-hedge polygon {
|
|
fill: rgba(61, 224, 160, 0.1);
|
|
stroke: rgba(61, 224, 160, 0.5);
|
|
}
|
|
.nf-out-pool polygon,
|
|
.nf-out-river polygon,
|
|
.nf-out-stream polygon {
|
|
fill: color-mix(in srgb, var(--nf-accent) 18%, transparent);
|
|
stroke: var(--nf-accent);
|
|
}
|
|
.nf-out-terrace polygon {
|
|
fill: rgba(150, 130, 255, 0.12);
|
|
}
|
|
.nf-out-street polygon {
|
|
fill: rgba(100, 110, 125, 0.28);
|
|
}
|
|
.nf-out-sidewalk polygon {
|
|
fill: rgba(175, 185, 200, 0.24);
|
|
}
|
|
.nf-out-gravel polygon {
|
|
fill: rgba(184, 163, 130, 0.24);
|
|
stroke: rgba(184, 163, 130, 0.65);
|
|
}
|
|
.nf-out-pavers polygon,
|
|
.nf-out-natural_stone polygon {
|
|
fill: rgba(170, 160, 135, 0.22);
|
|
stroke: rgba(170, 160, 135, 0.6);
|
|
}
|
|
.nf-out-stepping_stones polygon {
|
|
fill: rgba(130, 170, 110, 0.18);
|
|
stroke: rgba(160, 190, 140, 0.55);
|
|
}
|
|
.nf-free-wall {
|
|
cursor: grab;
|
|
}
|
|
.nf-vertex-no {
|
|
fill: var(--nf-accent);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
pointer-events: none;
|
|
}
|
|
.nf-edge-box {
|
|
margin: 12px 0;
|
|
padding: 10px 12px;
|
|
border: 1px solid color-mix(in srgb, var(--nf-accent) 45%, transparent);
|
|
border-radius: 12px;
|
|
background: color-mix(in srgb, var(--nf-accent) 6%, transparent);
|
|
}
|
|
.nf-edge-box > summary {
|
|
cursor: pointer;
|
|
color: var(--nf-accent);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
}
|
|
.nf-edge-box[open] > summary {
|
|
margin-bottom: 8px;
|
|
}
|
|
/* a wall row: name and length, the height, then the buttons (full height, no wall, cut) in one line;
|
|
a split point gets a line of its own below */
|
|
.nf-edge-height {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
align-items: end;
|
|
padding: 4px 6px;
|
|
margin: 0 -6px;
|
|
border-radius: 8px;
|
|
}
|
|
.nf-edge-height > span:first-child {
|
|
flex: 1 1 84px;
|
|
min-width: 84px;
|
|
}
|
|
.nf-ble-bars {
|
|
display: grid;
|
|
gap: 6px;
|
|
margin: 10px 0;
|
|
}
|
|
.nf-ble-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(80px, 1fr) 2fr 36px;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
}
|
|
.nf-ble-name {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--nf-text);
|
|
}
|
|
.nf-ble-track {
|
|
height: 8px;
|
|
border-radius: 4px;
|
|
background: rgba(127, 127, 127, 0.25);
|
|
overflow: hidden;
|
|
}
|
|
.nf-ble-fill {
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: 4px;
|
|
background: var(--nf-accent, #00e5ff);
|
|
transition: width 0.4s ease-out;
|
|
}
|
|
.nf-ble-db {
|
|
text-align: right;
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--nf-muted);
|
|
}
|
|
.nf-ble-now {
|
|
margin: 4px 0 10px;
|
|
color: var(--nf-text);
|
|
}
|
|
.nf-ble-learn {
|
|
margin: 8px 0 14px;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--nf-border, rgba(127, 127, 127, 0.3));
|
|
border-radius: 10px;
|
|
}
|
|
.nf-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
.nf-chips .nf-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
cursor: default;
|
|
color: var(--nf-text);
|
|
}
|
|
.nf-chip-x {
|
|
border: 0;
|
|
background: none;
|
|
color: var(--nf-muted);
|
|
font: inherit;
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
padding: 0 2px;
|
|
cursor: pointer;
|
|
}
|
|
.nf-quiet-time > span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.nf-quiet-time input {
|
|
flex: 1 1 0;
|
|
}
|
|
.nf-edge-height > .nf-field {
|
|
flex: 1 1 90px;
|
|
min-width: 0;
|
|
}
|
|
.nf-edge-height > .nf-muted {
|
|
flex: 1 1 90px;
|
|
align-self: center;
|
|
}
|
|
.nf-edge-height > .nf-btn {
|
|
flex: 0 0 auto;
|
|
white-space: nowrap;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
}
|
|
.nf-edge-height > .nf-split-row {
|
|
flex: 1 1 100%;
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: end;
|
|
}
|
|
.nf-edge-height > .nf-split-row > .nf-field {
|
|
flex: 1;
|
|
}
|
|
.nf-edge-on {
|
|
background: color-mix(in srgb, var(--nf-accent) 14%, transparent);
|
|
}
|
|
.nf-edge-low b {
|
|
color: var(--nf-accent);
|
|
}
|
|
.nf-wall-low {
|
|
opacity: 0.55;
|
|
}
|
|
.nf-dev-source {
|
|
display: flex;
|
|
margin: 8px 0;
|
|
}
|
|
.nf-dev-source button {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
padding: 6px 4px;
|
|
font-size: 12px;
|
|
line-height: 1.2;
|
|
white-space: normal;
|
|
text-align: center;
|
|
border-radius: 10px;
|
|
}
|
|
.nf-place-all {
|
|
margin: 10px 0 0;
|
|
}
|
|
.nf-roof-sec polygon {
|
|
fill: color-mix(in srgb, #ffb547 10%, transparent);
|
|
stroke: #ffb547;
|
|
stroke-width: 2;
|
|
stroke-dasharray: 8 6;
|
|
cursor: move;
|
|
}
|
|
.nf-roof-sel polygon {
|
|
fill: color-mix(in srgb, var(--nf-accent) 14%, transparent);
|
|
stroke: var(--nf-accent);
|
|
stroke-dasharray: none;
|
|
}
|
|
/* solar modules: dark blue panes with a light frame, so they do not look like a selected room */
|
|
.nf-roofwin polygon {
|
|
fill: color-mix(in srgb, #2b6b8f 70%, transparent);
|
|
stroke: #e3e9f5;
|
|
stroke-width: 2;
|
|
cursor: move;
|
|
}
|
|
.nf-chimney polygon {
|
|
fill: color-mix(in srgb, #7a4a4a 75%, transparent);
|
|
stroke: #e3e9f5;
|
|
stroke-width: 2;
|
|
cursor: move;
|
|
}
|
|
.nf-roofwin-sel polygon {
|
|
stroke: #ffd75a;
|
|
}
|
|
.nf-tool-energy .nf-roof-layer {
|
|
opacity: 0.45;
|
|
}
|
|
.nf-tool-energy .nf-energy-item {
|
|
pointer-events: auto;
|
|
}
|
|
.nf-swatches {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
padding-top: 4px;
|
|
}
|
|
.nf-stair-shapes {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 6px;
|
|
}
|
|
.nf-stair-shape {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 6px 4px;
|
|
font-size: 11px;
|
|
line-height: 1.2;
|
|
text-align: center;
|
|
}
|
|
.nf-stair-shape[aria-checked="true"] {
|
|
border-color: var(--nf-accent);
|
|
color: var(--nf-accent);
|
|
box-shadow: 0 0 0 1px var(--nf-accent) inset;
|
|
}
|
|
.nf-swatch {
|
|
width: 30px;
|
|
height: 30px;
|
|
padding: 0;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--nf-line);
|
|
background: var(--sw);
|
|
cursor: pointer;
|
|
}
|
|
.nf-swatch[aria-checked="true"] {
|
|
border-color: var(--nf-text);
|
|
outline: 2px solid var(--nf-accent);
|
|
outline-offset: 2px;
|
|
}
|
|
.nf-energy-marker {
|
|
cursor: move;
|
|
}
|
|
.nf-checklist .nf-chk {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
margin: 2px 0;
|
|
padding: 6px 8px;
|
|
border: 0;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
text-align: left;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
.nf-checklist .nf-chk:hover {
|
|
background: rgba(127, 127, 127, 0.12);
|
|
}
|
|
.nf-checklist .nf-chk span {
|
|
width: 18px;
|
|
text-align: center;
|
|
font-weight: 700;
|
|
}
|
|
.nf-chk-ok span {
|
|
color: #59ff8c;
|
|
}
|
|
.nf-chk-todo span {
|
|
color: #ffc633;
|
|
}
|
|
.nf-chk-opt {
|
|
opacity: 0.75;
|
|
}
|
|
.nf-teaser-on {
|
|
border-color: rgba(89, 255, 140, 0.5);
|
|
}
|
|
.nf-teaser {
|
|
margin-top: 12px;
|
|
padding: 12px;
|
|
border-radius: 14px;
|
|
border: 1px solid color-mix(in srgb, #ffd75a 45%, transparent);
|
|
background: linear-gradient(160deg, color-mix(in srgb, #ffd75a 10%, transparent), transparent 60%);
|
|
}
|
|
.nf-teaser-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.nf-teaser-soon {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--nf-chrome-solid);
|
|
background: #ffd75a;
|
|
border-radius: 999px;
|
|
padding: 2px 8px;
|
|
white-space: nowrap;
|
|
}
|
|
.nf-teaser img {
|
|
display: block;
|
|
width: 100%;
|
|
border-radius: 10px;
|
|
border: 1px solid color-mix(in srgb, var(--nf-accent) 40%, transparent);
|
|
}
|
|
.nf-teaser ul {
|
|
margin: 8px 0 4px;
|
|
padding-left: 18px;
|
|
font-size: 13px;
|
|
}
|
|
/* the roof and energy tools say what can be moved there (everything else is locked) */
|
|
.nf-tool-note {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
z-index: 2;
|
|
max-width: calc(100% - 24px);
|
|
padding: 5px 12px;
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, var(--nf-chrome-solid) 85%, transparent);
|
|
border: 1px solid color-mix(in srgb, #ffd75a 60%, transparent);
|
|
color: #ffe7a3;
|
|
font-size: 12px;
|
|
text-align: center;
|
|
pointer-events: none;
|
|
}
|
|
.nf-route line {
|
|
stroke: var(--nf-warm);
|
|
stroke-width: 2;
|
|
stroke-dasharray: 6 4;
|
|
opacity: 0.7;
|
|
}
|
|
.nf-route circle {
|
|
fill: var(--nf-warm);
|
|
opacity: 0.8;
|
|
}
|
|
.nf-route circle.nf-route-riser {
|
|
fill: none;
|
|
stroke: var(--nf-warm);
|
|
stroke-width: 2;
|
|
}
|
|
.nf-route-drawing line {
|
|
stroke: var(--nf-accent);
|
|
stroke-dasharray: none;
|
|
opacity: 1;
|
|
}
|
|
.nf-route-drawing circle {
|
|
fill: var(--nf-accent);
|
|
opacity: 1;
|
|
}
|
|
.nf-route-drawing circle.nf-route-riser {
|
|
fill: none;
|
|
stroke: var(--nf-accent);
|
|
}
|
|
.nf-route text {
|
|
fill: var(--nf-text);
|
|
font-size: 11px;
|
|
pointer-events: none;
|
|
}
|
|
.nf-routes {
|
|
pointer-events: none;
|
|
}
|
|
.nf-energy-marker circle {
|
|
fill: color-mix(in srgb, var(--nf-chrome-solid) 80%, transparent);
|
|
stroke: #ffd75a;
|
|
stroke-width: 2;
|
|
}
|
|
.nf-energy-marker-sel circle {
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 3;
|
|
fill: color-mix(in srgb, var(--nf-accent) 25%, var(--nf-chrome-solid));
|
|
}
|
|
.nf-energy-marker text {
|
|
text-anchor: middle;
|
|
pointer-events: none;
|
|
}
|
|
.nf-energy-icon {
|
|
font-size: 17px;
|
|
}
|
|
.nf-energy-name {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
fill: #ffd75a;
|
|
paint-order: stroke;
|
|
stroke: rgba(0, 0, 0, 0.65);
|
|
stroke-width: 3px;
|
|
}
|
|
.nf-solar polygon {
|
|
fill: color-mix(in srgb, #1b3a8f 75%, transparent);
|
|
stroke: #9fb8ff;
|
|
stroke-width: 1.5;
|
|
cursor: move;
|
|
}
|
|
.nf-solar-sel polygon {
|
|
fill: color-mix(in srgb, #1b3a8f 80%, transparent);
|
|
stroke: #ffd75a;
|
|
stroke-width: 2;
|
|
}
|
|
.nf-solar polygon.nf-solar-off {
|
|
fill: transparent;
|
|
stroke-dasharray: 4 4;
|
|
stroke-width: 1.5;
|
|
}
|
|
.nf-solar-pick polygon {
|
|
cursor: pointer;
|
|
}
|
|
.nf-roof-ridge line {
|
|
stroke: #ffb547;
|
|
stroke-width: 2.5;
|
|
pointer-events: none;
|
|
}
|
|
.nf-roof-sel .nf-roof-ridge line {
|
|
stroke: var(--nf-accent);
|
|
}
|
|
.nf-roof-sec text {
|
|
fill: #ffd28a;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-anchor: middle;
|
|
paint-order: stroke;
|
|
stroke: rgba(0, 0, 0, 0.6);
|
|
stroke-width: 3px;
|
|
pointer-events: none;
|
|
}
|
|
.nf-tool-energy .nf-room,
|
|
.nf-tool-energy [data-furniture],
|
|
.nf-tool-energy [data-device],
|
|
.nf-tool-energy [data-opening],
|
|
.nf-tool-energy [data-free-wall],
|
|
.nf-tool-energy [data-outdoor],
|
|
.nf-tool-energy .nf-roof-layer,
|
|
.nf-tool-roof .nf-room,
|
|
.nf-tool-roof [data-furniture],
|
|
.nf-tool-roof [data-device],
|
|
.nf-tool-roof [data-opening],
|
|
.nf-tool-roof [data-free-wall],
|
|
.nf-tool-roof [data-outdoor] {
|
|
pointer-events: none;
|
|
}
|
|
.nf-dev-area {
|
|
margin: 10px 0 2px;
|
|
color: var(--nf-muted);
|
|
font-size: 12px;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
}
|
|
.nf-h3row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
.nf-h3row h3 {
|
|
margin-bottom: 0;
|
|
}
|
|
.nf-fix {
|
|
min-height: 30px;
|
|
padding: 4px 10px;
|
|
font-size: 13px;
|
|
}
|
|
.nf-fix[aria-pressed="true"] {
|
|
border-color: var(--nf-accent);
|
|
color: var(--nf-accent);
|
|
}
|
|
.nf-lock {
|
|
font-size: 13px;
|
|
text-anchor: middle;
|
|
pointer-events: none;
|
|
}
|
|
.nf-hint-fixed {
|
|
color: var(--nf-accent);
|
|
}
|
|
.nf-ctx {
|
|
position: absolute;
|
|
z-index: 5;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 170px;
|
|
padding: 4px;
|
|
border: 1px solid var(--nf-line);
|
|
border-radius: 10px;
|
|
background: var(--nf-panel, #111a2e);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
|
|
}
|
|
.nf-ctx button {
|
|
padding: 8px 12px;
|
|
border: none;
|
|
border-radius: 7px;
|
|
background: none;
|
|
color: inherit;
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.nf-ctx button:hover:not(:disabled) {
|
|
background: color-mix(in srgb, var(--nf-accent) 16%, transparent);
|
|
}
|
|
.nf-ctx button:disabled {
|
|
opacity: 0.45;
|
|
cursor: default;
|
|
}
|
|
.nf-ctx-danger {
|
|
color: var(--nf-danger, #ff6b7a) !important;
|
|
}
|
|
.nf-edge-hi {
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 6;
|
|
stroke-linecap: round;
|
|
filter: drop-shadow(0 0 6px var(--nf-accent));
|
|
}
|
|
.nf-free-wall .nf-hit {
|
|
stroke: transparent;
|
|
stroke-width: 18;
|
|
}
|
|
.nf-free-wall-line {
|
|
stroke: transparent;
|
|
stroke-width: 1;
|
|
}
|
|
.nf-free-wall-sel .nf-free-wall-line {
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 2;
|
|
stroke-dasharray: 6 4;
|
|
}
|
|
.nf-draft-wall {
|
|
stroke-width: 4;
|
|
}
|
|
.nf-open-passage {
|
|
stroke-dasharray: 4 4;
|
|
}
|
|
.nf-out-sel polygon {
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 2;
|
|
stroke-dasharray: none;
|
|
}
|
|
.nf-out text {
|
|
fill: var(--nf-muted);
|
|
font-size: 11px;
|
|
text-anchor: middle;
|
|
pointer-events: none;
|
|
}
|
|
.nf-furn-lit .nf-furn-body {
|
|
fill: rgba(255, 181, 71, 0.35);
|
|
stroke: var(--nf-warm);
|
|
}
|
|
.nf-rotate {
|
|
cursor: grab;
|
|
}
|
|
.nf-preview {
|
|
position: fixed;
|
|
z-index: 20;
|
|
width: 180px;
|
|
padding: 8px 8px 10px;
|
|
border-radius: 16px;
|
|
background: var(--nf-bg2);
|
|
box-shadow: var(--nf-shadow), 0 0 0 1px var(--nf-line);
|
|
text-align: center;
|
|
pointer-events: none;
|
|
animation: nf-pop 120ms ease-out;
|
|
}
|
|
@keyframes nf-pop {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(8px);
|
|
}
|
|
}
|
|
.nf-preview img,
|
|
.nf-preview-wait {
|
|
display: block;
|
|
width: 164px;
|
|
height: 164px;
|
|
}
|
|
.nf-preview-wait {
|
|
margin: 0 auto;
|
|
border-radius: 12px;
|
|
background: rgba(127, 127, 127, 0.1);
|
|
}
|
|
.nf-preview b {
|
|
display: block;
|
|
margin-top: 2px;
|
|
font-size: 13px;
|
|
color: #e8eeff;
|
|
}
|
|
.nf-lib-badge {
|
|
margin-left: 4px;
|
|
color: var(--nf-accent);
|
|
vertical-align: -2px;
|
|
}
|
|
.nf-pin {
|
|
border: 0;
|
|
background: none;
|
|
padding: 2px 6px;
|
|
font-size: 17px;
|
|
line-height: 1;
|
|
color: var(--nf-muted);
|
|
cursor: pointer;
|
|
}
|
|
.nf-pin-on {
|
|
color: var(--nf-warm);
|
|
}
|
|
.nf-back {
|
|
margin-bottom: 12px;
|
|
}
|
|
.nf-presets {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.nf-resize {
|
|
cursor: nwse-resize;
|
|
}
|
|
.nf-resize rect {
|
|
fill: var(--nf-accent);
|
|
stroke: var(--nf-chrome-solid);
|
|
stroke-width: 1.5;
|
|
}
|
|
.nf-code {
|
|
display: block;
|
|
font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace;
|
|
padding: 6px 8px;
|
|
border-radius: 8px;
|
|
background: rgba(127, 127, 127, 0.12);
|
|
user-select: all;
|
|
word-break: break-all;
|
|
}
|
|
.nf-shift {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.nf-shift input {
|
|
width: 5.5em;
|
|
}
|
|
.nf-headroom {
|
|
stroke: rgba(255, 214, 90, 0.55);
|
|
stroke-width: 1;
|
|
stroke-dasharray: 6 4;
|
|
pointer-events: none;
|
|
}
|
|
.nf-headroom-label {
|
|
font-size: 10px;
|
|
fill: rgba(255, 214, 90, 0.75);
|
|
text-anchor: middle;
|
|
pointer-events: none;
|
|
}
|
|
.nf-split-mark {
|
|
stroke: color-mix(in srgb, var(--nf-accent) 90%, transparent);
|
|
stroke-width: 2;
|
|
pointer-events: none;
|
|
}
|
|
.nf-floor-menu {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
margin: 8px 0;
|
|
padding: 10px;
|
|
border-radius: 12px;
|
|
background: rgba(127, 127, 127, 0.1);
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
.nf-icon-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.nf-icon-row input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.nf-icon-row ha-icon {
|
|
--mdc-icon-size: 22px;
|
|
color: var(--nf-accent);
|
|
}
|
|
.nf-floor-menu .nf-btn {
|
|
text-align: left;
|
|
width: 100%;
|
|
min-width: 0;
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.nf-rotate line {
|
|
stroke: var(--nf-accent);
|
|
stroke-dasharray: 3 3;
|
|
}
|
|
.nf-rotate circle:not(.nf-hit) {
|
|
fill: var(--nf-chrome-solid);
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 2;
|
|
}
|
|
.nf-rotate path {
|
|
fill: none;
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 1.5;
|
|
stroke-linecap: round;
|
|
}
|
|
.nf-lib-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
width: 100%;
|
|
padding: 6px 0;
|
|
border: 0;
|
|
background: none;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
.nf-lib-toggle:hover {
|
|
color: var(--nf-text);
|
|
}
|
|
.nf-lib-caret {
|
|
width: 12px;
|
|
color: var(--nf-accent);
|
|
}
|
|
.nf-lib-count {
|
|
margin-left: auto;
|
|
font-weight: 500;
|
|
letter-spacing: 0;
|
|
text-transform: none;
|
|
opacity: 0.7;
|
|
}
|
|
.nf-lib-head {
|
|
margin: 10px 0 0;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
color: var(--nf-muted);
|
|
}
|
|
.nf-furn-front {
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 2.5;
|
|
vector-effect: non-scaling-stroke;
|
|
opacity: 0.8;
|
|
pointer-events: none;
|
|
}
|
|
.nf-furn text {
|
|
fill: var(--nf-muted);
|
|
font-size: 11px;
|
|
text-anchor: middle;
|
|
pointer-events: none;
|
|
}
|
|
.nf-furn-sel .nf-furn-body {
|
|
fill: color-mix(in srgb, var(--nf-accent) 16%, transparent);
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 2;
|
|
}
|
|
.nf-open {
|
|
cursor: grab;
|
|
}
|
|
.nf-open-gap {
|
|
fill: var(--nf-chrome-solid);
|
|
stroke: none;
|
|
}
|
|
.nf-open path,
|
|
.nf-open line {
|
|
fill: none;
|
|
stroke-width: 1.6;
|
|
stroke-linecap: round;
|
|
}
|
|
.nf-open-door path {
|
|
stroke: var(--nf-warm);
|
|
stroke-dasharray: 3 3;
|
|
}
|
|
.nf-open-front path,
|
|
.nf-open-door line {
|
|
stroke: var(--nf-warm);
|
|
stroke-width: 3;
|
|
stroke-dasharray: none;
|
|
}
|
|
.nf-open-door line.nf-open-pane {
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 2;
|
|
}
|
|
.nf-open-garage line {
|
|
stroke: var(--nf-warm);
|
|
stroke-width: 3;
|
|
}
|
|
.nf-open-track {
|
|
stroke: var(--nf-warm);
|
|
stroke-dasharray: 4 4;
|
|
opacity: 0.6;
|
|
}
|
|
.nf-open-window line {
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 2;
|
|
}
|
|
.nf-open-sel .nf-open-gap {
|
|
fill: color-mix(in srgb, var(--nf-accent) 25%, transparent);
|
|
}
|
|
.nf-open-sel path,
|
|
.nf-open-sel line {
|
|
stroke-width: 2.4;
|
|
}
|
|
.nf-bg-rotate {
|
|
cursor: grab;
|
|
}
|
|
.nf-bg-ruler line {
|
|
stroke: #ffb020;
|
|
stroke-width: 2.5;
|
|
stroke-dasharray: 6 4;
|
|
}
|
|
.nf-bg-ruler circle {
|
|
fill: #ffb020;
|
|
stroke: #1a1000;
|
|
stroke-width: 1.5;
|
|
}
|
|
.nf-own-button {
|
|
padding: 10px 0;
|
|
border-top: 1px solid var(--nf-line);
|
|
}
|
|
.nf-own-button textarea {
|
|
font: 12px/1.4 ui-monospace, monospace;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 6px 8px;
|
|
color: var(--nf-text);
|
|
background: color-mix(in srgb, var(--nf-text) 4%, transparent);
|
|
border: 1px solid var(--nf-line);
|
|
border-radius: 8px;
|
|
}
|
|
.nf-search {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 2;
|
|
background-color: var(--nf-panel, #0d1424);
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
font: inherit;
|
|
font-size: 14px;
|
|
color: var(--nf-text);
|
|
background: color-mix(in srgb, var(--nf-text) 4%, transparent);
|
|
border: 1px solid var(--nf-line);
|
|
border-radius: 8px;
|
|
padding: 7px 9px;
|
|
margin: 2px 0 6px;
|
|
}
|
|
.nf-more {
|
|
font: inherit;
|
|
font-size: 12px;
|
|
color: var(--nf-muted);
|
|
background: none;
|
|
border: none;
|
|
text-align: left;
|
|
padding: 2px 26px 8px;
|
|
cursor: pointer;
|
|
}
|
|
.nf-more:hover {
|
|
color: var(--nf-accent);
|
|
}
|
|
.nf-dev-hidden .nf-dev-name {
|
|
opacity: 0.45;
|
|
text-decoration: line-through;
|
|
}
|
|
.nf-dev-extra {
|
|
padding-left: 18px;
|
|
font-size: 13px;
|
|
}
|
|
.nf-dev-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin: 0 0 8px;
|
|
font-weight: 600;
|
|
}
|
|
.nf-notice {
|
|
color: var(--nf-accent);
|
|
}
|
|
.nf-device-sel circle:not(.nf-hit) {
|
|
stroke: var(--nf-accent);
|
|
stroke-width: 3;
|
|
}
|
|
.nf-dev-row {
|
|
align-items: center;
|
|
cursor: default;
|
|
}
|
|
.nf-dev-row:hover {
|
|
color: var(--nf-text);
|
|
}
|
|
.nf-dev-name {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
font: inherit;
|
|
color: inherit;
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.nf-dev-name:disabled {
|
|
cursor: default;
|
|
}
|
|
.nf-dev-name span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.nf-dev-name svg {
|
|
flex: none;
|
|
}
|
|
.nf-color-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.nf-color-row input[type="color"] {
|
|
width: 48px;
|
|
height: 32px;
|
|
padding: 0;
|
|
border: none;
|
|
background: none;
|
|
}
|
|
.nf-link {
|
|
font: inherit;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--nf-accent);
|
|
background: none;
|
|
border: none;
|
|
padding: 4px 2px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
.nf-wide-btn {
|
|
width: 100%;
|
|
margin-bottom: 6px;
|
|
}
|
|
.nf-device {
|
|
cursor: grab;
|
|
}
|
|
.nf-wedge path,
|
|
.nf-wedge circle:not(.nf-hit) {
|
|
fill: color-mix(in srgb, var(--nf-accent) 12%, transparent);
|
|
stroke: color-mix(in srgb, var(--nf-accent) 45%, transparent);
|
|
stroke-width: 1;
|
|
pointer-events: none;
|
|
}
|
|
.nf-wedge-sel path,
|
|
.nf-wedge-sel > circle {
|
|
fill: color-mix(in srgb, var(--nf-accent) 20%, transparent);
|
|
stroke: var(--nf-accent);
|
|
}
|
|
.nf-wedge .nf-rotate circle {
|
|
pointer-events: auto;
|
|
}
|
|
.nf-device circle:not(.nf-hit) {
|
|
fill: #111a2e;
|
|
stroke: var(--nf-soft);
|
|
stroke-width: 1.5;
|
|
vector-effect: non-scaling-stroke;
|
|
}
|
|
.nf-device path {
|
|
fill: none;
|
|
stroke: var(--nf-text);
|
|
stroke-width: 2.6;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
.nf-device-on circle:not(.nf-hit) {
|
|
fill: var(--nf-warm);
|
|
stroke: var(--nf-warm);
|
|
}
|
|
.nf-device-on path {
|
|
stroke: #2a1a00;
|
|
}
|
|
.nf-device-icon {
|
|
pointer-events: none;
|
|
overflow: visible;
|
|
}
|
|
.nf-device-icon ha-icon {
|
|
display: block;
|
|
--mdc-icon-size: 16px;
|
|
color: var(--nf-text);
|
|
}
|
|
.nf-device-on .nf-device-icon ha-icon {
|
|
color: #2a1a00;
|
|
}
|
|
.nf-dev-icon {
|
|
--mdc-icon-size: 18px;
|
|
flex: none;
|
|
}
|
|
.nf-muted {
|
|
color: var(--nf-muted);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.nf-points {
|
|
margin: 12px 0;
|
|
}
|
|
.nf-point {
|
|
display: grid;
|
|
grid-template-columns: 18px 1fr 1fr auto;
|
|
gap: 6px;
|
|
align-items: end;
|
|
padding: 4px 0;
|
|
}
|
|
.nf-point-sel .nf-muted {
|
|
color: var(--nf-accent);
|
|
}
|
|
.nf-point .nf-btn {
|
|
min-height: 34px;
|
|
padding: 4px 10px;
|
|
}
|
|
.nf-upload {
|
|
position: relative;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
}
|
|
.nf-upload input {
|
|
position: absolute;
|
|
inset: 0;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
}
|
|
.nf-sub {
|
|
margin: 8px 0 0;
|
|
font-size: 12.5px;
|
|
color: var(--nf-muted);
|
|
}
|
|
.nf-note {
|
|
margin: 0;
|
|
font-size: 12.5px;
|
|
color: var(--nf-warm);
|
|
}
|
|
.nf-hydronic-form>details { border:1px solid var(--nf-line); border-radius:10px; padding:10px; margin:8px 0; }
|
|
.nf-hydronic-form summary { cursor:pointer; font-weight:500; }
|
|
.nf-hydronic-form details[open]>.nf-form { margin-top:9px; }
|
|
.nf-hydronic-control { border-top:1px solid var(--nf-line); padding-top:7px; }
|
|
`;
|