update to new upkr version, use css to scale canvas

This commit is contained in:
2021-11-24 22:51:27 +01:00
parent 88bc4fe364
commit fcf24110c5
9 changed files with 42 additions and 46 deletions

View File

@@ -33,7 +33,10 @@ a:hover {
color: #405040;
}
canvas {
#screen {
width: 320px;
height: 240px;
image-rendering: pixelated;
background-color: #202428;
margin-bottom: 8px;
border: 4px solid #303040;
@@ -63,4 +66,18 @@ button:hover {
button:active {
background-color: #504450;
}
@media (min-width: 680px) and (min-height: 560px) {
#screen {
width: 640px;
height: 480px;
}
}
@media (min-width: 1000px) and (min-height: 800px) {
#screen {
width: 960px;
height: 720px;
}
}