forked from www/datalad-blog
dlcols only matched the string "true", so single=true without quotes built fine but gave two columns. Its style block was repeated with every use; in assets/css/extended/ PaperMod bundles it into the site stylesheet once. dlmd and dldetails get a comment on why dlmd is needed and why dldetails is not Hugo's built-in details, which drops the id that a link points to.
7 lines
477 B
CSS
7 lines
477 B
CSS
/* Side-by-side code columns, used by the dlcols/dlcol shortcodes. */
|
|
.dlcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; align-items: start; margin: 1rem 0; }
|
|
.dlcols-single { grid-template-columns: minmax(0, 1fr); }
|
|
.dlcols > div { min-width: 0; }
|
|
.dlcols pre, .dlcols code { font-size: 0.72rem; line-height: 1.4; }
|
|
.dlcols pre { overflow-x: auto; white-space: pre; }
|
|
@media (max-width: 600px) { .dlcols { grid-template-columns: 1fr; } }
|