From 983e5468200f04d6c99594a157df1baa5e956366 Mon Sep 17 00:00:00 2001 From: Andy Meneely Date: Sat, 23 Jan 2016 22:48:07 -0500 Subject: [PATCH] Small tweak to units.rst --- docs/units.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/units.rst b/docs/units.rst index 4266408..e79f6e0 100644 --- a/docs/units.rst +++ b/docs/units.rst @@ -1,4 +1,6 @@ Unit Conversion =============== -By default, Squib thinks in pixels. This decision was made so that we can have pixel-perfect layouts without automatically scaling everything, even though working in units is sometimes easier. We provide some conversion methods, including looking for strings that end in "in" and "cm" and computing based on the current DPI. The dpi is set on `Squib::Deck.new` (not `config.yml`). Example is in `samples/units.rb` found [here](https://github.com/andymeneely/squib/tree/master/samples/units.rb) +By default, Squib thinks in pixels. This decision was made so that we can have pixel-perfect layouts without automatically scaling everything, even though working in units is sometimes easier. We provide some conversion methods, including looking for strings that end in "in" and "cm" and computing based on the current DPI. The dpi is set on `Squib::Deck.new` (not `config.yml`). + +Example is in `samples/units.rb` found [here](https://github.com/andymeneely/squib/tree/master/samples/units.rb)