hide on small windows
This commit is contained in:
1 parent
e8e746da73
commit
21a563e57a
2 files changed
+27
No files matched your search
@@ -94,6 +94,7 @@
|
|||||||
>
|
>
|
||||||
</main>
|
</main>
|
||||||
<canvas width="400" height="400" ref="canvas"></canvas>
|
<canvas width="400" height="400" ref="canvas"></canvas>
|
||||||
|
<h1 id="too_small">Window is too small</h1>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -125,6 +125,7 @@ body {
|
|||||||
main {
|
main {
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
background-color: var(--background-primary);
|
background-color: var(--background-primary);
|
||||||
|
min-width: 24rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
canvas {
|
canvas {
|
||||||
@@ -193,3 +194,28 @@ a {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main,
|
||||||
|
canvas {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#too_small {
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and ((min-width: 1152px) and (min-height: 726px)) {
|
||||||
|
main,
|
||||||
|
canvas {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#too_small {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user