|
| 1 | +@import "node_modules/ol/ol.css"; |
| 2 | + |
| 3 | +html, body { |
| 4 | + margin: 0; |
| 5 | + padding: 0; |
| 6 | + height: 100%; |
| 7 | + font-family: sans-serif; |
| 8 | +} |
| 9 | + |
| 10 | +/* 2 x 2 layout: maps on top, source text below */ |
| 11 | +#container { |
| 12 | + display: flex; |
| 13 | + flex-direction: column; |
| 14 | + height: 100vh; |
| 15 | +} |
| 16 | + |
| 17 | +#maps, |
| 18 | +#sources { |
| 19 | + flex: 1; |
| 20 | + display: flex; |
| 21 | + min-height: 0; /* lets the halves shrink so the code panels can scroll */ |
| 22 | +} |
| 23 | + |
| 24 | +#maps { |
| 25 | + border-bottom: 2px solid #ccc; |
| 26 | +} |
| 27 | + |
| 28 | +.panel { |
| 29 | + flex: 1; |
| 30 | + display: flex; |
| 31 | + flex-direction: column; |
| 32 | + min-width: 0; |
| 33 | + min-height: 0; |
| 34 | +} |
| 35 | + |
| 36 | + .panel + .panel { |
| 37 | + border-left: 2px solid #ccc; |
| 38 | + } |
| 39 | + |
| 40 | +.panel-title { |
| 41 | + padding: 4px 10px; |
| 42 | + font-size: 12px; |
| 43 | + font-weight: bold; |
| 44 | + color: #444; |
| 45 | + background: #f3f3f3; |
| 46 | + border-bottom: 1px solid #ddd; |
| 47 | +} |
| 48 | + |
| 49 | +.file-name { |
| 50 | + font-weight: normal; |
| 51 | + color: #777; |
| 52 | + font-family: Consolas, "Courier New", monospace; |
| 53 | +} |
| 54 | + |
| 55 | +/* Maps */ |
| 56 | +.map { |
| 57 | + flex: 1; |
| 58 | + min-height: 0; |
| 59 | +} |
| 60 | + |
| 61 | +/* Greyscale basemap, so the styled layers stand out */ |
| 62 | +.bw { |
| 63 | + filter: grayscale(100%); |
| 64 | +} |
| 65 | + |
| 66 | +/* The layer selector sits in the top-right corner of the left map */ |
| 67 | +#panel-left { |
| 68 | + position: relative; |
| 69 | +} |
| 70 | + |
| 71 | +#toolbar { |
| 72 | + position: absolute; |
| 73 | + top: 32px; /* just below the panel title bar */ |
| 74 | + right: 8px; |
| 75 | + z-index: 1000; |
| 76 | + display: flex; |
| 77 | + align-items: center; |
| 78 | + gap: 8px; |
| 79 | + background: white; |
| 80 | + padding: 6px 10px; |
| 81 | + border-radius: 6px; |
| 82 | + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); |
| 83 | + font-size: 13px; |
| 84 | +} |
| 85 | + |
| 86 | +#layer-select { |
| 87 | + font-size: 13px; |
| 88 | + padding: 3px 6px; |
| 89 | + border: 1px solid #ccc; |
| 90 | + border-radius: 4px; |
| 91 | +} |
| 92 | + |
| 93 | +/* Bottom-left panel: Classes takes any remaining space, Symbols only what |
| 94 | + it needs. If both don't fit, they shrink in proportion to their content. */ |
| 95 | +.subpanel { |
| 96 | + display: flex; |
| 97 | + flex-direction: column; |
| 98 | + min-height: 0; |
| 99 | +} |
| 100 | + |
| 101 | + .subpanel[hidden] { |
| 102 | + display: none; |
| 103 | + } |
| 104 | + |
| 105 | +#class-panel { |
| 106 | + flex: 1 1 auto; |
| 107 | +} |
| 108 | + |
| 109 | +#sym-panel { |
| 110 | + flex: 0 1 auto; |
| 111 | + border-top: 2px solid #ccc; |
| 112 | +} |
| 113 | + |
| 114 | +/* Read-only CodeMirror viewers */ |
| 115 | +.code { |
| 116 | + flex: 1 1 auto; |
| 117 | + min-height: 0; |
| 118 | + display: flex; |
| 119 | + overflow: hidden; |
| 120 | +} |
| 121 | + |
| 122 | + .code .cm-editor { |
| 123 | + flex: 1; |
| 124 | + min-height: 0; |
| 125 | + font-size: 12px; |
| 126 | + } |
| 127 | + |
| 128 | + /* Keep the last line visible above a horizontal scrollbar */ |
| 129 | + .code .cm-content { |
| 130 | + padding-bottom: 40px; |
| 131 | + } |
0 commit comments