From 49a65625e7a3728a34b7a252af1811cbf40c0a17 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Tue, 29 May 2018 20:55:09 +0200 Subject: Restores manual controls. --- src/battlemap/www/style.css | 44 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 6 deletions(-) (limited to 'src/battlemap/www/style.css') diff --git a/src/battlemap/www/style.css b/src/battlemap/www/style.css index 25e6b52..e714f83 100644 --- a/src/battlemap/www/style.css +++ b/src/battlemap/www/style.css @@ -108,13 +108,45 @@ .battlemap-manual-controls { - max-height: 30%; - width: inherit; - flex: initial; + width: 96px; + height: 96px; + display: grid; + grid-template: + '. top .' + 'left . right' + '. bottom .'; + margin: auto; +} - display: flex; - flex-direction: row; - flex-wrap: wrap; +.battlemap-manual-controls > * +{ + background-image: url(/asset/svg/arrowhead.svg); + background-size: 100%; + width: 32px; + height: 32px; +} + +.battlemap-manual-controls-up +{ + transform: rotate(-90deg); + grid-area: top; +} + +.battlemap-manual-controls-down +{ + transform: rotate(90deg); + grid-area: bottom; +} + +.battlemap-manual-controls-left +{ + transform: rotate(180deg); + grid-area: left; +} + +.battlemap-manual-controls-right +{ + grid-area: right; } /******************************************************************************/ -- cgit v1.2.3-70-g09d2