Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-30 10:17:45 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-30 10:17:45 -0700
commit82d3a4b415ba920176058d615b697e84a49adabc (patch)
tree7bc250d9f332689e3dc0c4e7aec5949175a0f9fa /public/style.css
parenta4888a3e0905f3561781cb0ef4686befc0dff122 (diff)
Create record sheet dynamically when map is loaded
Diffstat (limited to 'public/style.css')
-rw-r--r--public/style.css76
1 files changed, 16 insertions, 60 deletions
diff --git a/public/style.css b/public/style.css
index 22f592f..c229889 100644
--- a/public/style.css
+++ b/public/style.css
@@ -86,6 +86,10 @@ div#content {
background-color: gray;
}
+#record-sheet .name {
+ text-transform: capitalize;
+}
+
#record-sheet > div {
/* padding: 0 2px; */
overflow-y: auto;
@@ -233,72 +237,20 @@ g#points g.hover use.counter {
r: 7px;
}
-g#points g.hover use.counter:not(.clone) {
- /* stroke: orange; */
- /* stroke-width: 2px; */
-}
-
-g#points use.counter[data-allegiance="davion"] {
- fill: red;
-}
-
-g#points use.counter[data-allegiance="liao"] {
- fill: green;
-}
-
g#points use.clone {
stroke: white;
stroke-width: 0.5px;
stroke-dasharray: 1;
}
-g#points use[data-allegiance="davion"].clone {
+g#points use[data-allegiance="defender"].clone {
fill: rgb(255, 126, 126);
}
-g#points use[data-allegiance="liao"].clone {
+g#points use[data-allegiance="attacker"].clone {
fill: rgb(130, 190, 130);
}
-
-/* ======================================================= */
-
-/* g#counters {
- pointer-events: none;
-} */
-
-/* g#counters use {
- r: 5px;
-}
-
-g#counters use:hover {
- stroke: orange;
- stroke-width: 2px;
- r: 8px;
-} */
-
-/* g#counters use[data-allegiance="davion"] {
- fill: red;
-}
-
-g#counters use[data-allegiance="liao"] {
- fill: green;
-} */
-
-/* g#counters use.clone {
- stroke: white;
- stroke-width: 0.5px;
- stroke-dasharray: 1;
-}
-
-g#counters use[data-allegiance="davion"].clone {
- fill: rgb(255, 126, 126);
-}
-
-g#counters use[data-allegiance="liao"].clone {
- fill: rgb(130, 190, 130);
-} */
-
text.counter, #troop-counter text {
font-size: 12px;
font-weight: bold;
@@ -314,11 +266,11 @@ text.counter, #troop-counter text {
user-select: none;
}
-polygon.firing-arc[data-allegiance="davion"] {
+polygon.firing-arc[data-allegiance="defender"] {
fill: red;
}
-polygon.firing-arc[data-allegiance="liao"] {
+polygon.firing-arc[data-allegiance="attacker"] {
fill: green;
}
@@ -353,11 +305,11 @@ button.set-firing-arc img {
background-color: white;
}
-.soldier-record[data-allegiance="liao"] [slot="troop-number"] svg {
+.soldier-record[data-allegiance="attacker"] [slot="troop-number"] svg {
fill: green;
}
-.soldier-record[data-allegiance="davion"] [slot="troop-number"] svg {
+.soldier-record[data-allegiance="defender"] [slot="troop-number"] svg {
fill: red;
}
@@ -377,11 +329,11 @@ button.set-firing-arc img {
font-family: monospace;
}
-.soldier-record[data-allegiance="davion"] [slot="troop-number"] img {
+.soldier-record[data-allegiance="defender"] [slot="troop-number"] img {
fill: red;
}
-.soldier-record[data-allegiance="liao"] [slot="troop-number"] img {
+.soldier-record[data-allegiance="attacker"] [slot="troop-number"] img {
fill: green;
}
@@ -419,6 +371,10 @@ img.logo {
display: none;
}
+#map-dialog {
+ border: 1px solid black;
+}
+
@media (width >= 1800px) {
#record-sheet {
flex-direction: row;