summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-11-04 01:04:42 -0700
committerraylu <raylu@mixpanel.com>2011-11-04 01:04:50 -0700
commit3f0de294ff9450acc84c64c4c6bc890f5c1cd034 (patch)
treebc4c2212fc0db52ceed1782f77365d74ff9c0f0a
parent684831bf81eb9343b0bd91ca2b2fc8679e88c721 (diff)
downloadaudioaxis-3f0de294ff9450acc84c64c4c6bc890f5c1cd034.tar.xz
new, shorter layout for songs
-rw-r--r--static/p.css16
-rw-r--r--static/script.js10
2 files changed, 14 insertions, 12 deletions
diff --git a/static/p.css b/static/p.css
index a67cdab..323d470 100644
--- a/static/p.css
+++ b/static/p.css
@@ -75,7 +75,6 @@ section.song {
position: relative; /* for remove */
}
section.song div.info {
- margin-bottom: 10px;
float: left;
}
section.song div.user {
@@ -108,16 +107,15 @@ section.song div.reorder img:hover {
}
section.song div.thumb {
float: left;
- width: 140px;
- height: 90px;
+ width: 100px;
+ height: 60px;
overflow: hidden;
}
section.song div.thumb img {
- height: 90px;
+ height: 60px;
}
-section.song canvas, section.song > img {
- position: relative;
- left: 5px;
+section.song > img {
+ margin-top: 16px;
}
section.song > img[src$='pause.png'] {
display: none;
@@ -128,3 +126,7 @@ section.song > img {
section.song > img:hover {
opacity: 1.0;
}
+section.song canvas {
+ margin: 15px 0 0 18px;
+ vertical-align: middle;
+}
diff --git a/static/script.js b/static/script.js
index 4274c9c..4701536 100644
--- a/static/script.js
+++ b/static/script.js
@@ -278,11 +278,6 @@ function drawAdd(s) {
)
)
)
- .append($(document.createElement('canvas'))
- .attr('id', 'c_' + s.yid)
- .attr('width', 700)
- .attr('height', 20)
- )
.append($(document.createElement('br')))
.append($(document.createElement('img'))
.attr('src', '/static/player_play.png')
@@ -301,6 +296,11 @@ function drawAdd(s) {
.attr('alt', 'stop')
.click(function() {stop(s.yid)})
)
+ .append($(document.createElement('canvas'))
+ .attr('id', 'c_' + s.yid)
+ .attr('width', 700)
+ .attr('height', 20)
+ )
.append($(document.createElement('br'))
.addClass('clear')
)