Skip to content

Commit 1f1120f

Browse files
committed
More responsive fixes
1 parent a22cb8c commit 1f1120f

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

content/static/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ document.addEventListener("DOMContentLoaded", function(e) {
88
if (hamburger) {
99
hamburger.addEventListener('click', function() {
1010
nav.classList.toggle('menu-open');
11+
document.body.classList.toggle('menu-open');
1112
});
1213
}
1314

content/static/style.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ html, body {
66
height: 100%;
77
background-color: #111;
88
color-scheme: dark;
9+
overscroll-behavior: none;
910
}
1011

1112
html body > * {
@@ -573,19 +574,13 @@ html body a {
573574
list-style: none;
574575
margin: 0 0 20px 0;
575576
padding: 0;
576-
}
577-
578-
.page-standard .page-container .content-right main ul.thumbnail-list::after {
579-
content: "";
580-
clear: both;
581-
display: table;
577+
display: grid;
578+
grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
579+
gap: 4px;
582580
}
583581

584582
.page-standard .page-container .content-right main ul.thumbnail-list li {
585583
display: block;
586-
float: left;
587-
margin: 2px 4px 0 0;
588-
width: 196px;
589584
text-align: center;
590585
}
591586

@@ -609,8 +604,9 @@ html body a {
609604
display: block;
610605
margin: 0;
611606
padding: 0;
612-
width: 194px;
613-
height: 145.50px;
607+
width: 100%;
608+
aspect-ratio: 4 / 3;
609+
object-fit: cover;
614610
}
615611

616612
.page-standard .page-container .content-right main #like-counter {
@@ -1079,6 +1075,10 @@ body#page-examples.page-examples-index {
10791075
min-width: 0;
10801076
}
10811077

1078+
body.menu-open {
1079+
overflow: hidden;
1080+
}
1081+
10821082
.page-standard .page-container {
10831083
flex-direction: column;
10841084
margin-top: 48px;

0 commit comments

Comments
 (0)