Skip to content

Instantly share code, notes, and snippets.

View tegola's full-sized avatar
🏠
WFH4L

Alan Sprecacenere tegola

🏠
WFH4L
View GitHub Profile
@teammixture
teammixture / layout.liquid
Created June 30, 2014 10:23
Setting a global variable block at the top of the page, allows any page to inject variables that are available globally...
<!doctype html>
{% block _vars %}{% endblock %}
<html lang="en">
<head>
<title>title</title>
</head>
<body class="{{ _bodyClass }}">
{% block content %}{% endblock %}
</body>
</html>
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@thulstrup
thulstrup / compass-retina-sprites.scss
Created March 20, 2012 19:18
Using Compass to generate normal and retina sprite maps
$sprites: sprite-map("sprites/*.png");
$sprites-retina: sprite-map("sprites-retina/*.png");
@mixin sprite-background($name) {
background-image: sprite-url($sprites);
background-position: sprite-position($sprites, $name);
background-repeat: no-repeat;
display: block;
height: image-height(sprite-file($sprites, $name));
width: image-width(sprite-file($sprites, $name));