Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<footer class="-sm:text-center">Centered on mobile, back to default for bigger screens</footer>
<img class="-sm:hidden">Hidden only on mobile to save space</img>
<body class="-sm:p-4">Only apply padding on mobile so text isn't hard against the screen</body>
<sidebar class="hidden @md:show">Only this on medium sized screens</sidebar>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment