Skip to content

Instantly share code, notes, and snippets.

View michsch's full-sized avatar

Michael Schulze michsch

View GitHub Profile
@michsch
michsch / _config.scss
Created July 19, 2012 11:29
Font size configuration with Sass (SCSS)
/* font size & line height in px */
$font-size-body-px: 14;
$line-height-px: 21;
/* calculate font-size (in %) and line-height (in em) */
$font-size-body: pc($font-size-body-px, 16);
$line-height: em($line-height-px, $font-size-body-px);
@michsch
michsch / Grunt Coffee Task
Created July 11, 2012 01:18 — forked from davidpfahler/Grunt Coffee Task
A grunt task that compiles coffee-script to js
/*
* Grunt Task File
* ---------------
*
* Task: coffee
* Description: Compile coffee files to js
* Dependencies: coffee-script
*
*/
@michsch
michsch / compass-retina-sprites.scss
Created July 2, 2012 22:50 — forked from alanhogan/compass-retina-sprites.scss
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));
@michsch
michsch / dabblet.css
Created June 25, 2012 21:05
Footer at bottom
/**
* Footer at bottom
* original found at: http://peterned.home.xs4all.nl/examples/csslayout1.html
*/
/* import normalize css */
@import url("http://raw.github.com/necolas/normalize.css/master/normalize.css");
/* import fonts */
@import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic|Yanone+Kaffeesatz:400,700);
@michsch
michsch / tt_content.ts
Created June 9, 2012 14:34
TypoScript: Link on Caption
tt_content.image.20.caption.1.stdWrap {
typolink = 1
typolink.parameter.field = image_link
typolink.parameter.listNum.stdWrap.data = register:IMAGE_NUM_CURRENT
}
@michsch
michsch / dabblet.css
Created May 30, 2012 18:02
outer DIV to 100%
/**
* outer DIV to 100%
*/
html * { font-size:100%; }
body {
padding: 0;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 87.50%;
@michsch
michsch / dabblet.css
Created April 8, 2012 12:05
100% navigation with display:table
/**
* 100% navigation with display:table
*/
body {
padding: 10px;
font-family: Arial, Helvetica, sans-serif;
font-size: 87.50%;
background: #ddd;
}
@michsch
michsch / dabblet.css
Created April 1, 2012 18:07
YAML 3col layout with fixed sidebars (left and right)
/**
* YAML 3col layout with fixed sidebars (left and right)
* col1 | col2 | col3
*/
body {
background: #efefef;
}
.ym-wrapper {
@michsch
michsch / dabblet.css
Created April 1, 2012 18:03
flexible fluid <figure> and <figcaption>
/**
* flexible fluid <figure> and <figcaption>
*/
html * { font-size:100%; }
body {
background: #efefef;
min-height:100%;
font-size: 85%;
@michsch
michsch / dabblet.css
Created February 28, 2012 20:10
Round corners in Chrome and Safari
/**
* Round corners in Chrome and Safari
*/
/* just layout */
html { font-size: 100.00%; }
html, body { min-height:100%; }
body {
background: #ccc;
font-size: 87.5%;