CSS and a shortcode for a 2-column grid within the content track
This commit is contained in:
parent
14f4246154
commit
11bacea783
2 changed files with 16 additions and 0 deletions
|
@ -86,6 +86,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@layer root {
|
||||||
|
main > .grid2 {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@layer layout {
|
@layer layout {
|
||||||
aside#table-of-contents {
|
aside#table-of-contents {
|
||||||
grid-column: content-start / content-end;
|
grid-column: content-start / content-end;
|
||||||
|
@ -446,3 +453,9 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@layer utility {
|
||||||
|
.grid-item {
|
||||||
|
grid-column: unset;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
3
layouts/shortcodes/grid2.html
Normal file
3
layouts/shortcodes/grid2.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<div class="grid2">
|
||||||
|
{{ .Inner }}
|
||||||
|
</div>
|
Loading…
Add table
Add a link
Reference in a new issue