Style overall dialog layout

This commit is contained in:
David Rowe 2017-04-14 15:12:36 +12:00
parent fd919f0db7
commit 1d43e5a992
3 changed files with 95 additions and 6 deletions

View file

@ -8,6 +8,80 @@
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
*/
body {
padding: 0;
}
.title {
padding-left: 21px;
}
.title label {
font-size: 18px;
position: relative;
top: 12px;
}
#recordings {
height: 100%;
position: absolute;
top: 0;
left: 0;
padding: 63px 21px 158px 21px;
box-sizing: border-box;
}
#recordings table {
height: 100%;
table-layout: fixed;
background: none !important;
}
#recordings thead, #recordings thead tr {
background: none !important;
}
#recordings table col#unload-column {
width: 100px;
}
#recordings table td {
text-overflow: ellipsis;
}
#recordings table td:nth-child(2) {
text-align: center;
}
#recordings tbody tr.filler td {
height: auto;
background-color: #2e2e2e;
border-top: 1px solid #1c1c1c;
}
#load-button {
margin-top: 14px;
}
#record-controls {
position: absolute;
bottom: 7px;
width: 100%;
}
#record-controls div:first-child {
text-align: center;
}
#record-controls div.property {
padding-left: 21px;
}
.hidden {
display: none;
}

View file

@ -96,6 +96,14 @@ function updateRecordings() {
tbody.appendChild(tr);
}
// Filler row for extra table space.
tr = document.createElement("tr");
tr.classList.add("filler");
td = document.createElement("td");
td.colSpan = 2;
tr.appendChild(td);
tbody.appendChild(tr);
elRecordingsPlaying.replaceChild(tbody, elRecordingsList);
elRecordingsList = document.getElementById("recordings-list");
}

View file

@ -19,9 +19,14 @@
<div class="title">
<label>Record</label>
</div>
<hr />
<div id="recordings">
<div>
<table id="recordings-playing">
<colgroup>
<col />
<col id="unload-column" />
</colgroup>
<thead>
<tr>
<th>Recordings Being Played</th>
@ -62,12 +67,14 @@
<div id="spinner" class="hidden">
<p>TODO: Spinner</p>
</div>
<div>
<input id="record-button" class="red" type="button" value="Record" />
</div>
<div class="property checkbox">
<input type="checkbox" id="finish-on-open">
<label for="finish-on-open" id="finish-on-open-label">Finish recording when open dialog/tablet</label>
<div id="record-controls">
<div>
<input id="record-button" class="red" type="button" value="Record" />
</div>
<div class="property checkbox">
<input type="checkbox" id="finish-on-open">
<label for="finish-on-open" id="finish-on-open-label">Finish recording when open dialog/tablet</label>
</div>
</div>
<script>
onBodyLoaded();