From c11d8f5366b6ff847f0a8387f9d020aebe0484f0 Mon Sep 17 00:00:00 2001 From: Edward Opare-Aryee Date: Mon, 27 Jul 2015 17:47:59 +0100 Subject: [PATCH] add controls to current view --- app/less/default/core/normalize.less | 2 +- app/less/default/modules/controls.less | 6 +++++- app/less/default/modules/track.less | 4 ++++ app/partials/player/current.html | 23 ++++++++++++++++++++++- 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/app/less/default/core/normalize.less b/app/less/default/core/normalize.less index 8d785d5a..02bf99ff 100644 --- a/app/less/default/core/normalize.less +++ b/app/less/default/core/normalize.less @@ -18,7 +18,7 @@ ng-view { position: fixed; top: @view-position-top; - .current ng-view { + .current & { bottom: 0; } } diff --git a/app/less/default/modules/controls.less b/app/less/default/modules/controls.less index 37b6f20c..2b6935bc 100644 --- a/app/less/default/modules/controls.less +++ b/app/less/default/modules/controls.less @@ -8,11 +8,15 @@ .flex-direction(row); .flex-wrap(nowrap); .justify-content(space-between); - background-color: @controls-bg; height: @controls-height; min-width: 340px; padding-right: 30px; text-align: right; + + .current & { + .justify-content(center); + padding-right: 0; + } } .playing-animation { diff --git a/app/less/default/modules/track.less b/app/less/default/modules/track.less index 2e63336e..21f10fb0 100644 --- a/app/less/default/modules/track.less +++ b/app/less/default/modules/track.less @@ -60,6 +60,10 @@ .align-self(center); margin-right: 20px; min-width: 400px; + + .current & { + margin-right: 0; + } } .track-body { diff --git a/app/partials/player/current.html b/app/partials/player/current.html index e5eb7037..723c49be 100644 --- a/app/partials/player/current.html +++ b/app/partials/player/current.html @@ -1,10 +1,12 @@ -
+
+
{{ track.track.name }} album cover

+

{{ track.track.name }}

@@ -16,4 +18,23 @@

+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+ +