Skip to content

Commit c8b6438

Browse files
committed
More CSS layout fixes
1 parent d4bfe95 commit c8b6438

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

_posts/2022-01-07-pcem-migration-guide.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ There is **no migration path** for configuration files, as the format is too dif
4545

4646
86Box has most of the machines PCem emulates, though we have removed, renamed and/or recategorized some of them for various reasons. The table below (make sure to scroll down) provides a reference for **v5.2**.
4747

48-
<div class="scroll td2nowrap" markdown="block">
49-
5048
| PCem name | 86Box category and name | Notes |
5149
|-----------|-------------------------|-------|
5250
| [8088] AMI XT clone | 8088:<br />[8088] AMI XT clone | |
@@ -142,8 +140,7 @@ There is **no migration path** for configuration files, as the format is too dif
142140
| [Super 7] FIC VA-503+ | Super Socket 7:<br />[VIA MVP3] FIC VA-503+ | Not to be confused with the FIC VA-503**A**, which is a very different board. |
143141
| [Socket 8] Intel VS440FX | Socket 8:<br />[i440FX] Intel VS440FX | See [PIIX southbridge mismatch](#piix-southbridge-mismatch). |
144142
| [Slot 1] Gigabyte GA-686BX | Slot 1:<br />[i440BX] Gigabyte GA-686BX | |
145-
146-
</div>
143+
{: .scroll .td2nowrap}
147144

148145
<div>&nbsp;</div>
149146

assets/css/style.css

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ li > ul, li > ol {
193193
sup {
194194
font-size: x-small;
195195
}
196-
sup > a.footnote::before {
196+
sup a.footnote::before {
197197
content: "[";
198198
margin-left: 1.5px;
199199
}
200-
sup > a.footnote::after {
200+
sup a.footnote::after {
201201
content: "]";
202202
}
203203
li:target, sup:target {
@@ -251,15 +251,23 @@ span.emoji {
251251
EmojiOne, /* fonts are installed and the browser supports them (not Chrome */
252252
Twitter Color Emoji; /* as of writing; Firefox provides and uses Twemoji Mozilla) */
253253
}
254-
div.scroll {
254+
table {
255+
border: 1px solid #808080;
256+
}
257+
@media (max-width: 768px) {
258+
table {
259+
display: block;
260+
width: 100%;
261+
overflow-x: auto;
262+
}
263+
}
264+
table.scroll {
265+
display: block;
266+
width: 100%;
255267
max-height: min(500px, 67vh);
256-
padding-right: 1px; /* make border less ugly on Chrome on Windows */
257268
overflow-x: auto;
258269
overflow-y: scroll;
259270
}
260-
table {
261-
border: 1px solid #808080;
262-
}
263271
tr:nth-child(odd) {
264272
background: #1c293a;
265273
}
@@ -270,18 +278,18 @@ th, td {
270278
border: 1px solid #808080;
271279
padding: 5px;
272280
}
273-
div.scroll > table > thead > tr > th {
281+
div.scroll th {
274282
position: sticky;
275283
top: 0;
276284
background: #1c293a;
277285
}
278-
div.td2nowrap > table > tbody > tr > td:nth-child(2) {
286+
.td2nowrap td:nth-child(2) {
279287
white-space: nowrap;
280288
}
281289
code {
282290
font-size: 0.95em;
283291
}
284-
:not(pre.highlight) > code, div.highlight {
292+
:not(pre.highlight) > code {
285293
background: #404040;
286294
}
287295
code {
@@ -299,7 +307,7 @@ pre.highlight {
299307
margin: 0;
300308
padding: 6px 8px;
301309
}
302-
pre.highlight > code {
310+
pre.highlight code {
303311
padding: 0;
304312
}
305313
pre.highlight, code {

0 commit comments

Comments
 (0)