Search
Equal Width Columns in CSS Grid are Kinda Weird
14.5.2020
Everything is flexible these days. If you write grid-template-columns: 200px 200px 200px;, sure, you’d have equal-width columns, but that’s a rare day. What you usually mean is three columns of equal fluid width.
We’ve got fractional units for that, like grid-template-columns:...
Pseudo-elements in the Web Animations API
14.5.2020
To use the Web Animations API (e.g. el.animate()) you need a reference to a DOM element to target. So, how do you use it on pseudo-elements, which don’t really offer a direct reference? Dan Wilson covers a (newish?) part of the API itself:
const logo...
Using CSS Masks to Create Jagged Edges
12.5.2020
I was working on a project that had this neat jagged edge along the bottom of a banner image.
Looking sharp… in more ways than one.
It’s something that made me think for a second and I learned something in the process! I thought I’d write up how I approached it so you can use it on your...
How I Put the Scroll Percentage in the Browser Title Bar
12.5.2020
Some nice trickery from Knut Melvær.
Ultimately the trick boils down to figuring out how far you’ve scrolled on the page and changing the title to show it, like:
document.title = `${percent}% ${post.title}`
Knut’s trick assumes React and installing an additional library. I’m sure...
min(), max(), and clamp() are CSS magic!
12.5.2020
Nice video from Kevin Powell. Here are some notes, thoughts, and stuff I learned while watching it. Right when they came out, I was mostly obsessed with font-size usage, but they are just functions, so they can be used anywhere you’d use a number, like a length.
Sometimes pretty basic usage...
$270M in Longs Liquidated as Pre-Halving Hype Backfires
10.5.2020
98% of liquidations on BitMEX yesterday were long positions, indicating over-exuberant pre-halving bullishness at $10,000
Chromium lands Flexbox gap
9.5.2020
I mentioned this the other day via Michelle Barker’s coverage, but here I’ll link to the official announcement. The main thing is that we’ll be getting gap with flexbox, which means:
.flex-parent {
display: flex;
gap: 1rem;
}
.flex-child {
flex: 1;
}
That’s excellent...
Bitcoin Pre-Halving Hash Rate Volatility to Shake Up the Mining Sector
8.5.2020
As the halving approaches, Bitcoin’s hash rate sees major volatility. So what does it mean, exactly?
Meet Ideaology – All in One Blockchain Solution
6.5.2020
DUBAI, UAE, 8th May (Friday) Time: 10 AM New York, NY, USA (GMT-4) ‘MEET IDEAOLOGY’ webconference is looking for you The exclusive, pre-launch presentation for the top crypto people In an effort to make top-shelf blockchain partnerships before their Initial Coin Offering is launched, Ideaology...
`lh` and `rlh` units
5.5.2020
There’s some new units I was totally unaware of from the Level 4 spec for CSS values! The lh unit is “equal to the computed value of line-height” and rlh is the same only of the root element (probably the <html> element) rather than the current element.
Why would that...
No-Comma Color Functions in CSS
4.5.2020
There have been a couple of viral tweets about this lately, one from Adam Argyle and one from Mathias Bynes. This is a nice change that makes CSS a bit more clear. Before, every single color function actually needs two functions, one for transparency and one without, this eliminates that need...
Bitcoin Price Yearly Average Nears All-Time High Above 9K Pre-Halving
2.5.2020
The yearly average for BTC/USD is circling $9,000 for only the second time in history amid bullish halving sentiment
Bitcoin Soars to Pre-Crash Levels, Breaks Above Key Technical Barrier
29.4.2020
The price of bitcoin (BTC) is once again seeing strong gains in the crypto market today, after soaring to levels not seen since before crypto’s “Black Thursday” on March 12, and again positioning the asset above a key technical level in the chart.
As of press time (11:40 UTC), bitcoin is up...
Bitcoin Pre-Halving Price Rally Continues to $8K With New Higher High
29.4.2020
Bitcoin price is drawing closer to a crucial level near $8,000
How to Redirect a Search Form to a Site-Scoped Google Search
29.4.2020
This is just a tiny little trick that might be helpful on a site where you don’t have the time or desire to build out a really good on-site search solution. Google.com itself can perform searches scoped to one particular site. The trick is getting people there using that special syntax...
@property
25.4.2020
The @property is totally new to me, but I see it’s headed to Chrome, so I suppose it’s good to know about!
There is a draft spec and an “intent to ship” document. The code from that document shows:
@property --my-property {
syntax: "<color";
initial-value: green;
...
BTC Pre-Halving Pump in Play as Bitcoin Price Surges Toward $8,000
24.4.2020
Bitcoin price led the entire crypto market higher but is the move a strong step toward $8K or simply a short squeeze?
Bitcoin Rallies, Almost Hits Pre-Crash Level, Ethereum & Co Jump Too
23.4.2020
The most popular cryptocurrency, bitcoin (BTC) rallied on Thursday sharply, almost recovering all losses suffered on Black Thursday in March.
At pixel time (14:55 UTC), BTC trades at c. USD 7,573 and is up 5% in an hour and 6% in a day. The price increased 8% in a week and 12% in a month.
BTC...
Blockchain Association Tries to Draw Legal Line Between Kik’s Token and Its 2017 Pre-Sale
21.4.2020
The Blockchain Association is claiming that the U.S. Securities and Exchange Commission is wrongfully conflating Kik's exempt offering of securities during a 2017 ICO with the issuance of kin tokens
Pseudo-Randomly Adding Illustrations with CSS
17.4.2020
Between each post of Eric Meyer’s blog there’s this rather lovely illustration that can randomly be one of these five options:
Eric made each illustration into a separate background image then switches out that image with the nth-of-type CSS property, like this:
.entry:nth-of-type(2n+1)::before...