# HG changeset patch # User hamidouk # Date 1322496776 -3600 # Node ID 9799f50b7ac51a5931062b548f649591b6981283 # Parent 53b3d9c4909662db587c82405efa273b8c23066f WIP - integrating sprites for the play button. diff -r 53b3d9c49096 -r 9799f50b7ac5 assets/play.psd Binary file assets/play.psd has changed diff -r 53b3d9c49096 -r 9799f50b7ac5 src/css/LdtPlayer.css --- a/src/css/LdtPlayer.css Mon Nov 28 15:21:53 2011 +0100 +++ b/src/css/LdtPlayer.css Mon Nov 28 17:12:56 2011 +0100 @@ -12,6 +12,11 @@ float:left; } + /* general class for all buttons */ + .Ldt-button { + + } + .Ldt-AnnotationsWidget { font-size: 62.5%; font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; @@ -151,9 +156,11 @@ float: right; } - .Ldt-CtrlPlay { - background:url('imgs/play.png') no-repeat scroll 0 0 transparent ; - background-position: center; + /* we need a container to contain our buttons because we want + them centered and there's no way to position them this way + while at the same time using sprites + */ + .Ldt-ButtonContainer { width: 50px; height: 25px; border-left: 1px solid #b6b8b8; @@ -161,8 +168,24 @@ float: left; } + .Ldt-CtrlPlay { + background:url('imgs/play_sprite.png') no-repeat transparent ; + background-position: 0 0; + width: 16px; + height: 25px; + margin: 0 auto; + } + + .Ldt-CtrlPlay:hover { + background:url('imgs/play_sprite.png') no-repeat transparent ; + background-position: 0 -25px; + width: 16px; + height: 25px; + margin: 0 auto; + } + .Ldt-CtrlNext { - background:url('imgs/play_button.png') no-repeat scroll 0 0 transparent ; + background:url('imgs/play_sprite.png') no-repeat scroll 0 0 transparent ; background-position: center; width: 50px; height: 25px; diff -r 53b3d9c49096 -r 9799f50b7ac5 src/css/imgs/play_sprite.png Binary file src/css/imgs/play_sprite.png has changed diff -r 53b3d9c49096 -r 9799f50b7ac5 src/templates/player.html --- a/src/templates/player.html Mon Nov 28 15:21:53 2011 +0100 +++ b/src/templates/player.html Mon Nov 28 17:12:56 2011 +0100 @@ -1,9 +1,11 @@ {{! template for the radio player }}
-
-
-
+
+
+
+
+
@@ -11,6 +13,6 @@
/
-
Sound
+
Sound