aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/static/css
diff options
context:
space:
mode:
authorJoar Wandborg <git@wandborg.com>2012-03-29 16:06:36 +0200
committerJoar Wandborg <git@wandborg.com>2012-03-29 16:06:36 +0200
commit97e40b52854a4177ac5da62ca567d4003867e08b (patch)
treed56d3880869841c322df2c3c97c13ee7def831f2 /mediagoblin/static/css
parent352a1807659b0977c0ccdb8d4bad64aa4f5b5277 (diff)
downloadmediagoblin-97e40b52854a4177ac5da62ca567d4003867e08b.tar.lz
mediagoblin-97e40b52854a4177ac5da62ca567d4003867e08b.tar.xz
mediagoblin-97e40b52854a4177ac5da62ca567d4003867e08b.zip
Seeking works in firefox
- Added support for indicating multiple buffered ranges (Firefox) - Added volume slider (Chromium) - Replaced stop button with faux pause button - Added 'ended' event handler
Diffstat (limited to 'mediagoblin/static/css')
-rw-r--r--mediagoblin/static/css/audio.css43
1 files changed, 37 insertions, 6 deletions
diff --git a/mediagoblin/static/css/audio.css b/mediagoblin/static/css/audio.css
index 5f7a888a..387278ec 100644
--- a/mediagoblin/static/css/audio.css
+++ b/mediagoblin/static/css/audio.css
@@ -10,6 +10,7 @@
height: 100%;
-webkit-transition: width .1s ease-out;
-moz-transition: width .1s ease-out;
+ transition: width .1s ease-out;
}
.audio-control-play-pause {
position: absolute;
@@ -23,21 +24,37 @@
}
.audio-control-play-pause.playing {
color: #b71500;
+ letter-spacing: -17px;
+ margin-left: -7px;
}
.audio-control-play-pause.paused {
+ /* Warning: this means the the play button shows! */
color: rgb(134, 212, 177);
}
-.buffered {
+
+.buffered-indicators {
position: absolute;
bottom: 0;
left: 0;
height: 2px;
- width: 0;
- -webkit-transition: width 1s ease-out;
- -moz-transition: width 1s ease-out;
- background: rgba(134, 177, 212, 1);
- cursor: pointer;
}
+ .buffered-indicators div {
+ position: absolute;
+ height: 2px;
+ left: 0;
+ background: rgba(134, 177, 212, 1);
+
+ -webkit-transition: left 1s ease-out;
+ -moz-transition: left 1s ease-out;
+ transition: left 1s ease-out;
+
+ -webkit-transition: width 1s ease-out;
+ -moz-transition: width 1s ease-out;
+ transition: width 1s ease-out;
+
+ cursor: pointer;
+ }
+
.seekbar {
position: absolute;
top: 0;
@@ -45,9 +62,23 @@
width: 100%;
height: 100%;
}
+
.audio-currentTime {
position: absolute;
bottom: 0;
right: 0;
background: rgba(0, 0, 0, 0.7);
}
+
+.audio-volume {
+ position: absolute;
+ left: 50px;
+ bottom: 10px;
+ opacity: 0.3;
+ -moz-transition: opacity .1s ease-in-out;
+ -webkit-transition: opacity .1s ease-in-out;
+ transition: opacity .1s ease-in-out;
+}
+ .audio-spectrogram:hover .audio-volume {
+ opacity: 1;
+ }