this.handleClick(e) } >
-
+
+
);
}
@@ -50,6 +63,7 @@ const mapStateToProps = (state, ownProps) => {
const mapDispatchToProps = (dispatch) => {
return {
+ uiActions: bindActionCreators(uiActions, dispatch),
mopidyActions: bindActionCreators(mopidyActions, dispatch)
}
}
diff --git a/src/scss/components/_modal.scss b/src/scss/components/_modal.scss
index 6e6fbd4d..ac276a29 100755
--- a/src/scss/components/_modal.scss
+++ b/src/scss/components/_modal.scss
@@ -202,6 +202,19 @@
}
}
+ &.volume {
+ .slider-wrapper {
+ position: absolute;
+ top: 10vh;
+ left: 45vw;
+ height: 80vh;
+
+ .track {
+ width: 10vw;
+ }
+ }
+ }
+
.actions {
padding-top: 50px;
text-align: center;
diff --git a/src/scss/components/_player.scss b/src/scss/components/_player.scss
index baae2eb4..f671fe93 100755
--- a/src/scss/components/_player.scss
+++ b/src/scss/components/_player.scss
@@ -1,4 +1,52 @@
+.volume-control {
+ position: relative;
+
+ a {
+ position: relative;
+ z-index: 99;
+ padding: 0 !important;
+ }
+
+ .fa {
+ width: 6px;
+ padding: 12px;
+ }
+
+ .slider-wrapper {
+ display: none;
+ position: absolute;
+ bottom: -8px;
+ left: 1px;
+ height: 80px;
+ padding: 10px 5px 35px 5px;
+ background: rgba(0,0,0,0.8);
+ z-index: 98;
+ }
+
+ &.muted {
+ .fa {
+ color: $red;
+ }
+
+ .slider {
+ .progress {
+ background: rgba(255,255,255,0.25);
+ }
+ }
+ }
+
+ .modal-trigger {
+ display: none !important;
+ }
+
+ .hover-trigger:hover {
+ .slider-wrapper {
+ display: block;
+ }
+ }
+}
+
.player {
.current-track {
@@ -115,6 +163,14 @@
padding: 12px;
}
+ .hover-trigger {
+ display: none;
+ }
+
+ .modal-trigger {
+ display: block !important;
+ }
+
.slider-wrapper {
bottom: 2px;
left: 0;
@@ -144,47 +200,3 @@
}
}
}
-
-.volume-control {
- position: relative;
-
- a {
- position: relative;
- z-index: 99;
- padding: 0 !important;
- }
-
- .fa {
- width: 6px;
- padding: 12px;
- }
-
- .slider-wrapper {
- display: none;
- position: absolute;
- bottom: -8px;
- left: 1px;
- height: 80px;
- padding: 10px 5px 35px 5px;
- background: rgba(0,0,0,0.8);
- z-index: 98;
- }
-
- &.muted {
- .fa {
- color: $red;
- }
-
- .slider {
- .progress {
- background: rgba(255,255,255,0.25);
- }
- }
- }
-
- &:hover {
- .slider-wrapper {
- display: block;
- }
- }
-}
\ No newline at end of file