From 588b2da937dd5c34766863fba3a9daaf2276d900 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 30 Jun 2011 10:40:28 -0700 Subject: updated docs, fixed language, added copy-code js for selecting text on focus --- docs/assets/css/docs.css | 8 ++------ docs/assets/js/application.js | 9 +++++++++ docs/index.html | 33 +++++++++------------------------ 3 files changed, 20 insertions(+), 30 deletions(-) (limited to 'docs') diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index a17d0d122..66b8b7ccf 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -89,7 +89,7 @@ div.quickstart div.row { } div.quickstart div.columns { width: 285px; - height: 100px; + height: 117px; margin-left: 0; padding: 17px 20px 26px; border-left: 1px solid #eee; @@ -114,15 +114,11 @@ div.quickstart h6 { div.quickstart form textarea { display: block; width: 275px; - height: 21px; + height: auto; margin: 0 0 9px; line-height: 21px; white-space: nowrap; overflow: hidden; - border-color: #ddd; - -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.1); - -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.1); - box-shadow: inset 0 1px 3px rgba(0,0,0,.1); } #footer { margin-top: 80px; diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 2372bdb96..3993c353e 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -35,6 +35,15 @@ $(document).ready(function(){ }); + // Copy code blocks in docs + $(".copy-code").focus(function() { + $(this).select(); + }); + $(".copy-code").mouseup(function(e) { + e.preventDefault(); + }); + + // scroll spyer var activeTarget, $window = $(window), diff --git a/docs/index.html b/docs/index.html index 862bd597f..aab4ae490 100644 --- a/docs/index.html +++ b/docs/index.html @@ -42,27 +42,12 @@
- -

Twitter Bootstrap

-

- Bootstrap is a toolkit from Twitter designed to kickstart development of websites and apps.
- It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.
-

-

Nerd alert: Bootstrap is built with LESS and was designed to work out of the gate with only modern browsers in mind.

- +

Twitter Bootstrap

+

+ Bootstrap is a toolkit from Twitter designed to kickstart development of websites and apps.
+ It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.
+

+

Nerd alert: Bootstrap is built with LESS and was designed to work out of the gate with only modern browsers in mind.

@@ -74,15 +59,15 @@
Hotlink the CSS

For the quickest and easiest start, just copy this snippet into your webpage.

- +
Use it with LESS

A fan of using LESS.js? No problem, just clone the repo and add these lines:

- +
-- cgit v1.2.3