From 1ce41b3ab1f0433e0cf009e645fbd37377c041d1 Mon Sep 17 00:00:00 2001 From: listen1 Date: Mon, 2 May 2016 20:44:52 +0800 Subject: [PATCH] add volume control --- css/player.css | 43 ++++++++++-- images/player_small.png | Bin 5480 -> 6408 bytes js/app.js | 109 ++++++++++++++++++++++------- js/vendor/angular-soundmanager2.js | 2 +- listen1.html | 17 ++++- 5 files changed, 137 insertions(+), 34 deletions(-) diff --git a/css/player.css b/css/player.css index 0ed2371..9afb08b 100644 --- a/css/player.css +++ b/css/player.css @@ -352,8 +352,21 @@ a { .m-pbar { position: relative; - margin-top: 14px; + +} + +.m-pbar.play { width: 80%; + margin-top: 14px; +} + +.m-pbar.volume { + position: absolute; + right: 13px; + bottom: 11px; + float: right; + width: 56%; + margin-top: 0px; } .m-pbar .barbg, .m-pbar .cur, .m-pbar .rdy { @@ -413,15 +426,13 @@ em, i { .m-playbar .ctrl { position: absolute; right: 0px; - bottom: 17px; + bottom: 48px; z-index: 10; - width: 110px; + width: 79px; padding-left: 13px; float: none; } - - .m-playbar .icn-add { background-position: -25px 0px; } @@ -434,6 +445,14 @@ em, i { background-position: -125px 0px; } +.m-playbar .icn-vol { + background-position: -175px 0px; +} + +.m-playbar .icn-vol-mute { + background-position: -200px 0px; +} + .m-playbar .icn-list:hover { background-position: -125px -25px; } @@ -446,6 +465,13 @@ em, i { background-position: -50px -25px; } +.m-playbar .icn-vol:hover { + background-position: -175px -25px; +} + +.m-playbar .icn-vol-mute:hover { + background-position: -200px -25px; +} .m-playbar .icn-shuffle { background-position: -150px 0px; @@ -506,6 +532,13 @@ em, i { background-position: -75px -25px; } +.volume-ctrl { + position: absolute; + right: 0px; + bottom: 16px; + width: 110px; +} + li { list-style: none; } diff --git a/images/player_small.png b/images/player_small.png index 28b55036b9ae9c31a64d844410865a3c7e938d54..d79cf4e403149252c3a83cba7c2e81dd23204eb6 100644 GIT binary patch delta 5653 zcmai&WmMEp*!N+{B?Rg24(XOyQb17YP9>HQS-O6dAR>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