summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-22 14:34:05 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-22 14:34:05 +0200
commitb14e4c570bda72661a672cd74d5cc7649d39c407 (patch)
treedfce15eba367f1053270bb4222c6e7d125aa5dac
parent09909588d69878b1a3cb10adc497f82eb3f9c85d (diff)
downloadrommel-in-the-desert-b14e4c570bda72661a672cd74d5cc7649d39c407.tar.gz
Add title bar icon to battle boxes.
-rw-r--r--gui_box_maximize.svg3
-rw-r--r--gui_box_minimize.svg3
-rw-r--r--play.css10
3 files changed, 16 insertions, 0 deletions
diff --git a/gui_box_maximize.svg b/gui_box_maximize.svg
new file mode 100644
index 0000000..038c71a
--- /dev/null
+++ b/gui_box_maximize.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="16">
+<path stroke-width="3" stroke="gold" fill="none" d="M 14 5 L 8 11 L 2 5" />
+</svg>
diff --git a/gui_box_minimize.svg b/gui_box_minimize.svg
new file mode 100644
index 0000000..add3008
--- /dev/null
+++ b/gui_box_minimize.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="16">
+<path stroke-width="3" stroke="gold" fill="none" d="M 14 11 L 8 5 L 2 11" />
+</svg>
diff --git a/play.css b/play.css
index 1536227..d32185e 100644
--- a/play.css
+++ b/play.css
@@ -103,11 +103,16 @@ header.your_turn { background-color: orange; }
min-height: 24px;
text-align: center;
font-weight: bold;
+
+ background-repeat: no-repeat;
+ background-position: 100% 50%;
+ background-image: url(gui_box_maximize.svg);
}
#battle[open] #battle_header {
cursor: n-resize;
border-bottom: 1px solid black;
+ background-image: url(gui_box_minimize.svg);
}
#battle_message {
@@ -171,11 +176,16 @@ header.your_turn { background-color: orange; }
min-height: 24px;
text-align: center;
font-weight: bold;
+
+ background-repeat: no-repeat;
+ background-position: 100% 50%;
+ background-image: url(gui_box_maximize.svg);
}
#pursuit[open] #pursuit_header {
cursor: n-resize;
border-bottom: 1px solid black;
+ background-image: url(gui_box_minimize.svg);
}
#pursuit_hits {