Better icon and label alignment. @shadeed9 starts with a list where align-items:...
Web Standards @webstandards_dev@mastodon.social
Better icon and label alignment. @shadeed9 starts with a list where align-items: center drifts as soon as a label wraps to a second line, while align-items: start leaves the icon too high because of the line box around the text. The fix is the lh unit: half the difference between the line box and the icon size, applied as a translateY offset that holds at any font size. Icons drawn as pseudo-elements need a couple of extra declarations. #css #layout