mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-06 18:33:38 +02:00
Implement custom progress indicator and seeking
Squashed commit of the following:
commit 23b9a3deac564bf3753a00238784a6045cb50d46
Author: Arne Schlüter <arne@schlueter.is>
Date: Sun Oct 14 10:20:08 2018 +0200
Enable seeking in buffered part and fix drawn x value
commit 9ce4b0941f4a57286f608d2b155658672cac3817
Author: Arne Schlüter <arne@schlueter.is>
Date: Sun Oct 14 09:40:43 2018 +0200
Draw seek position and enable seeking played part by click
commit 58cbf2d8035c0eeacaed3da7a68f97d94db4a2b6
Author: Arne Schlüter <arne@schlueter.is>
Date: Thu Oct 11 21:42:57 2018 +0200
Add retina canvas
commit 6acb84a67e4bee61e5b9ae6eb15e8159e0431662
Author: Arne Schlüter <arne@schlueter.is>
Date: Wed Oct 10 17:52:43 2018 +0200
Implement canvas progress bar
This commit is contained in:
parent
d6295786b2
commit
513169ea71
9 changed files with 211 additions and 74 deletions
|
|
@ -41,6 +41,9 @@
|
|||
.audio-interaction
|
||||
flex-grow: 1
|
||||
|
||||
.media-left
|
||||
margin-right: 0
|
||||
|
||||
.level-left
|
||||
flex-grow: 1
|
||||
flex-shrink: 0
|
||||
|
|
@ -64,22 +67,37 @@
|
|||
flex-grow: 1
|
||||
align-items: center
|
||||
|
||||
.current-song-info
|
||||
progress
|
||||
.current-song-info
|
||||
display: flex
|
||||
align-items: center
|
||||
|
||||
.current-name,
|
||||
.current-progress
|
||||
padding: .5rem
|
||||
|
||||
.current-name
|
||||
width: 30%
|
||||
font-size: .8rem
|
||||
white-space: nowrap
|
||||
text-overflow: ellipsis
|
||||
overflow: hidden
|
||||
|
||||
.current-progress
|
||||
flex-grow: 1
|
||||
position: relative
|
||||
|
||||
.buffered-part
|
||||
position: absolute
|
||||
top: .5rem
|
||||
left: .5rem
|
||||
height: 1rem
|
||||
cursor: pointer
|
||||
|
||||
.current-progress-canvas
|
||||
display: block
|
||||
height: 1rem
|
||||
width: 100%
|
||||
|
||||
.progress.is-tiny
|
||||
height: .25rem
|
||||
|
||||
// cover images
|
||||
.image.is-256x256
|
||||
width: 256px
|
||||
height: 256px
|
||||
|
||||
.missing-cover
|
||||
display: block
|
||||
display: inline-block
|
||||
|
||||
// preview card for album or artist listings
|
||||
.preview-card
|
||||
.card-content > div,
|
||||
|
|
@ -96,6 +114,23 @@
|
|||
max-height: 256px
|
||||
margin: 0
|
||||
|
||||
.image
|
||||
.missing-cover
|
||||
display: block
|
||||
max-width: 100%
|
||||
|
||||
&.is-48x48 .missing-cover
|
||||
width: 48px
|
||||
height: 48px
|
||||
|
||||
&.is-128x128 .missing-cover
|
||||
width: 128px
|
||||
height: 128px
|
||||
|
||||
&.is-256x256 .missing-cover
|
||||
width: 256px
|
||||
height: 256px
|
||||
|
||||
// occurs in album detail view
|
||||
.table
|
||||
.grow
|
||||
|
|
@ -103,8 +138,14 @@
|
|||
|
||||
// duh
|
||||
.song-list
|
||||
.song.is-playing
|
||||
background-color: $light !important
|
||||
.song
|
||||
.duration
|
||||
padding-left: .5rem
|
||||
color: $grey-light
|
||||
|
||||
.is-playing
|
||||
background-color: $light !important
|
||||
font-weight: bold
|
||||
|
||||
// occurs on many pages at the top to show details
|
||||
.hero
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue