From 192625a69aec3f09697f0cd427d7904ba32a8119 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Wed, 17 Feb 2021 00:00:45 +0100 Subject: [PATCH] =?UTF-8?q?=C5=98azen=C3=AD=20aktualit=20do=20dynamick?= =?UTF-8?q?=C3=BDch=20sloupc=C5=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pokud se má zobrazit jen jedna aktualita, má maximální šířku a je vycentrována. closes #2 --- sass/main.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sass/main.scss b/sass/main.scss index 396e451..3c04163 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -142,10 +142,11 @@ main { .blocks { display: grid; - grid-template-columns: 1fr 1fr; + grid-template-columns: repeat(auto-fit, minmax(12em, 1fr)); grid-column-gap: 1rem; grid-row-gap: 2rem; align-items: stretch; + justify-items: center; a { font-weight: normal } a:hover { text-decoration: none } @@ -153,6 +154,7 @@ main { article { display: flex; flex-direction: column; + max-width: 50em; height: 100%; padding: 1em; border-top: 5px solid #5E81AC;