Skip to content

Commit 62d146a

Browse files
committed
Scrollbar style, close DIYgod#72
1 parent fa0017c commit 62d146a

6 files changed

Lines changed: 20 additions & 6 deletions

File tree

demo/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ var ap5 = new APlayer({
107107
mutex: true,
108108
theme: '#ad7a86',
109109
mode: 'random',
110-
listmaxheight: '60px',
110+
listmaxheight: '80px',
111111
music: [
112112
{
113113
title: 'あっちゅ~ま青春!',

dist/APlayer.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/APlayer.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aplayer",
3-
"version": "1.5.2",
3+
"version": "1.5.3",
44
"description": "Wow, such a beautiful html5 music player",
55
"main": "dist/APlayer.min.js",
66
"scripts": {

src/APlayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
console.log("\n %c APlayer 1.5.2 %c http://aplayer.js.org \n\n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;");
1+
console.log("\n %c APlayer 1.5.3 %c http://aplayer.js.org \n\n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;");
22

33
require('./APlayer.scss');
44

src/APlayer.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,20 @@ $aplayer-height-lrc: $aplayer-height + $lrc-height;
343343
height: 0 !important;
344344
}
345345

346+
&::-webkit-scrollbar{
347+
width: 5px;
348+
}
349+
&::-webkit-scrollbar-track{
350+
background-color: #f9f9f9;
351+
}
352+
&::-webkit-scrollbar-thumb{
353+
border-radius: 3px;
354+
background-color: #eee;
355+
}
356+
&::-webkit-scrollbar-thumb:hover{
357+
background-color: #ccc;
358+
}
359+
346360
ol {
347361
list-style-type: none;
348362
margin: 0;

0 commit comments

Comments
 (0)