Improve playlist and library mobile styling
This commit is contained in:
parent
3f4bfe1846
commit
5be387c81c
@ -45,7 +45,6 @@
|
||||
}
|
||||
.library-item{
|
||||
display: flex;
|
||||
margin-left: 5px;
|
||||
padding: .5rem .5rem .5rem 0;
|
||||
height: 72px;
|
||||
transition: ease-in-out 200ms;
|
||||
|
@ -6,17 +6,17 @@
|
||||
|
||||
<title>botamusique web interface</title>
|
||||
|
||||
<link rel="icon" href="static/image/favicon.ico" />
|
||||
<link rel="icon" href="../static/image/favicon.ico" />
|
||||
|
||||
<link id="pagestyle" rel="stylesheet" href="static/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="static/css/custom.css">
|
||||
<link id="pagestyle" rel="stylesheet" href="../static/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../static/css/custom.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container page-header mb-5" id="banner">
|
||||
<div class="row">
|
||||
<div class="col-auto">
|
||||
<img src="static/image/logo.png" height="200px">
|
||||
<img src="../static/image/logo.png" height="200px">
|
||||
</div>
|
||||
<div class="col my-auto">
|
||||
<h1>botamusique Web Interface</h1>
|
||||
@ -25,11 +25,10 @@
|
||||
</div>
|
||||
|
||||
<div class="container mb-5">
|
||||
<div id="playlist">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div id="playlist" class="col-lg-12">
|
||||
<div>
|
||||
<div class="btn-group" style="margin-bottom: 10px;">
|
||||
<div class="btn-group mb-2">
|
||||
<button type="button" id="play-btn" class="btn btn-info btn-space"
|
||||
onclick="request('post', {action : 'resume'})" disabled>
|
||||
<i class="fas fa-play" aria-hidden="true"></i>
|
||||
@ -45,10 +44,11 @@
|
||||
<i class="fas fa-stop" aria-hidden="true"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="btn-group" style="float: right;">
|
||||
<button type="button" id="oneshot-btn" class="btn btn-primary btn-space"
|
||||
title="One-shot Mode" onclick="request('post', {action : 'one-shot'})" disabled>
|
||||
</div>
|
||||
<div class="col text-right">
|
||||
<div class="btn-group mb-2">
|
||||
<button type="button" id="oneshot-btn" class="btn btn-primary btn-space" title="One-shot Mode"
|
||||
onclick="request('post', {action : 'one-shot'})" disabled>
|
||||
<i class="fas fa-tasks" aria-hidden="true"></i>
|
||||
</button>
|
||||
|
||||
@ -62,8 +62,8 @@
|
||||
<i class="fas fa-redo" aria-hidden="true"></i>
|
||||
</button>
|
||||
|
||||
<button type="button" id="autoplay-btn" class="btn btn-primary btn-space"
|
||||
title="Autoplay Mode" onclick="request('post', {action : 'autoplay'})" disabled>
|
||||
<button type="button" id="autoplay-btn" class="btn btn-primary btn-space" title="Autoplay Mode"
|
||||
onclick="request('post', {action : 'autoplay'})" disabled>
|
||||
<i class="fas fa-robot" aria-hidden="true"></i>
|
||||
</button>
|
||||
|
||||
@ -79,9 +79,11 @@
|
||||
onclick="request('post', {action : 'volume_up'})">
|
||||
<i class="fa fa-volume-up" aria-hidden="true"></i>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -94,12 +96,12 @@
|
||||
<tbody id="playlist-table" class="playlist-table">
|
||||
<tr id="playlist-loading">
|
||||
<td colspan="4" style="text-align:center;">
|
||||
<img style="margin: auto; width: 35px;" src="static/image/loading.svg" />
|
||||
<img style="margin: auto; width: 35px;" src="../static/image/loading.svg" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="playlist-empty" style="display: none;">
|
||||
<td colspan="4" style="text-align:center;">
|
||||
<img style="margin: auto; width: 35px;" src="static/image/empty_box.svg" />
|
||||
<img style="margin: auto; width: 35px;" src="../static/image/empty_box.svg" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="playlist-expand" class="table-dark" style="display: none;">
|
||||
@ -114,7 +116,7 @@
|
||||
<input hidden type="text" class="playlist-item-id" value="" />
|
||||
<div class="playlist-title">
|
||||
<img width="80" class="playlist-item-thumbnail"
|
||||
src="static/image/unknown-album.png" />
|
||||
src="../static/image/unknown-album.png" />
|
||||
</div>
|
||||
<div class="playlist-artwork">
|
||||
<b class="playlist-item-title"></b>
|
||||
@ -134,12 +136,10 @@
|
||||
</td>
|
||||
<td>
|
||||
<div class="btn-group">
|
||||
<button type="button"
|
||||
class="playlist-item-play btn btn-info btn-sm btn-space">
|
||||
<button type="button" class="playlist-item-play btn btn-info btn-sm btn-space">
|
||||
<i class="fa fa-play" aria-hidden="true"></i>
|
||||
</button>
|
||||
<button type="button"
|
||||
class="playlist-item-trash btn btn-danger btn-sm btn-space">
|
||||
<button type="button" class="playlist-item-trash btn btn-danger btn-sm btn-space">
|
||||
<i class="fas fa-trash-alt" aria-hidden="true"></i>
|
||||
</button>
|
||||
</div>
|
||||
@ -147,24 +147,18 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-danger btn-space"
|
||||
onclick="request('post', {action : 'clear'})">
|
||||
<button type="button" class="btn btn-danger btn-space" onclick="request('post', {action : 'clear'})">
|
||||
<i class="fas fa-trash-alt" aria-hidden="true"></i> Clear Playlist
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container mb-3">
|
||||
|
||||
<div class="page-header">
|
||||
<h1 id="forms">Music Library</h1>
|
||||
</div>
|
||||
<h2 id="forms">Music Library</h2>
|
||||
|
||||
<div id="browser" class="card">
|
||||
<div class="card-header">
|
||||
@ -172,28 +166,33 @@
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="alert alert-secondary">
|
||||
<h4 class="alert-heading">Filters</h4>
|
||||
<div class="card mb-3" style="background-color: #e2e3e5;">
|
||||
<div class="card-body">
|
||||
<h4>Filters</h4>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="col">
|
||||
<div id="filter-type" class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Type</label>
|
||||
<div class="btn-group btn-group-toggle" data-toggle="buttons"
|
||||
style="height: 35px; padding-top:5px;">
|
||||
<label class="col-auto col-form-label">Type</label>
|
||||
|
||||
<div class="col btn-group btn-group-sm btn-group-toggle" data-toggle="buttons">
|
||||
<button type="button" id="filter-type-file" class="btn btn-secondary btn-sm"
|
||||
onclick="setFilterType('file')">File</button>
|
||||
onclick="setFilterType('file')">File
|
||||
</button>
|
||||
<button type="button" id="filter-type-url" class="btn btn-secondary btn-sm"
|
||||
onclick="setFilterType('url')">URL</button>
|
||||
onclick="setFilterType('url')">URL
|
||||
</button>
|
||||
<button type="button" id="filter-type-radio" class="btn btn-secondary btn-sm"
|
||||
onclick="setFilterType('radio')">Radio</button>
|
||||
onclick="setFilterType('radio')">Radio
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="filter-path" class="form-group row">
|
||||
<label class="col-sm-2 col-form-label" for="filter-dir"
|
||||
style="max-width: none">Directory</label>
|
||||
<div class="col-sm-8">
|
||||
<select class="form-control form-control-sm" id="filter-dir" style="margin-top:5px;"
|
||||
disabled>
|
||||
<label class="col-auto col-form-label" for="filter-dir">Directory</label>
|
||||
|
||||
<div class="col">
|
||||
<select class="form-control form-control-sm" id="filter-dir"
|
||||
style="margin-top:5px;" disabled>
|
||||
<option value="">.</option>
|
||||
{% for dir in dirs %}
|
||||
<option value="{{ dir }}">{{ dir }}</option>
|
||||
@ -203,18 +202,22 @@
|
||||
</div>
|
||||
|
||||
<div id="filter-path" class="form-group row">
|
||||
<label class="col-sm-2 col-form-label" for="filter-keywords"
|
||||
style="max-width: none">Keywords</label>
|
||||
<div class="col-sm-8">
|
||||
<label class="col-auto col-form-label" for="filter-keywords">Keywords</label>
|
||||
|
||||
<div class="col">
|
||||
<input class="form-control form-control-sm" id="filter-keywords" name="keywords"
|
||||
placeholder="Keywords..." style="margin-top:5px;" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div id="filter-type" class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Tags</label>
|
||||
<div class="col-sm-10" style="padding-top:5px;">
|
||||
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col-auto">
|
||||
<label for="filter-tag">Tags</label>
|
||||
</div>
|
||||
|
||||
<div id="filter-type" class="col">
|
||||
{% for tag in tags_color_lookup.keys() %}
|
||||
<span id="filter-tag"
|
||||
class="filter-tag tag-unclicked tag-click badge badge-{{ tags_color_lookup[tag] }}">{{ tag }}</span>
|
||||
@ -223,22 +226,23 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="library-group" class="list-group library-group">
|
||||
<div id="library-item-loading" class="list-group-item library-item">
|
||||
<img style="margin: auto; width: 35px;" src="static/image/loading.svg" />
|
||||
<img style="margin: auto; width: 35px;" src="../static/image/loading.svg" />
|
||||
</div>
|
||||
<div id="library-item-empty" style="display: none" class="list-group-item library-item">
|
||||
<img style="margin: auto; width: 35px;" src="static/image/empty_box.svg" />
|
||||
<img style="margin: auto; width: 35px;" src="../static/image/empty_box.svg" />
|
||||
</div>
|
||||
<div id="library-item" style="display: none;" class="list-group-item library-item">
|
||||
<input hidden type="text" class="library-item-id" value="" />
|
||||
|
||||
<div class="library-thumb-col">
|
||||
<div class="library-thumb-img">
|
||||
<img class="library-item-thumb library-thumb-img"
|
||||
src="static/image/unknown-album.png" />
|
||||
src="../static/image/unknown-album.png" />
|
||||
</div>
|
||||
<div class="btn-group-vertical library-thumb-grp">
|
||||
<div class="library-item-play btn btn-secondary library-thumb-btn-up" title="Play">
|
||||
@ -246,6 +250,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="library-info-col library-info-title col-5" style="padding: 12px 0;">
|
||||
<div>
|
||||
<span class="library-item-type lead text-muted btn-space">[File]</span>
|
||||
@ -253,6 +258,7 @@
|
||||
<span class="library-item-artist text-muted"> - Artist</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="library-info-col col-4" style="padding: 3px;">
|
||||
<span class="library-item-path text-muted path">Path/to/the/file</span>
|
||||
<div class="library-item-tags">
|
||||
@ -264,7 +270,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="btn-group library-action">
|
||||
<button class="library-item-add-next btn btn-info btn-sm btn-space" type="button"
|
||||
title="Next to play">
|
||||
@ -479,10 +484,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="static/js/jquery-3.4.1.min.js"></script>
|
||||
<script src="static/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="static/js/fontawesome.all.js"></script>
|
||||
<script src="static/js/custom.js"></script>
|
||||
<script src="../static/js/jquery-3.4.1.min.js"></script>
|
||||
<script src="../static/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="../static/js/fontawesome.all.js"></script>
|
||||
<script src="../static/js/custom.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user