Skip to content

Commit

Permalink
Reformat register/flags table
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Sep 20, 2024
1 parent 78481e2 commit 8186bae
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 38 deletions.
9 changes: 7 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ kbd,
samp,
pre,
textarea,
input[type='text'] {
input[type='text'],
.data_table td {
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
}

Expand Down Expand Up @@ -139,6 +140,11 @@ td {
background: var(--background);
}

.data_table th,
.data_table td {
padding: 2px 8px;
}

.noborder table {
width: 100%;
}
Expand Down Expand Up @@ -176,7 +182,6 @@ canvas {
padding: 4px 16px;
position: relative;
background-color: var(--background);
cursor: pointer;
user-select: none;
white-space: nowrap;
}
Expand Down
88 changes: 52 additions & 36 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@
Options
<ul>
<li>
<input type="checkbox" id="auto_url_update" />
<label for="auto_url_update">Auto URL update</label>
<label>
<input type="checkbox" id="auto_url_update" />
Auto URL update
</label>
</li>
<li>
<input type="checkbox" id="auto_local_storage_update" />
<label for="auto_local_storage_update">Store data between sessions</label>
<label>
<input type="checkbox" id="auto_local_storage_update" />
Store data between sessions
</label>
</li>
<li id="settingsmenu">Settings...</li>
</ul>
Expand Down Expand Up @@ -84,15 +88,15 @@
<div class="editor" id="gfxEditorDiv">
<canvas id="gfxEditorDrawCanvas" width="8" height="8" style="width: 256px"></canvas>
<canvas id="gfxEditorPalette" width="16" height="64" style="width: 32px; margin-left: 2px"></canvas>
<div width="100%" style="overflow: scroll; display: None">
<div width="100%" style="overflow: scroll; display: none">
<canvas id="gfxEditorTilesCanvas"></canvas>
</div>
</div>
<div class="editor" id="nullEditorDiv">Cannot edit selected file.</div>
<div class="emulator">
<table>
<tr>
<td colspan="4">
<td>
<div class="tabs">
<input type="radio" name="emulator_display_mode" id="emulator_display_screen" checked />
<label for="emulator_display_screen">Screen</label>
Expand Down Expand Up @@ -128,39 +132,51 @@
</td>
</tr>
<tr>
<td class="right">
<button id="download_rom">Download</button>
</td>
<td>
<button id="cpu_single_step">step</button>
<button id="cpu_frame_step">frame</button>
<button id="download_rom">Download</button>
<button id="cpu_single_step">Step</button>
<button id="cpu_frame_step">Frame</button>
<label style="padding: 4px 16px">
<input id="cpu_run_check" type="checkbox" />
Run
</label>
<button id="cpu_reset">Reset</button>
</td>
<td><input id="cpu_run_check" type="checkbox" />run</td>
<td><button id="cpu_reset">Reset</button></td>
</tr>
<tr>
<td class="right">PC:</td>
<td id="cpu_pc">-</td>
<td class="right">A:</td>
<td id="cpu_a">-</td>
</tr>
<tr>
<td class="right">SP:</td>
<td id="cpu_sp">-</td>
<td class="right">BC:</td>
<td id="cpu_bc">-</td>
</tr>
<tr>
<td class="right">Flags:</td>
<td id="cpu_flags">-</td>
<td class="right">DE:</td>
<td id="cpu_de">-</td>
</tr>
<tr>
<td class="right"></td>
<td></td>
<td class="right">HL:</td>
<td id="cpu_hl">-</td>
<td>
<table class="data_table" style="width: 50%">
<colgroup>
<col />
<col style="width: 50%" />
<col />
<col style="width: 50%" />
</colgroup>
<tr>
<th class="right">PC:</th>
<td id="cpu_pc">-</td>
<th class="right">A:</th>
<td id="cpu_a">-</td>
</tr>
<tr>
<th class="right">SP:</th>
<td id="cpu_sp">-</td>
<th class="right">BC:</th>
<td id="cpu_bc">-</td>
</tr>
<tr>
<th class="right">Flags:</th>
<td id="cpu_flags">-</td>
<th class="right">DE:</th>
<td id="cpu_de">-</td>
</tr>
<tr>
<td colspan="2"></td>
<th class="right">HL:</th>
<td id="cpu_hl">-</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
Expand Down Expand Up @@ -300,7 +316,7 @@
<td class="fill"><input type="text" class="fill" id="compiler_settings_fix" /></td>
</tr>
<tr>
<td colspan="2" style="text-align: right"><button id="compiler_settings_set">Set</button></td>
<td colspan="2" class="right"><button id="compiler_settings_set">Set</button></td>
</tr>
</table>
</div>
Expand Down

0 comments on commit 8186bae

Please sign in to comment.