From ae3ee8ada5b9543b2c17b92636c8ca659557471b Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 29 Jan 2018 16:28:32 +0100 Subject: [PATCH] Music player styles --- .../backend/http/static/css/application.css | 20 +++++++---- platypush/backend/http/static/js/music.mpd.js | 2 +- .../http/templates/plugins/music.mpd.html | 36 ++++++++++--------- 3 files changed, 34 insertions(+), 24 deletions(-) diff --git a/platypush/backend/http/static/css/application.css b/platypush/backend/http/static/css/application.css index d6e80c2e0..699b420e8 100644 --- a/platypush/backend/http/static/css/application.css +++ b/platypush/backend/http/static/css/application.css @@ -24,24 +24,32 @@ main { margin: auto; } + ul.tab-nav { + padding-left: 0 !important; /* Override skeleton-tabs default */ + } + .tab-content { border: 1px solid #bbb; border-top: 0; padding: 20px; - margin: -25px 0 auto 5px; + margin-top: -25px; } .playback-controls { - text-align: right; + text-align: center; } .button[disabled] { background: rgba(240,240,240,1) } - - .now-playing > .artist { - font-weight: bold; - display: block; + .track-info { + text-align: center; + margin-bottom: 15px; } + .track-info > .artist { + font-weight: bold; + display: block; + } + diff --git a/platypush/backend/http/static/js/music.mpd.js b/platypush/backend/http/static/js/music.mpd.js index 7dddd950b..adec3d4a2 100644 --- a/platypush/backend/http/static/js/music.mpd.js +++ b/platypush/backend/http/static/js/music.mpd.js @@ -27,7 +27,7 @@ $(document).ready(function() { var updateControls = function(status, track) { var $playbackControls = $('.playback-controls'); - var $curTrack = $('.now-playing'); + var $curTrack = $('.track-info'); if (status) { switch (status.state.toLowerCase()) { diff --git a/platypush/backend/http/templates/plugins/music.mpd.html b/platypush/backend/http/templates/plugins/music.mpd.html index 64abdb721..6d5fba519 100644 --- a/platypush/backend/http/templates/plugins/music.mpd.html +++ b/platypush/backend/http/templates/plugins/music.mpd.html @@ -1,32 +1,34 @@
-
+
No media is being played
-
- +
+
+ - + - + - + - + +