From 503e2aa320d429dad20ec20cd00f9851fdc92b93 Mon Sep 17 00:00:00 2001 From: Rafael Bardini Date: Tue, 8 Mar 2022 13:02:56 +0100 Subject: [PATCH] feat(layout): stretch single grid lists --- style.css | 5 ++++- tap-snapshots/test/render.js.test.cjs | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/style.css b/style.css index 21f5ca7..9fc6da0 100644 --- a/style.css +++ b/style.css @@ -245,6 +245,9 @@ blockquote > * + * { } .grid-list { - grid-template-columns: 1fr 1fr; + grid-template-columns: repeat( + auto-fit, + minmax(calc((100% - 1em) / 2), 1fr) + ); } } diff --git a/tap-snapshots/test/render.js.test.cjs b/tap-snapshots/test/render.js.test.cjs index bb948ef..768b047 100644 --- a/tap-snapshots/test/render.js.test.cjs +++ b/tap-snapshots/test/render.js.test.cjs @@ -261,7 +261,10 @@ blockquote > * + * { } .grid-list { - grid-template-columns: 1fr 1fr; + grid-template-columns: repeat( + auto-fit, + minmax(calc((100% - 1em) / 2), 1fr) + ); } }