From d4e439675327cf7417a5d267cd5f7733d240bbb8 Mon Sep 17 00:00:00 2001 From: Mark Perkins Date: Mon, 25 Jun 2012 12:33:12 +0100 Subject: [PATCH] Experiment with docs example layouts --- README.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b4c7218..ac5d9b8 100644 --- a/README.md +++ b/README.md @@ -87,31 +87,34 @@ Note that this doesn't stop you doing your base `body` font size calculations/de Generates a font-size property the font-size in ems. ```css -/* .font-size-ems( <@px-size> [, <@context-px-size>] ); */ - -p { - .font-size-ems( 12 ); -} +.font-size-ems( <@px-size> [, <@context-px-size>] ); ``` * `@px-size`: Font size (in pixels) to convert to ems. * `@context-px-size`: *(Optional)* The font size (in pixels) of the current context. Defaults to the value of `@base-font-size` if not specified. +```css +p { + .font-size-ems( 12 ); +} +``` + ### .font-size-rems Calculates the font-size in rems and provides a pixel based fallback for browsers that do not support rem units. ```css -/* .font-size-rems( <@px-size> [, <@context-px-size>] ); */ - -p { - .font-size-rems( 12 ); -} +.font-size-rems( <@px-size> [, <@context-px-size>] ); ``` * `@px-size`: Font size (in pixels) to convert to rems. * `@context-px-size`: *(Optional)* The font size (in pixels) of the current context. Defaults to the value of `@base-font-size` if not specified. +```css +p { + .font-size-rems( 12 ); +} +``` Grids -------