Intro
This is just a collection of useful code snippets that I find myself looking for repeatedly.
CSS
Media Breakpoints
⚠️ When using these breakpoints, comment out or remove any breakpoints that are not actively being used to prevent unexpected behavior.
/* Extra small devices (phones, 640px and down) */
@media only screen and (max-width: 640px) {}
/* Small devices (portrait tablets and large phones, 640px and up) */
@media only screen and (min-width: 640px) {}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {}
/* Large devices (laptops/desktops, 1024px and up) */
@media only screen and (min-width: 1024px) {}
/* Extra large devices (large laptops and desktops, 1280px and up) */
@media only screen and (min-width: 1280px) {}