SOURCE / PINNED RELEASE
Made of little things.
Nappakura
- Release
- a75ca0f8b596…
- Author-recorded commit
- 4463126213fa…
- License
- LICENSE
- Author’s source reference
- nostr://npub182jczunncwe0jn6frpqwq3e0qjws7yqqnc3auccqv9nte2dnd63scjm4rf/wss%3A%2F%2Fgit.napplet.soy%2F/n-8db03001b62
Archive hash verified: b448d77b767ae754…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
:root {
font:
13px/1.4 -apple-system,
BlinkMacSystemFont,
'Segoe UI',
sans-serif;
color: #27333e;
background: #f6f7f8;
--accent: #28669c;
--line: #d6dce1;
--muted: #687580;
color-scheme: light;
}
* {
box-sizing: border-box;
}
html,
body,
#app {
height: 100%;
margin: 0;
}
button,
input,
select {
font: inherit;
color: inherit;
}
button {
min-height: 32px;
border: 1px solid var(--line);
background: #fff;
border-radius: 5px;
padding: 5px 10px;
cursor: pointer;
white-space: nowrap;
transition: background 0.12s;
}
button:hover {
background: #edf3f8;
}
button:active {
background: #dce9f3;
}
button:disabled {
opacity: 0.43;
cursor: default;
}
button[aria-pressed='true'] {
background: #e1edf7;
border-color: #8caec9;
color: #154f7e;
}
button.primary {
background: #2c638e;
color: white;
border-color: #2c638e;
}
button.export {
background: #243645;
border-color: #243645;
color: #fff;
}
button.primary:hover,
button.export:hover {
background: #3c779f;
}
:focus-visible {
outline: 2px solid #287bb9;
outline-offset: 2px;
}
input,
select {
width: 100%;
height: 32px;
background: white;
border: 1px solid #cbd4db;
border-radius: 4px;
padding: 4px 7px;
min-width: 0;
}
input:invalid {
border-color: #bd692c;
}
input[type='checkbox'] {
width: 15px;
height: 15px;
margin: 0;
accent-color: #28669c;
}
h1,
h2,
p {
margin: 0;
}
h1,
h2 {
font-size: 12px;
font-weight: 650;
}
label {
display: flex;
justify-content: space-between;
font-size: 11px;
color: #4b5a67;
margin: 9px 0 4px;
gap: 4px;
}
label span {
color: #83909a;
}
.mono {
font:
11px/1.4 ui-monospace,
SFMono-Regular,
Menlo,
monospace;
}
.editor {
height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
}
.toolbar {
display: flex;
align-items: center;
gap: 6px;
padding: 9px 12px;
border-bottom: 1px solid var(--line);
flex: none;
overflow-x: auto;
}
.toolbar button {
flex: none;
}
.toolbar-spacer,
.pane-spacer {
flex: 1;
}
.separator {
height: 18px;
border-left: 1px solid var(--line);
margin: 0 3px;
}
.document-bar {
height: 37px;
display: flex;
align-items: center;
gap: 12px;
padding: 0 13px;
border-bottom: 1px solid var(--line);
flex: none;
}
.document-name {
font-size: 12px;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 45%;
}
#modelStats {
color: var(--muted);
}
.text-button {
margin-left: auto;
border: 0;
background: none;
font-size: 11px;
padding: 2px 0;
min-height: 26px;
color: #526c82;
}
.view-switch {
display: flex;
gap: 4px;
padding: 6px 12px;
border-bottom: 1px solid var(--line);
flex: none;
}
.view-switch button {
border-color: transparent;
background: transparent;
font-size: 11px;
min-height: 28px;
}
.workspace {
display: grid;
grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) 226px;
flex: 1;
min-height: 0;
}
.pane {
display: flex;
min-width: 0;
min-height: 0;
flex-direction: column;
}
.model-pane {
border-right: 1px solid var(--line);
}
.pane-heading {
height: 42px;
display: flex;
align-items: center;
gap: 9px;
padding: 7px 12px;
border-bottom: 1px solid var(--line);
flex: none;
}
.pane-heading button {
font-size: 10px;
min-height: 26px;
padding: 3px 7px;
}
.badge {
font:
9px ui-monospace,
monospace;
color: #657682;
padding: 3px 5px;
background: #e7edf1;
border-radius: 3px;
}
.canvas-wrap {
flex: 1;
min-height: 0;
position: relative;
overflow: hidden;
}
canvas {
display: block;
width: 100%;
height: 100%;
touch-action: none;
-webkit-user-select: none;
user-select: none;
}
.canvas-caption {
position: absolute;
bottom: 11px;
left: 0;
width: 100%;
text-align: center;
pointer-events: none;
font:
9px ui-monospace,
monospace;
letter-spacing: 1px;
color: #9fafbf;
}
.pattern-tools {
height: 44px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 5px 10px;
border-bottom: 1px solid var(--line);
gap: 5px;
flex: none;
}
.pattern-tools button {
font-size: 11px;
min-height: 29px;
padding: 4px 8px;
}
.segmented {
display: flex;
gap: 3px;
}
.view-controls {
display: flex;
align-items: center;
padding: 5px 8px;
gap: 4px;
min-height: 42px;
border-top: 1px solid var(--line);
flex: none;
overflow-x: auto;
}
.view-controls button {
padding: 3px 7px;
min-width: 28px;
min-height: 28px;
font-size: 12px;
}
.view-controls #pageLabel {
font-size: 10px;
white-space: nowrap;
}
.view-controls #addPage {
font-size: 10px;
}
.inspector {
overflow-y: auto;
border-left: 1px solid var(--line);
background: #f8f9fa;
scrollbar-width: thin;
}
.inspector-section {
padding: 14px;
border-bottom: 1px solid var(--line);
}
.inspector h2 {
font-size: 11px;
letter-spacing: 0.04em;
color: #354a5b;
}
.hint {
font-size: 10px;
color: #677682;
line-height: 1.55;
margin-top: 10px;
}
.field-row {
display: flex;
gap: 8px;
align-items: end;
}
.field-row > div,
.field-row > button {
flex: 1;
min-width: 0;
}
.field-row > button {
font-size: 10px;
padding: 5px;
}
.check {
justify-content: start;
align-items: center;
gap: 7px;
margin-top: 12px;
min-height: 22px;
}
.button-pair {
display: flex;
gap: 6px;
margin-top: 9px;
}
.button-pair button {
flex: 1;
min-width: 0;
font-size: 10px;
padding: 5px;
}
.full {
width: 100%;
margin-top: 6px;
font-size: 11px;
}
.legend {
display: flex;
flex-wrap: wrap;
gap: 8px;
font-size: 9px;
margin-top: 14px;
color: #566574;
}
.legend span {
display: flex;
gap: 4px;
align-items: center;
}
.legend i {
display: inline-block;
width: 18px;
border-top: 1px solid #566574;
}
.legend .mountain {
border-top-style: dashed;
}
.legend .valley {
border-top-style: dotted;
}
.statusbar {
display: flex;
gap: 7px;
align-items: center;
min-height: 30px;
padding: 5px 12px;
border-top: 1px solid var(--line);
font-size: 10px;
background: #f8f9fa;
flex: none;
}
.status-dot {
width: 5px;
height: 5px;
border-radius: 50%;
background: #527c6d;
flex: none;
}
#status {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
}
#pieceCount {
white-space: nowrap;
font-size: 10px;
color: #667581;
}
.issues {
font-size: 11px;
color: #805020;
background: #fff4e2;
border-top: 1px solid #e9d5b7;
padding: 7px 12px;
max-height: 84px;
overflow-y: auto;
flex: none;
}
.issues[hidden] {
display: none;
}
.minimum {
display: none;
}
dialog {
max-width: 520px;
width: calc(100% - 28px);
max-height: 85%;
border: 1px solid #bccbd6;
border-radius: 10px;
padding: 24px;
color: #283d4e;
background: #fbfcfd;
box-shadow: 0 20px 90px #07192b66;
}
dialog::backdrop {
background: #14283888;
}
dialog h2 {
font-size: 20px;
margin: 0 0 18px;
}
dialog p,
dialog li {
font-size: 13px;
line-height: 1.6;
margin-bottom: 12px;
}
dialog ol {
padding-left: 20px;
}
dialog .close {
float: right;
margin: -12px -12px 0 10px;
}
dialog form:last-child {
margin-top: 20px;
}
#app[data-view='model'] .workspace {
grid-template-columns: 1fr 226px;
}
#app[data-view='model'] .pattern-pane {
display: none;
}
#app[data-view='pattern'] .workspace {
grid-template-columns: 1fr 226px;
}
#app[data-view='pattern'] .model-pane {
display: none;
}
#app[data-view='tools'] .workspace {
display: block;
}
#app[data-view='tools'] .pane {
display: none;
}
#app[data-view='tools'] .inspector {
height: 100%;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
align-content: start;
}
@media (max-width: 1050px) {
.workspace {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.inspector {
display: none;
}
#app[data-view='model'] .workspace,
#app[data-view='pattern'] .workspace {
grid-template-columns: 1fr;
}
#app[data-view='tools'] .inspector {
display: grid;
}
.toolbar {
padding: 8px;
}
.badge {
display: none;
}
}
@media (max-width: 650px) {
.split-option {
display: none !important;
}
.workspace {
grid-template-columns: 1fr;
}
#app[data-view='split'] .pattern-pane {
display: none;
}
.toolbar {
gap: 5px;
padding: 7px;
}
.toolbar-spacer,
.separator {
display: none;
}
.toolbar button {
font-size: 12px;
}
.document-bar {
gap: 8px;
padding: 0 10px;
}
.document-name {
max-width: 42%;
}
#modelStats {
font-size: 9px;
}
.view-switch {
padding: 5px 8px;
}
.view-switch button {
flex: 1;
}
.pane-heading {
height: 40px;
}
.pattern-tools {
height: 46px;
}
.canvas-caption {
font-size: 8px;
}
.view-controls #addPage {
font-size: 10px;
}
.statusbar {
padding: 6px 9px;
align-items: start;
}
#pieceCount {
display: none;
}
.inspector-section {
padding: 16px;
}
.inspector-section h2 {
font-size: 13px;
}
.inspector label {
font-size: 12px;
}
.hint {
font-size: 12px;
}
.inspector .button-pair button {
font-size: 12px;
}
.issues {
font-size: 11px;
max-height: 70px;
}
}
@media (pointer: coarse) {
button,
input,
select {
min-height: 44px;
font-size: 14px;
}
.toolbar button,
.view-switch button,
.pane-heading button,
.view-controls button,
.pattern-tools button {
min-height: 44px;
}
.view-controls button {
min-width: 36px;
}
.pane-heading {
height: 56px;
}
.pattern-tools {
height: 56px;
}
.view-controls {
min-height: 54px;
}
.view-controls #pageLabel {
font-size: 9px;
}
.check {
min-height: 44px;
}
.check input {
min-height: 0;
width: 20px;
height: 20px;
}
.button-pair button,
.full {
min-height: 44px;
}
.pane-heading {
gap: 5px;
padding: 5px 8px;
}
.view-controls {
padding: 4px;
gap: 3px;
}
.view-controls #addPage {
display: none;
}
.text-button {
min-height: 30px;
}
.view-switch button {
font-size: 12px;
}
}
@media (max-height: 400px) and (min-width: 651px) {
.toolbar {
padding: 4px 8px;
}
.document-bar {
display: none;
}
.view-switch {
padding: 2px 8px;
}
.pane-heading {
height: 34px;
}
.pattern-tools {
height: 36px;
}
.view-controls {
min-height: 34px;
padding: 2px 6px;
}
.issues {
max-height: 38px;
}
.statusbar {
min-height: 24px;
}
}
@media (max-width: 279px), (max-height: 279px) {
.editor {
display: none;
}
.minimum {
display: flex;
flex-direction: column;
justify-content: center;
gap: 9px;
height: 100%;
padding: 17px;
font-size: 12px;
background: #eef2f5;
}
.minimum strong {
font-size: 14px;
}
.minimum p {
color: #596a78;
}
}
@media (prefers-reduced-motion: reduce) {
* {
transition: none !important;
}
}
@media (max-width: 650px) {
.toolbar {
flex-wrap: wrap;
overflow: visible;
}
.toolbar #unfold {
margin-left: auto;
}
}
@media (pointer: coarse) and (max-height: 400px) and (min-width: 651px) {
.pane-heading {
min-height: 48px;
}
.pattern-tools {
min-height: 54px;
}
}
/* Model selection stays beside the geometry; numeric operations live in Tools. */
.model-toolbar {
display: flex;
align-items: center;
gap: 4px;
padding: 6px 10px;
flex-wrap: wrap;
background: #233847;
color: #e8f1f7;
border-bottom: 1px solid #486171;
}
.model-toolbar button {
background: #2e485b;
border-color: #617f94;
color: #e8f1f7;
min-height: 30px;
}
.model-toolbar button[aria-pressed='true'] {
background: #badbfa;
color: #162d3e;
}
.model-toolbar label {
display: flex;
align-items: center;
gap: 4px;
margin: 0 4px;
font-size: 11px;
}
.model-toolbar input {
width: 16px;
}
.modeller select[multiple] {
min-height: 74px;
}
.modeller #modelApply {
width: 100%;
margin-top: 10px;
}
.modeller .badge {
float: right;
}
@media (pointer: coarse) {
.model-toolbar button {
min-height: 44px;
}
}
@media (max-height: 400px) {
.model-toolbar {
padding: 2px 6px;
}
.model-toolbar button {
min-height: 26px;
}
}
.model-toolbar label {
color: #e8f1f7;
}
.modelling-tools {
gap: 3px;
padding-block: 4px;
}
.modelling-tools button {
font-size: 11px;
padding: 5px 8px;
}
#modelOperationTitle {
margin: 12px 0 8px;
font-size: 13px;
}
.gizmo-tools {
flex-wrap: wrap;
}
.gizmo-tools > span:first-child {
font-weight: 650;
font-size: 12px;
}
.gizmo-hint {
font-size: 11px;
color: #c1d2df;
}
/* Preserve a usable model viewport on phones; the toolbar still exposes every tool. */
@media (max-width: 650px) {
.model-toolbar {
padding: 4px 6px;
}
.modelling-tools button {
min-width: 30px;
padding: 4px 6px;
}
.model-tool-name {
display: none;
}
#modelTools,
.gizmo-hint {
display: none;
}
.model-toolbar label {
margin-inline: 0;
}
}
@media (pointer: coarse) and (max-width: 650px) {
.modelling-tools button {
min-width: 44px;
}
}
@media (pointer: coarse) and (max-width: 650px) {
.pane-heading {
height: 48px;
padding-block: 2px;
}
.modeller .model-tool-name {
display: inline;
}
.modeller .modelling-tools {
margin-block: 12px;
border-radius: 5px;
}
}
