Music player styles
This commit is contained in:
parent
557cb3460b
commit
ae3ee8ada5
3 changed files with 34 additions and 24 deletions
|
@ -24,23 +24,31 @@ main {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul.tab-nav {
|
||||||
|
padding-left: 0 !important; /* Override skeleton-tabs default */
|
||||||
|
}
|
||||||
|
|
||||||
.tab-content {
|
.tab-content {
|
||||||
border: 1px solid #bbb;
|
border: 1px solid #bbb;
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
margin: -25px 0 auto 5px;
|
margin-top: -25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.playback-controls {
|
.playback-controls {
|
||||||
text-align: right;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button[disabled] {
|
.button[disabled] {
|
||||||
background: rgba(240,240,240,1)
|
background: rgba(240,240,240,1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.track-info {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
.now-playing > .artist {
|
.track-info > .artist {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
var updateControls = function(status, track) {
|
var updateControls = function(status, track) {
|
||||||
var $playbackControls = $('.playback-controls');
|
var $playbackControls = $('.playback-controls');
|
||||||
var $curTrack = $('.now-playing');
|
var $curTrack = $('.track-info');
|
||||||
|
|
||||||
if (status) {
|
if (status) {
|
||||||
switch (status.state.toLowerCase()) {
|
switch (status.state.toLowerCase()) {
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
<script type="text/javascript" src="{{ url_for('static', filename='js/music.mpd.js') }}"></script>
|
<script type="text/javascript" src="{{ url_for('static', filename='js/music.mpd.js') }}"></script>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="six columns now-playing">
|
<div class="ten columns offset-by-one track-info">
|
||||||
<span class="no-track">No media is being played</span>
|
<span class="no-track">No media is being played</span>
|
||||||
<span class="artist"></span>
|
<span class="artist"></span>
|
||||||
<span class="track"></span>
|
<span class="track"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="six columns playback-controls">
|
<div class="row">
|
||||||
|
<div class="eight columns offset-by-two playback-controls">
|
||||||
<button data-action="previous">
|
<button data-action="previous">
|
||||||
<i class="fa fa-step-backward"></i>
|
<i class="fa fa-step-backward"></i>
|
||||||
</button>
|
</button>
|
||||||
|
@ -29,4 +30,5 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue