From 265511774715b8cbe7cbabb9b2a1bf2f27c28c1e Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 10 Sep 2011 22:43:52 -0700 Subject: [PATCH 1/3] add some notes on installing from command line and from makefile --- docs/index.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 6f8ad30a2d..5e8d1f7707 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1695,7 +1695,10 @@ Lorem ipsum dolar sit amet illo error ipsum verita Node with makefile - +

Install the less command line compiler with npm by running the following command:

+
$ npm install lessc
+

Once installed just run make from the root of your bootstrap directory and you're all set.

+

Additionally, if you have watchr installed, you may run make watch to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).

Javascript @@ -1711,7 +1714,9 @@ Lorem ipsum dolar sit amet illo error ipsum verita Command line - +

If you already have the less command line tool installed you can simply run the following command:

+
$ lessc ./lib/bootstrap.less > bootstrap-1.3.0.css
+

Be sure to include the --compress flag in that command if you're trying to save some bytes! From a5964b07b14f77795925112bf4f94ad78b51d251 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 10 Sep 2011 22:48:39 -0700 Subject: [PATCH 2/3] add static sizes for images so tooltips get right size on load --- docs/assets/css/docs.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 29fdcf3f0c..684c417331 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -312,6 +312,13 @@ img.large-bird { opacity: .1; } +/* Media grid images +--------------------------------------------------- */ +.media-grid img { + height: 150px; + width: 210px; +} + /* Pretty Print -------------------------------------------------- */ From d9cbcfc20ded5f1cd1af4e304415b3405631f0bc Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 10 Sep 2011 22:54:47 -0700 Subject: [PATCH 3/3] wait for window load event before positioning images, doi --- docs/assets/css/docs.css | 8 -------- docs/assets/js/application.js | 21 +++++++++++---------- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 684c417331..a4bd11b3e0 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -312,14 +312,6 @@ img.large-bird { opacity: .1; } -/* Media grid images ---------------------------------------------------- */ -.media-grid img { - height: 150px; - width: 210px; -} - - /* Pretty Print -------------------------------------------------- */ pre.prettyprint { diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index d1c6751ea2..e39a754749 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -48,15 +48,16 @@ $(document).ready(function(){ // POSITION STATIC TWIPSIES // ======================== - $(".twipsies a").each(function () { - $(this) - .twipsy({ - live: false - , placement: $(this).attr('title') - , trigger: 'manual' - , offset: 2 + $(window).load(function () { + $(".twipsies a").each(function () { + $(this) + .twipsy({ + live: false + , placement: $(this).attr('title') + , trigger: 'manual' + , offset: 2 + }) + .trigger('twipsy:show') }) - .trigger('twipsy:show') - }) - + }) });