Web Dev Solutions

Catalin Mititiuc

body { margin: 0; display: flex; overflow: hidden; } #map-container { flex-basis: 100%; position: relative; max-height: 100vh; } svg { background-color: darkgray; width: 100%; height: 100%; } svg image#numbers { image-rendering: pixelated; } /* svg text { user-select: none; font-size: 4px; fill: black; stroke: black; stroke-width: 0.2px; font-weight: bold; transform: translateY(6px); font-family: monospace; text-anchor: middle; display: none; } */ div#status { position: absolute; bottom: 0; right: 0; margin: 3px; display: none; user-select: none; } #hex-counter { padding: 2px; background-color: rgba(255, 255, 255, 0.5); border-radius: 2px; } #hex-count { font-family: monospace; } div#content { display: flex; /* display: none; */ border-left: 1px solid gray; flex-basis: 0; /* overflow: scroll; */ max-height: 100vh; flex-direction: column; /* padding: 2px; */ position: relative; } #content > div:first-of-type { padding: 2px; border-bottom: 1px solid gray; } #content #buttons { line-height: 1.5em; } #content > div { display: none; } #content input[type="checkbox"].visible { position: absolute; right: 0; } #content:has(input[type="checkbox"].visible:checked) > div { display: block; } #content:has(input[type="checkbox"].visible:checked) div#record-sheet { display: flex; } #record-sheet { /* max-height: 100%; */ overflow-y: auto; display: flex; flex-direction: column; /* display: none; */ background-color: gray; } #record-sheet > div { /* padding: 0 2px; */ overflow-y: auto; /* border: 1px solid black; */ } #record-sheet > div > p { margin: 0; margin-top: 0px; margin-bottom: 1px; padding: 6px 2px; background-color: lightgray; } #record-sheet > div > div { /* border: 1px solid black; */ margin-bottom: 1px; padding: 6px 4px; /* border-radius: 4px; */ } #record-sheet > div:last-of-type { margin-top: 2px; } #record-sheet > div > div:last-of-type { margin-bottom: 0; } svg > defs > #point { fill: inherit; fill-opacity: inherit; stroke: inherit; stroke-width: inherit; stroke-opacity: inherit; } use[href="#point"] { opacity: 0; fill: teal; fill-opacity: 0.2; stroke: black; stroke-width: 0.5px; } use[href="#point"]:hover, use[href="#point"].hover { opacity: 1; fill: orange; } use[href="#point"].active { opacity: 1; } polyline.move-trace { stroke: gray; stroke-dasharray: 2; fill: none; } g#grid { transform: translate(19px, 31px) scale(4); } #background { fill: #bacae3; } #map2 { transform: rotate(0.1deg); } #map3 { transform: rotate(0.1deg); } image.map-scans { /* transform: scale(1.39, 1.407) rotate(0.07deg); */ /* opacity: 0.33; */ } #debug { display: none; position: absolute; right: 0; background-color: white; border: 1px solid black; padding: 2px; } #debug fieldset label { display: block; text-align: right; } /* circle.counter { stroke: transparent; stroke-width: 0.5in; } */ use.counter.clone { /* filter: saturate(40%) brightness(4); */ /* filter: grayscale(0.8) */ } g.troop-counter { /* fill: inherit; */ /* transform: translate(-7px, -7px); */ /* opacity: 0.5; */ } g.troop-counter use[href="#counter-base"] { /* transform: translate(-7px, -7px); */ transform: translate(-5px, -5px); } g.troop-counter text { fill: white; font-size: 12px; font-weight: bold; font-family: monospace; cursor: default; text-anchor: middle; pointer-events: none; user-select: none; transform: translateY(4px); stroke: none; } g#counters { pointer-events: none; } g#counters use[data-troop-allegiance="davion"] { fill: red; } g#counters use[data-troop-allegiance="liao"] { fill: green; } g#counters use.clone { stroke: white; stroke-width: 0.5px; stroke-dasharray: 1; } g#counters use[data-troop-allegiance="davion"].clone { fill: rgb(255, 126, 126); } g#counters use[data-troop-allegiance="liao"].clone { fill: rgb(130, 190, 130); } text.counter, #troop-counter text { font-size: 12px; font-weight: bold; /* stroke: black; */ fill: white; /* stroke-width: 0.5px; */ font-family: sans-serif; cursor: default; text-anchor: middle; /* transform: translateY(25%); */ transform: translateY(4px); pointer-events: none; user-select: none; } rect#map { fill: black; opacity: 0; /* fill-opacity: 0; stroke: red; stroke-width: 4px; */ } polygon.firing-arc[data-troop-allegiance="davion"] { fill: red; } polygon.firing-arc[data-troop-allegiance="liao"] { fill: green; } #shapes { opacity: 0.1; } #shapes polygon { stroke: none; } #lines polygon { fill: none; stroke: black; } button.set-firing-arc img { vertical-align: middle; pointer-events: none; } line.firing-arc { stroke: blue; opacity: 0.1; } .sight-line { stroke: orangered; stroke-width: 0.5px; pointer-events: none; } .soldier-record { display: inline-block; position: relative; white-space: nowrap; background-color: white; } .soldier-record.selected { background-color: khaki; } .soldier-record.movement-ended { background-color: none; opacity: 0.5; } image#img1 { transform: scale(3.41) rotate(-0.15deg); /* opacity: 0.33; */ } .wall { fill: none; stroke: red; stroke-width: 7px; opacity: 0.7; } #asterisk { font-size: 30; } img.logo { width: 100px; margin: 0 auto; display: block; } rect#debug-view-box { /* stroke: red; stroke-width: 20px; */ fill: blue; fill-opacity: 0.2; } #troop-counter > .outer { fill: inherit; } #troop-counter > .inner { fill: red; } use[href="#troop-counter"] { transform: translate(-7.5px, -7.5px); fill: transparent; /* fill: orange; */ } use[href="#troop-counter"]:hover { fill: orange; } @media (width >= 1800px) { #record-sheet { flex-direction: row; /* gap: 2px; */ } #record-sheet > div > p { margin-top: 0; } #record-sheet > div { /* max-height: unset; */ overflow-y: unset; height: min-content; } #record-sheet div:last-of-type { margin-top: 0; } #record-sheet > div:first-of-type > div { /* margin-left: 1px; */ margin-right: 1px; } #record-sheet > div:last-of-type > div { margin-left: 1px; /* margin-right: 1px; */ } }