summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-08-06 20:11:33 -0700
committerraylu <raylu@mixpanel.com>2011-08-06 20:11:33 -0700
commitdbeeffe4720c38737bc49bf3cb4fd080d08ea203 (patch)
treec4f3346b8b3c32cb3c8cce458c904ad56bdcbfb8
parent8f85f1a74cb9f8796638a00c5b78541d027b9845 (diff)
downloadaudioaxis-dbeeffe4720c38737bc49bf3cb4fd080d08ea203.tar.xz
condense display vertically
-rw-r--r--static/base.css9
-rw-r--r--static/script.js7
2 files changed, 8 insertions, 8 deletions
diff --git a/static/base.css b/static/base.css
index 00ad6f1..59ebd83 100644
--- a/static/base.css
+++ b/static/base.css
@@ -125,8 +125,8 @@ object#player {
section.song {
background-color: #111;
- padding: 15px 20px;
- margin-top: 10px;
+ padding: 10px 15px;
+ margin-top: 7px;
position: relative; /* for remove */
}
section.song div.info {
@@ -135,6 +135,7 @@ section.song div.info {
}
section.song div.user {
float: right;
+ margin-right: 8px;
}
section.song div.remove {
position: absolute;
@@ -145,7 +146,7 @@ section.song div.remove {
}
section.song div.thumb {
float: left;
- width: 150px;
+ width: 140px;
height: 90px;
overflow: hidden;
}
@@ -154,7 +155,7 @@ section.song div.thumb img {
}
section.song canvas, section.song > img {
position: relative;
- top: 20px;
+ left: 10px;
}
section.song > img[src$='pause.png'] {
display: none;
diff --git a/static/script.js b/static/script.js
index 9407689..8e8e137 100644
--- a/static/script.js
+++ b/static/script.js
@@ -171,15 +171,14 @@ function add(id, title) {
function drawAdd(s) {
$('article').append('\
<section class="song" id="' + s.yid + '">\
+ <div class="thumb">\
+ <img src="http://i.ytimg.com/vi/' + s.yid + '/1.jpg" alt="' + s.yid + '">\
+ </div>\
<div class="info">\
<a href="http://www.youtube.com/watch?v=' + s.yid + '">' + s.title + '</a>\
</div>\
<div class="user">' + s.user + '</div>\
<div class="remove" onclick="remove(\'' + s.yid + '\')">×</div>\
- <br class="clear">\
- <div class="thumb">\
- <img src="http://i.ytimg.com/vi/' + s.yid + '/1.jpg" alt="' + s.yid + '">\
- </div>\
<canvas id="c_' + s.yid + '" width="700" height="20"></canvas>\
<br>\
<img src="/static/player_play.png" alt="Play" onclick="play(\'' + s.yid + '\')" id="play_' + s.yid + '">\