Skip to content

Instantly share code, notes, and snippets.

View gemmaleigh's full-sized avatar

Gemma Leigh gemmaleigh

  • London, United Kingdom
View GitHub Profile
@gemmaleigh
gemmaleigh / layout
Created November 6, 2014 11:41
layout.html
{{<template}}
{{$head}}
{{>includes/head}}
{{/head}}
{{$propositionHeader}}
{{>includes/propositional_navigation}}
{{/propositionHeader}}
@gemmaleigh
gemmaleigh / template
Created November 6, 2014 11:40
template.html
<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8" lang=""><![endif]-->
<!--[if gt IE 8]><!--><html lang=""><!--<![endif]-->
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>{{$pageTitle}}{{/pageTitle}}</title>
<script type="text/javascript">
(function(){if(navigator.userAgent.match(/IEMobile\/10\.0/)){var d=document,c="appendChild",a=d.createElement("style");a[c](d.createTextNode("@-ms-viewport{width:auto!important}"));d.getElementsByTagName("head")[0][c](a);}})();
@gemmaleigh
gemmaleigh / retina-mixin
Last active December 28, 2015 10:29
Retina image mixin
// Retina images mixin
@mixin image-2x($image, $width, $height) {
@media (min--moz-device-pixel-ratio: 1.3),
(-o-min-device-pixel-ratio: 2.6/2),
(-webkit-min-device-pixel-ratio: 1.3),
(min-device-pixel-ratio: 1.3),
(min-resolution: 1.3dppx) {