diff --git a/assets/styles/root/002_layout.css b/assets/styles/root/002_layout.css index f9d6fcd..edb4095 100644 --- a/assets/styles/root/002_layout.css +++ b/assets/styles/root/002_layout.css @@ -86,6 +86,13 @@ } } +@layer root { + main > .grid2 { + display: grid; + grid-template-columns: repeat(2, 1fr); + } +} + @layer layout { aside#table-of-contents { grid-column: content-start / content-end; @@ -446,3 +453,9 @@ width: 100%; } } + +@layer utility { + .grid-item { + grid-column: unset; + } +} diff --git a/layouts/shortcodes/grid2.html b/layouts/shortcodes/grid2.html new file mode 100644 index 0000000..9f2b546 --- /dev/null +++ b/layouts/shortcodes/grid2.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +