@import "theme.less"; 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: @fontsize; background-color: @background; } h1 { color: @accent_1; } #app { display: grid; color: #fff; } #menu-blackout { display: none; position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; z-index: 1024; background: rgba(0, 0, 0, 0.35); &.show { display: initial; } } #menu { display: none; position: absolute; top: 24px; right: 24px; background: #fff; color: #000; border: 2px solid #000; box-shadow: 5px 5px 8px 0px rgba(0,0,0,0.5); z-index: 1025; &.show { display: initial; } .item { padding: 16px; border-bottom: 1px solid #aaa; user-select: none; -webkit-tap-highlight-color: transparent; &:hover { background: #ddd; } &:last-child { border-bottom: none; } } } header { display: grid; grid-template-columns: 1fr min-content min-content; align-items: center; background: @accent_1; padding: 0px; color: darken(@accent_1, 35%); &.modified { background: @accent_3; color: lighten(@accent_3, 45%); } .name { font-weight: bold; padding-left: 16px; } .add { font-size: 2em; padding-right: 16px; cursor: pointer; } .menu { font-size: 1.25em; padding-right: 16px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; } } .crumbs { display: flex; flex-wrap: wrap; padding: 16px; background: #333; color: #fff; .crumb { margin-right: 8px; font-size: 0.8em; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; } .crumb:after { content: "•"; margin-left: 8px; color: @accent_1; } .crumb:last-child { margin-right: 0; } .crumb:last-child:after { content: ''; margin-left: 0px; } } .child-nodes { display: flex; flex-wrap: wrap; padding: 16px 16px 0px 16px; background-color: #505050; .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 { margin: 32px 0 16px 0; background: #fff; color: #000; text-align: center; font-weight: bold; } .node-content { justify-self: center; padding: 16px 32px; word-wrap: break-word; font-family: monospace; font-size: 0.85em; color: #333; width: 100ex; resize: none; border: none; outline: none; &[contenteditable] { outline: 0px solid transparent; } &:invalid { border-bottom: 1px solid #eee; border-radius: 8px; } } .tree { padding: 16px; } @media only screen and (max-width: 100ex) { .node-content { width: 100%; justify-self: start; } }