summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2017-11-30 16:05:43 +0100
committernsensfel <SpamShield0@noot-noot.org>2017-11-30 16:05:43 +0100
commit2d030cbc89e4bf14fc584a83417d59fc86640202 (patch)
treef3ae7159a0eb5c15516aee18ffff7aaeb1d06770 /src/battlemap/www/style.css
parent68e6ad689deabed93ebfb41abea90d9fe4911179 (diff)
Fixes 'battlemap-actual' div having 0x0 size.
Diffstat (limited to 'src/battlemap/www/style.css')
-rw-r--r--src/battlemap/www/style.css23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/battlemap/www/style.css b/src/battlemap/www/style.css
index e208b27..b8f60ff 100644
--- a/src/battlemap/www/style.css
+++ b/src/battlemap/www/style.css
@@ -20,16 +20,34 @@
/** Inside the container ******************************************************/
.battlemap-tiled
{
- position: absolute;
height: 32px;
width: 32px;
+ /** Fixes odd behavior of table cell being resized. **/
+ min-width: 32px;
+ max-width: 32px;
}
-.battlemap-tile-icon {z-index: 0;}
+.battlemap-tile-icon {z-index: 0; display: table-cell;}
.battlemap-marker-icon {z-index: 1;}
.battlemap-character-icon {z-index: 2;}
.battlemap-path-icon {z-index: 3; color: white;}
+.battlemap-marker-icon,
+.battlemap-character-icon,
+.battlemap-path-icon
+{
+ position: absolute;
+}
+.battlemap-tiles-layer
+{
+ display: table;
+}
+
+.battlemap-tiles-layer-row
+{
+ display: table-row;
+}
+
.battlemap-character-icon
{
box-sizing: border-box;
@@ -52,6 +70,7 @@
filter: grayscale(50%);
border: 2px dotted rgba(0,0,0,0.7);
}
+
/**** Path Icons **************************************************************/
.battlemap-path-icon-NR:before,
.battlemap-path-icon-LR:before,