default pic, fix css conflict
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
+1
-1
@@ -21,7 +21,7 @@ gulp.task('browser-sync', function() {
|
||||
gulp.task('copy', function () {
|
||||
gulp.src('src/font/*')
|
||||
.pipe(gulp.dest('dist/font'));
|
||||
gulp.src('src/*.jpg')
|
||||
gulp.src(['src/*.jpg', 'src/*.png'])
|
||||
.pipe(gulp.dest('dist'));
|
||||
});
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "aplayer",
|
||||
"version": "1.2.7",
|
||||
"version": "1.2.8",
|
||||
"description": "Wow, such a beautiful html5 music player",
|
||||
"main": "APlayer.js",
|
||||
"scripts": {
|
||||
|
||||
+5
-1
@@ -52,7 +52,6 @@ APlayer.prototype.init = function () {
|
||||
// fill in HTML
|
||||
this.element.innerHTML = ''
|
||||
+ '<div class="aplayer-pic">'
|
||||
+ '<img src="' + this.music.pic + '">'
|
||||
+ '<div class="aplayer-button aplayer-pause aplayer-hide">'
|
||||
+ '<i class="demo-icon aplayer-icon-pause"></i>'
|
||||
+ '</div>'
|
||||
@@ -91,6 +90,11 @@ APlayer.prototype.init = function () {
|
||||
+ '</div>'
|
||||
+ '</div>';
|
||||
|
||||
// music pic
|
||||
if (this.music.pic) {
|
||||
this.element.getElementsByClassName('aplayer-pic')[0].style.backgroundImage = 'url(' + this.music.pic + ')';
|
||||
}
|
||||
|
||||
// fill in lrc
|
||||
if (this.option.showlrc) {
|
||||
this.element.classList.add('aplayer-withlrc');
|
||||
|
||||
+6
-9
@@ -111,11 +111,8 @@ $aplayer-height-lrc: $aplayer-height + $lrc-height;
|
||||
float: left;
|
||||
height: $aplayer-height;
|
||||
width: $aplayer-height;
|
||||
|
||||
img {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
background-image: url(./default.png);
|
||||
background-size: 100%;
|
||||
|
||||
.aplayer-button {
|
||||
position: absolute;
|
||||
@@ -336,10 +333,10 @@ $aplayer-height-lrc: $aplayer-height + $lrc-height;
|
||||
p {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
line-height: 20px;
|
||||
height: 20px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: 20px !important;
|
||||
height: 20px !important;
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
transition: all 0.5s ease-out;
|
||||
opacity: 0.4;
|
||||
overflow: hidden;
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
Reference in New Issue
Block a user