forked from mirrors/principia
Emscripten: Try to fill the page with the canvas window
This commit is contained in:
parent
296f930566
commit
3ea46595b8
1 changed files with 3 additions and 4 deletions
|
|
@ -9,7 +9,7 @@
|
|||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: #000513;
|
||||
background: #0f1111;
|
||||
color: white;
|
||||
}
|
||||
canvas {
|
||||
|
|
@ -17,9 +17,8 @@ canvas {
|
|||
margin: auto;
|
||||
position: absolute;
|
||||
top: 0; bottom: 0; left: 0; right: 0;
|
||||
aspect-ratio: 16 / 9;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue