mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-07 02:33:39 +02:00
Volume Controls (#46)
* Implement always-visible volume controls * Implement toggling of volume controls * Change icon based on volume level * Add volume control keyboard shortcuts * Check left mouse button for all events fired when changing the volume
This commit is contained in:
parent
058b8377a8
commit
53748941c0
5 changed files with 152 additions and 15 deletions
|
|
@ -122,13 +122,63 @@
|
|||
fill: $dark-invert
|
||||
|
||||
// buttons to control current playback and playlist behavior
|
||||
.playback-controls,
|
||||
.playback-mode-controls
|
||||
.button-controls
|
||||
position: relative
|
||||
flex-shrink: 0
|
||||
padding-right: .6rem
|
||||
|
||||
.playback-controls
|
||||
padding-left: .6rem
|
||||
&:first-of-type
|
||||
padding-left: .6rem
|
||||
|
||||
.button-menu
|
||||
svg.volume-bar
|
||||
overflow: visible
|
||||
|
||||
.inactive
|
||||
fill: $background
|
||||
|
||||
.active
|
||||
fill: $link
|
||||
|
||||
.click-dummy
|
||||
cursor: pointer
|
||||
fill: transparent
|
||||
|
||||
.button-menu-closer
|
||||
// this element is needed so we can have a "click-outside"
|
||||
position: fixed
|
||||
z-index: -1
|
||||
top: 0
|
||||
left: 0
|
||||
right: 0
|
||||
bottom: 0
|
||||
|
||||
.button-menu
|
||||
position: absolute
|
||||
z-index: 100
|
||||
width: 36px
|
||||
bottom: calc(100% + .3em)
|
||||
padding: $button-padding-horizontal $button-padding-horizontal / 2
|
||||
|
||||
border-radius: $radius
|
||||
background: $white
|
||||
color: $dark
|
||||
box-shadow: 0 0 2px rgba(0,0,0,.1), 0 0 4px rgba(0,0,0,.1)
|
||||
|
||||
// little arrow at the bottom
|
||||
&::after
|
||||
position: absolute
|
||||
content: ''
|
||||
display: block
|
||||
width: 6px
|
||||
height: 6px
|
||||
background: inherit
|
||||
top: 100%
|
||||
left: 50%
|
||||
margin-left: -3px
|
||||
margin-top: -3px
|
||||
transform: rotate(45deg)
|
||||
box-shadow: 2px 2px 1px rgba(0,0,0,.1)
|
||||
|
||||
// preview card for album or artist listings
|
||||
.preview-card
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue