@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; } #blackout { position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; z-index: 1024; background: rgba(0, 0, 0, 0.35); } #menu { 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; .item { padding: 16px; border-bottom: 1px solid #aaa; user-select: none; font-size: 0.85em; -webkit-tap-highlight-color: transparent; &.separator { border-bottom: 2px solid #000; } &:hover { background: #ddd; } &:last-child { border-bottom: none; } } } #upload { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #333; background: #fff; border: 2px solid #000; padding: 16px; z-index: 1025; input { border: 1px solid #000; font-size: 0.85em; } .files { display: grid; grid-template-columns: 1fr min-content; padding-top: 12px; .file { margin-top: 8px; padding-top: 8px; border-top: 1px solid #ddd; &:nth-child(1) { padding-top: 0px; margin-top: 0px; border-top: none; } &.done { color: #0a0; } } .progress { justify-self: end; margin-top: 8px; padding-top: 8px; padding-left: 8px; border-top: 1px solid #ddd; &:nth-child(2) { padding-top: 0px; margin-top: 0px; border-top: none; } &.done { color: #0a0; } } } } 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: 900px; resize: none; border: none; outline: none; &:invalid { background: #f5f5f5; } } #file-section { justify-self: center; width: 900px; margin-top: 16px; padding: 32px; background: #f5f5f5; .header { font-weight: bold; color: #000; margin-bottom: 16px; } .files { display: grid; grid-template-columns: 1fr min-content; grid-gap: 8px 16px; color: #444; font-size: 0.85em; .filename { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; &:hover { text-decoration: underline; } } .size { white-space: nowrap; text-align: right; } } } .tree { padding: 16px; } @media only screen and (max-width: 932px) { .node-content { width: calc(100% - 32px); margin-left: 16px; padding: 16px; justify-self: start; } #file-section { width: calc(100% - 32px); padding: 16px; margin-left: 16px; justify-self: start; } }