Watch
1
0
Fork
You've already forked datalad-blog
0
forked from www/datalad-blog
datalad-blog/assets/css/extended/dlcols.css
Jiameng Wu 9165149546 dlcols: accept single=true unquoted, move the CSS to a stylesheet
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.
2026-11-24 15:31:36 +01:00

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