From 722ec20bad64d8c69b173c163011d37ad0b55591 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 6 Jan 2022 19:27:45 +0100 Subject: chore: move Main grid to its children This way I can use full width background for some blocks. --- src/styles/pages/Home.module.scss | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/styles/pages/Home.module.scss') diff --git a/src/styles/pages/Home.module.scss b/src/styles/pages/Home.module.scss index 3a8fd0e..49f483c 100644 --- a/src/styles/pages/Home.module.scss +++ b/src/styles/pages/Home.module.scss @@ -6,3 +6,14 @@ gap: var(--spacing-md); margin: var(--spacing-md) 0; } + +.section { + display: grid; + grid-template-columns: + minmax(0, 1fr) min(calc(100vw - calc(var(--spacing-md) * 2)), 80ch) + minmax(0, 1fr); + + > * { + grid-column: 2; + } +} -- cgit v1.2.3