Skip to content

Instantly share code, notes, and snippets.

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@krueschi
krueschi / gitignore_example
Last active August 29, 2015 14:04
Local drupal devel settings
# Ignore configuration files that may contain sensitive information.
sites/*/settings*.php
# Do not ignore dev configuration files
!sites/*.localhost/settings*.php
# Ignore paths that contain user-generated content.
sites/*/files
sites/*/privatefiles
@krueschi
krueschi / add_to_template.php
Last active December 14, 2015 01:19
Bereitstellen neuer Variablen für ein Drupal 6 Theme in template.php
themename_preprocess(&$vars, $hook)
function THEME_preprocess(&$vars, $hook) {
if ($hook == 'page') {
$vars['NEUE_VARIABLE'] = 'WERT';
}
}
themename_preprocess_hook(&$vars)
function THEME_preprocess_page(&$vars) {
$vars['NEUE_VARIABLE'] = 'WERT';