diff --git a/public/static/css/game.css b/public/static/css/game.css index bc87bbb..a23d889 100644 --- a/public/static/css/game.css +++ b/public/static/css/game.css @@ -150,39 +150,9 @@ } #navigation { - position: absolute; z-index: 2; } -#navigation .navigationItem { - margin-top: 10px; - opacity: 70%; - cursor: pointer; -} - -#navigation .navigationItem:hover { - opacity: 100%; -} - -#navigation .navigationItem div { - position: absolute; -} - -#navigation .circleBackground { - width: 100%; - height: 100%; - opacity: 50%; -} - -#navigation .navigationIcon { - width: 75%; - height: 75%; - margin: auto; - margin-top: 50%; - transform: translateY(-50%); - -ms-transform: translateY(-50%); -} - @media screen and (max-width: 599px) { #mapName { display: none; @@ -209,10 +179,6 @@ #navigation { bottom: 25px; left: 10px; - width: 45px; - } - #navigation .navigationItem { - height: 45px; } } @@ -260,10 +226,6 @@ #navigation { bottom: 50px; left: 20px; - width: 60px; - } - #navigation .navigationItem { - height: 60px; } @media screen and (max-height: 424px) { #guess { @@ -282,10 +244,6 @@ #navigation { bottom: 30px; left: 10px; - width: 45px; - } - #navigation .navigationItem { - height: 45px; } } } diff --git a/public/static/css/map_editor.css b/public/static/css/map_editor.css index 1b46865..26cd4bf 100644 --- a/public/static/css/map_editor.css +++ b/public/static/css/map_editor.css @@ -55,6 +55,12 @@ visibility: hidden; } +#overlayControl { + bottom: 20px; + right: 10px; + z-index: 3; +} + #deleteButton { display: none; } diff --git a/public/static/css/mapguesser.css b/public/static/css/mapguesser.css index 69bd7fc..7995753 100644 --- a/public/static/css/mapguesser.css +++ b/public/static/css/mapguesser.css @@ -443,6 +443,43 @@ div.box { box-sizing: border-box; } +.circleControl { + position: absolute; + width: 60px; + bottom: 20px; + right: 10px; +} + +.circleControl .controlItem { + height: 60px; + margin-top: 10px; + opacity: 70%; + cursor: pointer; +} + +.circleControl .controlItem:hover { + opacity: 100%; +} + +.circleControl .controlItem div { + position: absolute; +} + +.circleControl .controlBackground { + width: 100%; + height: 100%; + opacity: 50%; +} + +.circleControl .controlIcon { + width: 75%; + height: 75%; + margin: auto; + margin-top: 50%; + transform: translateY(-50%); + -ms-transform: translateY(-50%); +} + @media screen and (max-width: 599px) { header h1 span { display: none; @@ -469,6 +506,12 @@ div.box { div.box { width: initial; } + .circleControl { + width: 45px; + } + .circleControl .controlItem { + height: 45px; + } } @media screen and (min-width: 600px) { @@ -498,6 +541,12 @@ div.box { padding-top: 10px; padding-bottom: 10px; } + .circleControl { + width: 45px; + } + .circleControl .controlItem { + height: 45px; + } } @media screen and (min-height: 400px) and (max-height: 499px) { diff --git a/public/static/js/map_editor.js b/public/static/js/map_editor.js index b4e5308..2831aa5 100644 --- a/public/static/js/map_editor.js +++ b/public/static/js/map_editor.js @@ -403,7 +403,7 @@ LMapWrapper.loadMarkers(places); - document.getElementById('streetViewCoverSelector').disabled = true; + document.getElementById('streetViewCoverSelector').style.display = 'none'; }, hide: function () { @@ -536,7 +536,7 @@ GMapWrapper.loadMarkers(places); - document.getElementById('streetViewCoverSelector').disabled = false; + document.getElementById('streetViewCoverSelector').style.display = 'block' }, hide: function () { diff --git a/views/admin/map_editor.php b/views/admin/map_editor.php index 1510b6d..4b6da75 100644 --- a/views/admin/map_editor.php +++ b/views/admin/map_editor.php @@ -11,18 +11,13 @@ @extends(templates/layout_full) -@section(subheader) +@section(subheader) = $mapName ?> - - - - Jump @@ -71,6 +66,16 @@ + + + + + + + + + + diff --git a/views/game.php b/views/game.php index ad3d107..218b937 100644 --- a/views/game.php +++ b/views/game.php @@ -59,21 +59,21 @@ Play this map again - - + + - + - + - + - + - +