Hacker Newsnew | past | comments | ask | show | jobs | submit | curlftpfs's commentslogin

> Set the style of the html node for overflow: auto

I have a custom style to do this for ALL sites, warning:

1. it can break websites in unexpected ways

2. There's often a class on the <body> hiding overflow that needs to be overwritten instead/as well


You do, via `color-scheme` or media query


Element-based selectors, setting the root font-size, mixed units, text color with no background color...I guess the assumption is that you won't add ANY other styling? Big headaches down the road if you do.


well yeah thats the gimmick with these things, ultra minimalist drop in css. its not like its hard to modify later on


We can have both! Wide containers with narrow line lengths.

We call them "columns" and they're part of CSS now.


"Good design is often invisible, if you skip the on-boarding process" -- Dieter Rams


What do/don't you like about Nx?

You describe my scenario (with fewer teams), difficult deciding between options. (Using Webpack + git to do "component management" and bundle to single-file ES6 modules.)


We can guess by looking at the SO₂ deposited by volcanic eruptions

> [The 1991 eruption of Mount Pinatubo released] 17 megatons of sulfur dioxide into the atmosphere, causing global cooling by 0.5 °C (0.9 °F) between 1991–1993

> [It] oxidized in the atmosphere to produce a haze of sulfuric acid droplets, which gradually spread throughout the stratosphere over the year following the eruption

https://en.wikipedia.org/wiki/1991_eruption_of_Mount_Pinatub...


The vital difference is that vulcanic eruptions are basically a pulse-chase 'experiment', whereas geoengineering would require sustained injections with smaller doses.


This idea is explored in Neal Stephenson's Termination Shock. There was no stopping one crazy billionaire, let alone an entire nation.

https://en.wikipedia.org/wiki/Termination_Shock_(novel)


By domain or filename. Another reason to not use icon fonts.

https://github.blog/2016-02-22-delivering-octicons-with-svg/


Agreed. It's been like 7 years since icon fonts were recommended and it's a real shame I still regularly see people do it today.


I mean the outdated tutorials still suggest icon fonts. What’s a good alternative?


I sometimes use svg's define symbol method `<defs>` (https://developer.mozilla.org/en-US/docs/Web/SVG/Element/def...), you combine all the icons you use into one document that you load with display none and then reference those symbols anywhere else on the page using svg `<use>`.


Use graphics for icons.

For a11y reasons, include a text alternative, like the alt attribute on <img> elements or adding a <title> in your <svg>.

https://css-tricks.com/accessible-svgs/


It's a point of a blockchain; it's opt-in. Much like your credit card's contract.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: