Snippet: git switcheroo
Precompiled Sass and JS files that become part of the source folder.
Here are some random thoughts about front-end development and other things. I know it ain't much, but it's honest.
Precompiled Sass and JS files that become part of the source folder.
My Wishlist for CSS in 2024
Group by year in a clear and readable manner
(updated )
Avoid false positives when using :not() to exclude ancestors from a scope
One way to implement themes on a website with style queries
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.
(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
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.
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
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.