From 6bf172bf474cf974542ba4104edb056b09455803 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Sun, 10 Jul 2011 04:01:14 -0400 Subject: [PATCH] Demo cleanup/enhance --- css/demo.css | 35 +++++++++++++-- index.html | 122 +++++++++++++++++++++++++++++---------------------- 2 files changed, 100 insertions(+), 57 deletions(-) diff --git a/css/demo.css b/css/demo.css index 3194363..76f668b 100644 --- a/css/demo.css +++ b/css/demo.css @@ -18,8 +18,35 @@ blockquote, q { quotes: "" ""; } html { color: #333; - font: normal 30px/34px helvetica, arial, sans-serif; + font: normal 24px/28px helvetica, arial, sans-serif; padding: 0px; - text-align: center; - background: #f9f9f9; -} \ No newline at end of file + background: #fff; + overflow: hidden !important; +} + +body { overflow: hidden !important; padding: 20px; } + +h1 { background-color: #42a2cc; color: #f9f9f9; font-size: 50px; padding: 10px; } + +a, a:visited { + background-color: #42a2cc; + color: #f9f9f9; + padding: 3px 5px; + text-decoration: none; + display: inline-block; +} + +a:hover { background-color: #147ba8; } + +p { + padding: 10px; + margin-bottom: 10px; +} + +/* "Players". ;) */ +.player { position: absolute; top: 740; width: 46px; height: 46px; border: 2px solid #010101; padding: 10px; } +.player span { background-color: #f9f9f9; padding: 5px; font-weight: bold; } +#player_1 { background-color: #ef1419; color: #ef1419; left: 500px; } +#player_2 { background-color: #13c32c; color: #13c32c; left: 580px; } +#player_3 { background-color: #e6d01a; color: #e6d01a; left: 660px; } +#player_4 { background-color: #af0bb1; color: #af0bb1; left: 740px; } \ No newline at end of file diff --git a/index.html b/index.html index 325207e..246265d 100644 --- a/index.html +++ b/index.html @@ -14,9 +14,9 @@

- This demo is really simple, and works best with two Wii remotes (Wiimotes). Hold either Wiimote #1 or #2 horizontal (sideways), and use - the directional pad to move the box floating in the bottom right corner around. Wiimote #1 will turn the box red and fill it with a "1", - and Wiimote #2 will turn the box green and fill it with a "2". Have fun! + This demo is really simple, and works best with all Wii remotes (Wiimotes). Hold a Wiimote horizontal (sideways), and use + the directional pad to move a box floating in the bottom right corner around. Wiimote #1 is red, #2 is green, #3 is yellow, #4 is purple. + Have fun!

@@ -29,69 +29,85 @@ - Ryan McGrath

-
x
+
1
+
2
+
3
+
4