html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } [onClick] { cursor: pointer; } html, body { margin: 0px; padding: 0px; font-family: 'Liberation Mono', monospace; font-size: 14pt; background-color: #fff; } h1 { color: #ecbf00; } #app { display: grid; color: #fff; } header { display: grid; grid-template-columns: 1fr min-content; align-items: center; background: #ecbf00; padding: 0px; color: #3a2f00; } header.modified { background: #c84a37; color: #faedeb; } header .name { font-weight: bold; padding-left: 16px; } header .add { font-size: 2em; padding-right: 16px; cursor: pointer; } .crumbs { display: flex; flex-wrap: wrap; padding: 16px; background: #333; color: #fff; } .crumbs .crumb { margin-right: 8px; font-size: 0.8em; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; } .crumbs .crumb:after { content: "•"; margin-left: 8px; color: #ecbf00; } .crumbs .crumb:last-child { margin-right: 0; } .crumbs .crumb:last-child:after { content: ''; margin-left: 0px; } .child-nodes { display: flex; flex-wrap: wrap; padding: 16px 16px 0px 16px; background-color: #505050; } .child-nodes .child-node { padding: 8px; border-radius: 8px; background-color: #2f2f2f; margin-right: 12px; margin-bottom: 16px; white-space: nowrap; font-size: 0.8em; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; } .node-name { padding: 32px; background: #fff; color: #000; text-align: center; font-weight: bold; } .node-content { justify-self: center; padding: 0px 32px 32px 32px; white-space: pre-wrap; font-size: 0.85em; color: #333; width: 100ex; } .node-content[contenteditable] { outline: 0px solid transparent; } @media only screen and (max-width: 100ex) { .node-content { width: initial; justify-self: start; } }