Let the photo gallery fill ninety percent of the viewport

This commit is contained in:
2026-09-19 15:07:32 +03:30
parent 70a3b808a7
commit b2d3c6823a
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
{% include header.html %} {% include header.html %}
<div class="page-content"> <div class="page-content">
<div class="wrapper"> <div class="wrapper{% if page.wide_gallery %} wrapper-gallery{% endif %}">
<h1 class="page-heading"></h1> <h1 class="page-heading"></h1>
{% if page.toc %} {% if page.toc %}
{{ content | toc_generate }} {{ content | toc_generate }}
+8 -1
View File
@@ -219,6 +219,13 @@ hr {
display: block; display: block;
} }
.wrapper.wrapper-gallery {
width: 90%;
max-width: none;
padding-left: 0;
padding-right: 0;
}
.art .post-list { .art .post-list {
display: grid; display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -243,7 +250,7 @@ hr {
aspect-ratio: auto 3 / 2; aspect-ratio: auto 3 / 2;
} }
@include media-query(420px) { @include media-query($on-palm) {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
} }
+1
View File
@@ -1,5 +1,6 @@
--- ---
layout: default layout: default
wide_gallery: true
--- ---
<div class="home art"> <div class="home art">