nikhil.io

forty things tagged “references

Some Amazing Things You can do with Modern CSS

Plenty of good stuff on there but this totally blew my mind. Consider this custom tag (should be lowercased and contain hyphens. Emojis are allowed!):

<cool-thing shadow>wow</cool-thing>

and this valid CSS:

cool-thing {
    display: flex;

    &[shadow] {
        box-shadow: 1px 1px #0007;
    }

    @media (screen < 480px) {
        flex-direction: column;
    }
}

The only thing missing from my beloved SASS are mixins but I suppose you can achieve that by composing attributes (like shadow above). Super cool.

Guide to Book Conditions

Reproduced here via AbeBooks with this caveat: The definitions below are for reference only. Booksellers use these terms, as well as unique terms not included in this list, based on their own criteria. If you would like clarification on any term in a particular seller’s description, please contac…

A List of Hacker News ‘Classics’

When you’re following a bunch of feeds, it’s easy to forget that the web is the greatest library in the history of the world—and that a good library doesn’t just have a rack of newspapers, it has a vast collection of books and archives: the stacks. These are stories that get reposted a lot. Many…

Light Pollution Map

DarkSiteFinder is a map of light pollution around the world. The maintainer explains why he doesn’t use the Bortle Scale. In Iowa, Lake Sugema and The Whiterock Conservancy appear to be the ‘best’ places to see some (more) stars.…