From 74ec028d95331b2a66723bf891fa28e6b47239a7 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Wed, 23 May 2018 18:53:09 +0200 Subject: Puts some armor on the characters. Also adds a file missing from the previous commit. --- src/battlemap/www/index.html | 1 + src/battlemap/www/style.css | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) (limited to 'src/battlemap/www') diff --git a/src/battlemap/www/index.html b/src/battlemap/www/index.html index d019783..9b216f9 100644 --- a/src/battlemap/www/index.html +++ b/src/battlemap/www/index.html @@ -5,6 +5,7 @@ + diff --git a/src/battlemap/www/style.css b/src/battlemap/www/style.css index ffd32d5..e2b5151 100644 --- a/src/battlemap/www/style.css +++ b/src/battlemap/www/style.css @@ -224,6 +224,27 @@ height: 100px; } +.battlemap-character-portrait * +{ + box-sizing: border-box; + background-size: 100% 100%; + width: inherit; + height: inherit; +} + +.battlemap-character-portrait-body +{ + z-index: 1; +} + +.battlemap-character-portrait-armor +{ + position: relative; + z-index: 1; + top: -100%; + background-size: 200% 100%; +} + .battlemap-timeline-element, .battlemap-characters-element { -- cgit v1.2.3-70-g09d2