commit bbdca2d762a67f3e0f0d8485cf60f7634f99f2d1 parent 3f3fd2f56d4d0feb6ecfbd7338c49cb669f37c28 Author: Hugo Soucy <hugo@soucy.cc> Date: Sat, 21 Nov 2020 21:17:25 -0500 Add a grid pattern Diffstat:
A | src/scss/modules/_grid.scss | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/scss/modules/_grid.scss b/src/scss/modules/_grid.scss @@ -0,0 +1,11 @@ +// Grid module +.grid { + display: grid; + grid-gap: 1.5rem; +} + +@supports (width: unquote("min(240px, 100%)")) { + .grid { + grid-template-columns: repeat(auto-fit, minmax(unquote("min(240px, 100%)"), 1fr)); + } +}