:root { /* white style */ --container: #fff; --border: #bebebe; --navigation: #f0f0f0; --font: #1c1c1c; --selected: #fff; --toggle-light: #151515; --toggle-dark: #ccc; } [data-theme="dark"] { /* Dark style */ --container: #212427; --border: #3c3f42; --navigation: #151515; --font: #fff; --selected: #191a1b; } .flex-row { display: flex; flex-direction: row; } .flex-col { display: flex; flex-direction: column; } .space-between { justify-content: space-between; } .horizontal-spacer { margin-right: 1em; } .vertical-spacer { margin-bottom: 1em; } .nav-hidden { display: none; } .outer-container { height: 100%; background-color: var(--container); color: var(--font); padding: 1em; } .navigation-bar { background-color: var(--container); color: inherit; flex-grow: 1; padding: 0.25em 1em 0.25em 1em; border: 1px solid var(--border); border-radius: 4px; } .inner-container { height: 100%; flex-grow: 1; overflow: hidden; } .contents-view { height: 100%; flex-basis: 0; flex-grow: 8; background-color: var(--navigation); border: 1px solid var(--border); border-radius: 4px; padding: 0.5em; display: flex; flex-flow: row wrap; justify-content: flex-start; align-items: flex-start; align-content: flex-start; overflow: auto; } .nav-item { margin: 2px; padding: 3px; flex: 0; display: flex; flex-direction: column; align-items: center; cursor: pointer; box-sizing: border-box; } .nav-item-selected { background-color: var(--selected); border: 1px solid var(--border); border-radius: 4px; box-sizing: border-box; padding: 2px; } .nav-item .nav-item-title { text-align: center; overflow-wrap: anywhere; } .nav-item .nav-file-icon { text-align: center; width: 100px; font-size: 80px; color: var(--border); } .nav-info-column { background-color: var(--container); flex-basis: 0; flex-grow: 3; padding: 1em; border: 1px solid var(--border); border-radius: 4px; } .nav-info-column-filename { margin: 0 12px 0 12px; font-weight: bolder; font-size: 150%; } .nav-property-pair { margin: 2px 12px 2px 12px; display: flex; flex-flow: row nowrap; align-items: baseline; } .nav-property-pair-key { font-weight: bold; flex-basis: 0; flex: 2; padding-right: 5px; } .nav-property-pair-value { font-family: "Courier New", Courier, monospace; font-size: 85%; flex-basis: 0; flex: 3; } .grid-container { margin: 0 0 2px 42px; display: grid; grid-template-columns: auto auto auto auto; justify-content: space-evenly; } .grid-label { font-weight: bold; } .nav-btn-group { display: flex; flex-flow: row nowrap; justify-content: flex-end; align-items: flex-start; } .editor-header { font-weight: bold; } .edit-file-contents { height: 100%; flex-basis: 0; flex-grow: 8; flex-flow: column nowrap; align-items: stretch; } .edit-file-contents > textarea { flex-grow: 1; white-space: pre; overflow: auto; resize: none; } .nav-toggle { position: absolute; right: 0; bottom: 0.5em; margin-right: 1.9em; } .switch { position: relative; display: inline-block; width: 60px; height: 34px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--toggle-light); -webkit-transition: 0.4s; transition: 0.4s; } .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: 0.4s; transition: 0.4s; } input:checked + .slider { background-color: var(--toggle-dark); } input:focus + .slider { box-shadow: 0 0 1px var(--toggle-dark); } input:checked + .slider:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(26px); } .slider.round { border-radius: 34px; } .slider.round:before { border-radius: 50%; }