From 20aecb983838422c7b43e20960b10d4d79fefaa3 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 21 Dec 2011 16:22:20 -0600 Subject: updated all docs to jQuery 1.7, move all docs JS to application.js, and move dropdowns css to dedicated file --- docs/assets/css/docs.css | 5 +++++ docs/assets/js/application.js | 31 +++++++++++++++++++++++++++++++ docs/base-css.html | 13 +------------ docs/components.html | 13 +------------ docs/index.html | 37 +++++++++---------------------------- docs/less.html | 13 +------------ docs/scaffolding.html | 24 +----------------------- docs/upgrading.html | 24 +++--------------------- 8 files changed, 52 insertions(+), 108 deletions(-) (limited to 'docs') diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 8432f92ea..5ed38bb47 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -317,6 +317,11 @@ h2 + table { .example-sites img { width: 290px; } +.built-with { + margin: -18px 0 27px; + color: #999; + text-align: center; +} .scrollspy-example { height: 200px; diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 74024caa1..255f624be 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -1,5 +1,36 @@ $(function(){ + // Hide the Mobile Safari address bar once loaded + // ============================================== + + window.addEventListener("load",function() { + // Set a timeout... + setTimeout(function(){ + // Hide the address bar! + window.scrollTo(0, 1); + }, 0); + }); + + + // Docs topbar nav + // =============== + + $('.nav .active').click(function(e) { + e.preventDefault(); + $(this).siblings().toggle(); + }); + + + // Show grid dimensions on hover + // ============================= + + $('.show-grid > div').hover(function() { + var width = $(this).width(); + $(this).attr('title', width); + $(this).twipsy(); + }); + + // table sort example // ================== diff --git a/docs/base-css.html b/docs/base-css.html index 63ec53306..bb54b0c51 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -1178,18 +1178,7 @@ Form states - - - - + diff --git a/docs/components.html b/docs/components.html index 11d83c51a..9c683b9b2 100644 --- a/docs/components.html +++ b/docs/components.html @@ -814,18 +814,7 @@ Lorem ipsum dolar sit amet illo error ipsum verita - - - - + diff --git a/docs/index.html b/docs/index.html index 55a75b1bf..1b7edb8c5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -107,19 +107,20 @@

Built with Bootstrap

- - - - - + -- cgit v1.2.3