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
In this case I want the paddingLeft to remain 0 until breakpoint xl. Typically all I would need to do is use @media(min-width: ${breakpoints.xl}px) and be done. How might I reduce the need to liter the code with null values, also how might I make it more readable? You must keep the breakpoint order in your head or constantly refer back to the facepaint declaration as the array size expands.
Perhaps a regular media query could be used here instead, but I prefer not to mix/match. Thoughts?
The text was updated successfully, but these errors were encountered:
Love the library so far, any suggestion on how to improve the readability here?
Define our breakpoints
Feed into facepaint
Usage
In this case I want the paddingLeft to remain 0 until breakpoint
xl
. Typically all I would need to do is use@media(min-width: ${breakpoints.xl}px)
and be done. How might I reduce the need to liter the code withnull
values, also how might I make it more readable? You must keep the breakpoint order in your head or constantly refer back to the facepaint declaration as the array size expands.Perhaps a regular media query could be used here instead, but I prefer not to mix/match. Thoughts?
The text was updated successfully, but these errors were encountered: