mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
clean up the edges
This commit is contained in:
parent
374b45be48
commit
b2b93be33d
Binary file not shown.
Before Width: | Height: | Size: 251 B After Width: | Height: | Size: 181 B |
Binary file not shown.
Before Width: | Height: | Size: 275 B After Width: | Height: | Size: 206 B |
|
@ -31,24 +31,24 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.gameDisplay {
|
.gameDisplay {
|
||||||
height: calc(min(480px, 60vh));
|
height: calc(min(480px, 40vh, calc(100vw / 3)));
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gameDisplay > div > div {
|
.gameDisplay .imageWrapper {
|
||||||
aspect-ratio: 17 / 33;
|
aspect-ratio: 15 / 31;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gameDisplay > div > div > img {
|
.gameDisplay .imageWrapper > img {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
image-rendering: pixelated;
|
image-rendering: pixelated;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gameDisplay > div > iframe {
|
.gameDisplay iframe {
|
||||||
border: 0;
|
border: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
|
@ -99,12 +99,12 @@
|
||||||
<section>
|
<section>
|
||||||
<div class="gameDisplay">
|
<div class="gameDisplay">
|
||||||
<div>
|
<div>
|
||||||
<div><img src="assets/left.png" /></div>
|
<div class="imageWrapper"><img src="assets/left.png" /></div>
|
||||||
<iframe
|
<iframe
|
||||||
onload="this.contentWindow.focus()"
|
onload="this.contentWindow.focus()"
|
||||||
src="mgba/index.html"
|
src="mgba/index.html"
|
||||||
></iframe>
|
></iframe>
|
||||||
<div><img src="assets/right.png" /></div>
|
<div class="imageWrapper"><img src="assets/right.png" /></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="help">
|
<div class="help">
|
||||||
|
|
Loading…
Reference in a new issue