My plugin for Markdown-It: CodeWrap
My solution to adding "Copy" to markdown code blocks (and other things)
Here are some random thoughts about front-end development and other things. I know it ain't much, but it's honest.
Posts for the year 2023
My solution to adding "Copy" to markdown code blocks (and other things)
Grow a stroke on an SVG shape but only covering the inner part
Retrieving a property of an object which is also in an object in JavaScript.
Posts for the year 2022
(updated )
An absolute brain dump about all the web development I learned this year… not.
(updated )
Precompiled Sass and JS files that become part of the source folder.
Set up a CSS grid with a specific ideal number of columns.
(updated)
Pre-compile some reused assets to avoid repeating the same operation.
(updated )
Using renderFile to keep things tidy
I'm not on the TypeScript train, but I like a couple of things…
Clean up overlap animations on hovered elements
Posts for the year 2021
Using chained CSS transforms to get a rotation without rotating the element itself.
Using a CSS custom property trick to define themes variables only once.
Posts for the year 2020
Only show a separator when two items are next to each other, and skip for new lines.
Use a collection of utilities to form components without additional CSS.
Get a more consistent sizing with viewport-based font sizing
Posts for the year 2019
Make a contained element span the entire horizontal space.
Use the cascade to colour links in their context.
Running a simple blog doesn't require a large CMS.