One of my colleagues, who I’ll call “Dave” in this post, was never the hallmark of good communication. Putting words in a certain order to convey some sort of meaning in the most effective manner just does not seem to interest them in the slightest.
Recently, however, they’ve taken to sending me messages like this:
Subject: Sincere Apologies for the Delay
Dear Thijs,
I hope this message finds you well.
I’m writing to sincerely apologise for not returning your lawnmower yet. It was very kind of you to lend it to me, and I truly regret not getting it back to you as promptly as I should have.
TL;DR:
.modal {
position: fixed;
outline: 100vmax solid rgba(20, 20, 20, 0.6);
}
If you find yourself in a situation where:
- you want to have a modal dialog appear, or something a lot like it;
- the
<dialog>
tag and its showModal()
method, while very nice, are unavailable to you;
- you’d rather not add a dedicated overlay element to grey out the rest of the page;
you might like this stupid CSS hack!
Specifically, I’m boycotting all products or services that are called “One.”
I’ve actually been doing it for some time now.
The list of things I’m not getting includes but is not limited to:
- Apple One
- Google One
- Ubuntu One
- Android One
- KPN EEN
- T-mobile One
- Xbox One
Let’s say, hypothetically, you’re making some kind of browser-based map editor. The editor allows you to place items on the map (e.g. statues), at any position, facing any direction. You’ve implemented drag and drop functionality to help set the object’s position, and would like to add some sort of rotation handle to help better visualize which direction the item is facing.
Given the object is located at position [X, Y], rotated α degrees. You want to place the rotation handle at distance r from the object’s centre, aligned with the direction in which the object is facing. What are its coordinates?
The answer may frustrate you!
(But probably not as much as it did me.)
Way back when, Louis CK had a bit about how whenever a popular actor suddenly turns out to be a creep, whatever they were doing up until that point is immediately erased from the proverbial airwaves so that nobody gets to watch it anymore. Not even if it was good, which made him sad. If instead of getting deleted, the shows would only move from where they were to some other channel, say, the Disgrace Channel, he’d totally watch that. I mean sure, you know that everything you see there is horribly problematic in a multitude of ways, but when you forget that for a minute, the content’s also still kinda good, you know?