You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wherever I use a border, I have to write border at least twice border border-red-500, and with elements that change on hover and focus border border-red-500 hover:border-red-700 focus:border-red-800, it is 4 times. While the first border is helpful, the rest are not. It is often these border classes that make the lines too long to fit on a screen.
A shorter prefix would help readability. Maybe bd or just b, which is reasonable considering that borders are as integral to the CSS box model as padding (p) and margin (m)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Wherever I use a border, I have to write border at least twice
border border-red-500, and with elements that change on hover and focusborder border-red-500 hover:border-red-700 focus:border-red-800, it is 4 times. While the firstborderis helpful, the rest are not. It is often these border classes that make the lines too long to fit on a screen.A shorter prefix would help readability. Maybe
bdor justb, which is reasonable considering thatbordersare as integral to the CSS box model aspadding (p)andmargin (m)Beta Was this translation helpful? Give feedback.
All reactions