CSS and a shortcode for a 2-column grid within the content track

This commit is contained in:
Eryn Wells 2024-01-08 08:32:13 -08:00
parent 14f4246154
commit 11bacea783
2 changed files with 16 additions and 0 deletions

View file

@ -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;
}
}

View file

@ -0,0 +1,3 @@
<div class="grid2">
{{ .Inner }}
</div>