Sabitlenmiş Tweet
nick
6.4K posts


I found that instead of having different paddings depending on having an icon or not (which is annoying to set up) if you put some padding on the actual text inside the button, you get the same result.
If your button has an icon on the left, then the padding is just 12px. But when the padding is compounded with the padding of the text, you get 16px.
This way you don't have to juggle conditional paddings, and this just works

Jesse@jesse_vermeulen
the difference between a senior and a junior designer
English

@jesse_vermeulen Always use 14px and then give the `<span />` a padding-x of 2px. Thank me later.
(No more "if there's an icon, use 14px instead of 16px", or strange class names in dom)
English

@n___vc Thinner works better when you want a subtle transition between the element and the background
English

@webfansplz oh shoot, this is nice. thanks for something i didn’t knew i wanted
English


























