diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2013-08-02 15:00:53 -0400 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2013-08-02 15:00:53 -0400 |
commit | da7e9cb61779882ad7033ed3f502bce3c676f00d (patch) | |
tree | e21fd77229cb11bc5363bbf536b36e54b68a0b74 /www | |
parent | a0e23f390c3e30af73bdd6eaab61a2f299124459 (diff) | |
download | html5ks-da7e9cb61779882ad7033ed3f502bce3c676f00d.tar.xz html5ks-da7e9cb61779882ad7033ed3f502bce3c676f00d.zip |
fix misc UI bugs
Diffstat (limited to 'www')
-rw-r--r-- | www/css/index.css | 12 | ||||
-rw-r--r-- | www/index.html | 2 |
2 files changed, 6 insertions, 8 deletions
diff --git a/www/css/index.css b/www/css/index.css index 15bbcba..c1ae018 100644 --- a/www/css/index.css +++ b/www/css/index.css @@ -156,12 +156,9 @@ html.no-js #gotit { } .centered { position: absolute; - top: 0; - bottom: 0; - height: 0; - width: 100%; margin: auto; - text-align: center; + left: 50%; + top: 50%; } .choice { background: url("../dump/ui/bg-choice.png") no-repeat top center; @@ -170,6 +167,7 @@ html.no-js #gotit { } #context > div { z-index: 20; + text-align: center; } #context-menu { background: url("../dump/ui/bg-gm.png") no-repeat top center; @@ -188,9 +186,9 @@ html.no-js #gotit { #context-info { font: 19px/22px Playtime; position: absolute; - top: auto; - height: auto; bottom: 10px; + text-align: center; + width: 100%; } /* main menu */ diff --git a/www/index.html b/www/index.html index cdf3882..8c4a615 100644 --- a/www/index.html +++ b/www/index.html @@ -103,7 +103,7 @@ <div id="main-menu" class="button">Main menu</div> <div class="quit button disabled">Quit</div> </div> - <div id="context-info" class="centered"> + <div id="context-info"> <div>Play time: <span id="play-time"></span></div> <div>Current scene: <span id="current-scene"></span></div> <div>Current music track: <span id="current-music-track"></span></div> |