Skip to content

Commit

Permalink
Improved mobile layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Sep 13, 2021
1 parent a7562fb commit 323da62
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions server/assets/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
border: none;
}
#gallery img {
width: 200px;
height: 100px;
width: 100%;
aspect-ratio: 2 / 1;
background-color: #222;
border: 1px solid #222;
border-radius: 4px;
Expand All @@ -70,9 +70,9 @@
border: 1px solid #FFF;
}
.effect {
width: 200px;
display: inline-block;
margin-right: 4px;
margin-bottom: 4px;
}
form {
margin-bottom: 2em;
Expand All @@ -95,6 +95,25 @@
input[type=submit]:hover {
color: #009DE9;
}

@media all and ( max-width: 530px ) {
body {
padding: 40px 20px;
}
.effect {
width: 48%;
}
}

@media all and ( max-width: 370px ) {
body {
padding: 40px 10px;
}
.effect {
width: 100%;
}
}

</style>
<script>function $(id,m){document.getElementById(id).style.display= m?'block':'none';}</script>
</head>
Expand Down

0 comments on commit 323da62

Please sign in to comment.