Skip to content

Instantly share code, notes, and snippets.

@function em($target, $context: $base-font-size) {
@if $target == 0 { @return 0 }
@return $target / $context + 0em;
}
$base-font-size: 15px;
h1 {
font-size: em(21px, 15px); // Outputs 1.4em
}
@kareemkibue
kareemkibue / .htaccess
Last active July 26, 2016 01:14 — forked from jxnblk/.htaccess
.htaccess required for Angular JS HTML5 Mode, Routing (Pretty URLs)
#REQUIREMENTS
# 1. <base href="/" > inside <head> before importing external (local) stylesheets and javascript files
# the above is required if deep linking
#
# 2. in the module configuration, set html5mode to TRUE i.e. $locationProvider.html5Mode(true).hashPrefix('!');
#BEGIN
Options +FollowSymLinks