Skip to content

Instantly share code, notes, and snippets.

@32bitkid
32bitkid / tufteize-codepen.less
Last active April 7, 2018 15:17
Tufte style link/citations/asides for codepen.io blog posts.
.tufteize(@gutter, @gap) {
> p { margin-right: @gutter + @gap; }
.newthought { font-variant: small-caps; }
p>strong,
p>a:not([href^='#'])::before,
p>a[href^='#'] + * {
width: @gutter;
margin-right: -(@gutter + @gap);