aboutsummaryrefslogtreecommitdiff
path: root/docs/less.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-06-05 18:29:26 -0700
committerMark Otto <[email protected]>2012-06-05 18:29:26 -0700
commit09ec0b843eae59318f37d2e3598ce59a23aff1d0 (patch)
treeaf2e9a0126890a1e2e29652dbee7f6802bf47fe6 /docs/less.html
parent8ee067952202cc8a6e4865eab46598e346ad3971 (diff)
downloadbootstrap-09ec0b843eae59318f37d2e3598ce59a23aff1d0.tar.xz
bootstrap-09ec0b843eae59318f37d2e3598ce59a23aff1d0.zip
updated less page to single col
Diffstat (limited to 'docs/less.html')
-rw-r--r--docs/less.html113
1 files changed, 48 insertions, 65 deletions
diff --git a/docs/less.html b/docs/less.html
index afa79d1c5..87610c83f 100644
--- a/docs/less.html
+++ b/docs/less.html
@@ -188,35 +188,25 @@
<div class="page-header">
<h1>Built with LESS</h1>
</div>
- <div class="row">
- <div class="span4">
- <h3>Why LESS?</h3>
- <p>Bootstrap is made with LESS at its core, a dynamic stylesheet language created by our good friend, <a href="http://cloudhead.io">Alexis Sellier</a>. It makes developing systems-based CSS faster, easier, and more fun.</p>
- </div>
- <div class="span4">
- <h3>What's included?</h3>
- <p>As an extension of CSS, LESS includes variables, mixins for reusable snippets of code, operations for simple math, nesting, and even color functions.</p>
- </div>
- <div class="span4">
- <h3>Learn more</h3>
- <img style="float: right; height: 36px;" src="assets/img/less-logo-large.png" alt="LESS CSS">
- <p>Visit the official website at <a href="http://lesscss.org">http://lesscss.org</a> to learn more.</p>
- </div>
- </div>
- <div class="row">
- <div class="span4">
- <h3><a href="#variables">Variables</a></h3>
- <p>Managing colors and pixel values in CSS can be a bit of a pain, usually full of copy and paste. Not with LESS though&mdash;assign colors or pixel values as variables and change them once.</p>
- </div>
- <div class="span4">
- <h3><a href="#mixins">Mixins</a></h3>
- <p>Those three border-radius declarations you need to make in regular ol' CSS? Now they're down to one line with the help of mixins, snippets of code you can reuse anywhere.</p>
- </div>
- <div class="span4">
- <h3>Operations</h3>
- <p>Make your grid, leading, and more super flexible by doing the math on the fly with operations. Multiply, divide, add, and subtract your way to CSS sanity.</p>
- </div>
- </div>
+
+ <h3>Why LESS?</h3>
+ <p>Bootstrap is made with LESS at its core, a dynamic stylesheet language created by our good friend, <a href="http://cloudhead.io">Alexis Sellier</a>. It makes developing systems-based CSS faster, easier, and more fun.</p>
+
+ <h3>What's included?</h3>
+ <p>As an extension of CSS, LESS includes variables, mixins for reusable snippets of code, operations for simple math, nesting, and even color functions.</p>
+
+ <h3>Learn more</h3>
+ <img style="float: right; height: 36px;" src="assets/img/less-logo-large.png" alt="LESS CSS">
+ <p>Visit the official website at <a href="http://lesscss.org">http://lesscss.org</a> to learn more.</p>
+
+ <h3><a href="#variables">Variables</a></h3>
+ <p>Managing colors and pixel values in CSS can be a bit of a pain, usually full of copy and paste. Not with LESS though&mdash;assign colors or pixel values as variables and change them once.</p>
+
+ <h3><a href="#mixins">Mixins</a></h3>
+ <p>Those three border-radius declarations you need to make in regular ol' CSS? Now they're down to one line with the help of mixins, snippets of code you can reuse anywhere.</p>
+
+ <h3>Operations</h3>
+ <p>Make your grid, leading, and more super flexible by doing the math on the fly with operations. Multiply, divide, add, and subtract your way to CSS sanity.</p>
</section>
@@ -1067,47 +1057,40 @@
<div class="alert alert-info">
<strong>Note:</strong> If you're submitting a pull request to GitHub with modified CSS, you <strong>must</strong> recompile the CSS via any of these methods.
</div>
+
<h2>Tools for compiling</h2>
- <div class="row">
- <div class="span4">
- <h3>Node with makefile</h3>
- <p>Install the LESS command line compiler, JSHint, Recess, and uglify-js globally with npm by running the following command:</p>
- <pre>$ npm install -g less jshint recess uglify-js</pre>
- <p>Once installed just run <code>make</code> from the root of your bootstrap directory and you're all set.</p>
- <p>Additionally, if you have <a href="https://github.com/mynyml/watchr">watchr</a> installed, you may run <code>make watch</code> to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).</p>
- </div><!-- /span4 -->
- <div class="span4">
- <h3>Command line</h3>
- <p>Install the LESS command line tool via Node and run the following command:</p>
- <pre>$ lessc ./less/bootstrap.less > bootstrap.css</pre>
- <p>Be sure to include <code>--compress</code> in that command if you're trying to save some bytes!</p>
- </div><!-- /span4 -->
- <div class="span4">
- <h3>Javascript</h3>
- <p><a href="http://lesscss.org/">Download the latest Less.js</a> and include the path to it (and Bootstrap) in the <code>&lt;head&gt;</code>.</p>
+
+ <h3>Node with makefile</h3>
+ <p>Install the LESS command line compiler, JSHint, Recess, and uglify-js globally with npm by running the following command:</p>
+ <pre>$ npm install -g less jshint recess uglify-js</pre>
+ <p>Once installed just run <code>make</code> from the root of your bootstrap directory and you're all set.</p>
+ <p>Additionally, if you have <a href="https://github.com/mynyml/watchr">watchr</a> installed, you may run <code>make watch</code> to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).</p>
+
+ <h3>Command line</h3>
+ <p>Install the LESS command line tool via Node and run the following command:</p>
+ <pre>$ lessc ./less/bootstrap.less > bootstrap.css</pre>
+ <p>Be sure to include <code>--compress</code> in that command if you're trying to save some bytes!</p>
+
+ <h3>Javascript</h3>
+ <p><a href="http://lesscss.org/">Download the latest Less.js</a> and include the path to it (and Bootstrap) in the <code>&lt;head&gt;</code>.</p>
<pre class="prettyprint">
&lt;link rel="stylesheet/less" href="/path/to/bootstrap.less"&gt;
&lt;script src="/path/to/less.js"&gt;&lt;/script&gt;
</pre>
- <p>To recompile the .less files, just save them and reload your page. Less.js compiles them and stores them in local storage.</p>
- </div><!-- /span4 -->
- </div><!-- /row -->
- <div class="row">
- <div class="span4">
- <h3>Unofficial Mac app</h3>
- <p><a href="http://incident57.com/less/">The unofficial Mac app</a> watches directories of .less files and compiles the code to local files after every save of a watched .less file.</p>
- <p>If you like, you can toggle preferences in the app for automatic minifying and which directory the compiled files end up in.</p>
- </div><!-- /span4 -->
- <div class="span4">
- <h3>More Mac apps</h3>
- <h4><a href="http://crunchapp.net/" target="_blank">Crunch</a></h4>
- <p>Crunch is a great looking LESS editor and compiler built on Adobe Air.</p>
- <h4><a href="http://incident57.com/codekit/" target="_blank">CodeKit</a></h4>
- <p>Created by the same guy as the unofficial Mac app, CodeKit is a Mac app that compiles LESS, SASS, Stylus, and CoffeeScript.</p>
- <h4><a href="http://wearekiss.com/simpless" target="_blank">Simpless</a></h4>
- <p>Mac, Linux, and PC app for drag and drop compiling of LESS files. Plus, the <a href="https://github.com/Paratron/SimpLESS" target="_blank">source code is on GitHub</a>.</p>
- </div><!-- /span4 -->
- </div><!-- /row -->
+ <p>To recompile the .less files, just save them and reload your page. Less.js compiles them and stores them in local storage.</p>
+
+ <h3>Unofficial Mac app</h3>
+ <p><a href="http://incident57.com/less/">The unofficial Mac app</a> watches directories of .less files and compiles the code to local files after every save of a watched .less file.</p>
+ <p>If you like, you can toggle preferences in the app for automatic minifying and which directory the compiled files end up in.</p>
+
+ <h3>More Mac apps</h3>
+ <h4><a href="http://crunchapp.net/" target="_blank">Crunch</a></h4>
+ <p>Crunch is a great looking LESS editor and compiler built on Adobe Air.</p>
+ <h4><a href="http://incident57.com/codekit/" target="_blank">CodeKit</a></h4>
+ <p>Created by the same guy as the unofficial Mac app, CodeKit is a Mac app that compiles LESS, SASS, Stylus, and CoffeeScript.</p>
+ <h4><a href="http://wearekiss.com/simpless" target="_blank">Simpless</a></h4>
+ <p>Mac, Linux, and PC app for drag and drop compiling of LESS files. Plus, the <a href="https://github.com/Paratron/SimpLESS" target="_blank">source code is on GitHub</a>.</p>
+
</section>