(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.data-privacy-src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-1596564-1', 'auto'); ga('send', 'pageview');
Home » CSS

A little bit of plain Javascript can do a lot

2020-07-09T03:07:07+02:00July 9th, 2020|Categories: News, Tutorials|Tags: |

Julia Evans: I decided to implement almost all of the UI by just adding & removing CSS classes, and using CSS transitions if I want to animate a transition. An awful lot of the JavaScript on sites (that aren’t otherwise entirely constructed from JavaScript) is click the thing, toggle the class — which is why jQuery was [...]

How to Make a List Component with Emotion

2020-07-09T03:07:02+02:00July 9th, 2020|Categories: News, Tutorials|Tags: |

I’ve been doing a bit of refactoring this week at Sentry and I noticed that we didn’t have a generic List component that we could use across projects and features. So, I started one, but here’s the rub: we style things at Sentry using Emotion, which I have only passing experience with and is described [...]

How to delete all node_modules directories from your computer

2020-07-09T03:06:59+02:00July 9th, 2020|Categories: News, Tutorials|Tags: |

Nice tip from Chris Ferdinandi: My node_modules directories contained 50mb of stuff on the small side, and over 200mb of files in some cases. Over a few dozen projects, that really adds up! Two dozen projects with 200 MB worth of node_modules? That’s nearly 5 GB of space for a bunch of stuff you’ve probably forgotten is [...]

Displaying the Current Step with CSS Counters

2020-07-08T03:01:01+02:00July 8th, 2020|Categories: News, Tutorials|Tags: |

Say you have five buttons. Each button is a step. If you click on the fourth button, you’re on step 4 of 5, and you want to display that. This kind of counting and displaying could be hard-coded, but that’s no fun. JavaScript could do this job as well. But CSS? Hmmmm. Can it? CSS [...]

WooCommerce on CSS-Tricks

2020-07-08T03:00:47+02:00July 8th, 2020|Categories: News, Tutorials|Tags: |

I always get all excited when I accomplish something, but I get extra excited when I get it done and think, “well, that was easy.” As much as I enjoy fiddling with technology, I enjoy reaping the benefit of well set-up technology even more. That’s why I still get so excited about WordPress — I [...]

Improving Chromium’s browser compatibility in 2020

2020-07-08T03:00:44+02:00July 8th, 2020|Categories: News, Tutorials|Tags: |

This is exactly what I love to hear from any browser vendor: When it comes to browser compatibility, there are still too many missing features and edge-case bugs. But it doesn’t have to be this way. Things can and will get better, if browser vendors can understand what is causing the most pain, and take [...]

Bootstrap 5

2020-07-07T03:11:29+02:00July 7th, 2020|Categories: News, Tutorials|Tags: |

It’s always notable when the world biggest CSS framework goes up a major version (it’s in alpha now). It has dropped jQuery and IE, started using some CSS custom properties, gone fully customized with form elements, started to embrace utility classes, and includes a massive icon set you can use via SVG sprite. Sweet. Direct [...]

Building Serverless GraphQL API in Node with Express and Netlify

2020-07-07T03:11:27+02:00July 7th, 2020|Categories: News, Tutorials|Tags: |

I’ve always wanted to build an API, but was scared away by just how complicated things looked. I’d read a lot of tutorials that start with “first, install this library and this library and this library” without explaining why that was important. I’m kind of a Luddite when it comes to these things. Well, I [...]