Snippets cheat sheet
HTML
-
html5The HTML boilerplate code.
<!DOCTYPE html> <html lang="en-ca"> <head> <meta charset="utf-8"> <title></title> </head> <body> </body> </html>
-
cssCreates a new CSS link tag.
<link href=".css" rel="stylesheet">
-
viewportAdds the responsive viewport tags.
<meta name="viewport" content="width=device-width,initial-scale=1">
CSS
-
cssviewportOutputs the CSS viewport declarations.
@viewport { width: device-width; scale: 1; }
-
borderboxOutputs the CSS border box declarations for changing the layout math.
html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; }
-
textsizeOutputs the text-size-adjust declarations to prevent mobile browsers from changing the font-size.
text-size-adjust: 100%;
-
mqOutputs a new media query, placing the cursor in the
min-widthlocation.@media only screen and (min-width: 25em) { }