Skip to content

Commit

Permalink
update docs to v2.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
m5o committed Dec 9, 2012
1 parent af2a48c commit 5f7014b
Show file tree
Hide file tree
Showing 46 changed files with 1,226 additions and 341 deletions.
65 changes: 57 additions & 8 deletions docs/assets/css/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,16 @@ hr.soften {
background: url(../img/bs-docs-masthead-pattern.png) repeat center center;
opacity: .4;
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1) {

.jumbotron:after {
background-size: 150px 150px;
}

}

/* Masthead (docs home)
------------------------- */
Expand Down Expand Up @@ -278,9 +288,10 @@ hr.soften {
line-height: 1.25;
color: #999;
}
.marketing img {
.marketing-img {
display: block;
margin: 0 auto 30px;
max-height: 145px;
}


Expand All @@ -289,7 +300,8 @@ hr.soften {
-------------------------------------------------- */

.footer {
padding: 70px 0;
text-align: center;
padding: 30px 0;
margin-top: 70px;
border-top: 1px solid #e5e5e5;
background-color: #f5f5f5;
Expand Down Expand Up @@ -335,8 +347,14 @@ hr.soften {
margin-bottom: 0;
}
.show-grid .show-grid [class*="span"] {
margin-top: 5px;
}
.show-grid [class*="span"] [class*="span"] {
background-color: #ccc;
}
.show-grid [class*="span"] [class*="span"] [class*="span"] {
background-color: #999;
}



Expand Down Expand Up @@ -669,6 +687,21 @@ form.bs-docs-example {
margin: 20px;
}

/* Dropdowns */
.bs-docs-example-submenus {
min-height: 180px;
}
.bs-docs-example-submenus > .pull-left + .pull-left {
margin-left: 20px;
}
.bs-docs-example-submenus .dropup > .dropdown-menu,
.bs-docs-example-submenus .dropdown > .dropdown-menu {
display: block;
position: static;
margin-bottom: 5px;
*width: 180px;
}



/* Responsive docs
Expand Down Expand Up @@ -849,14 +882,15 @@ form.bs-docs-example {
/* When affixed, space properly */
.bs-docs-sidenav {
top: 0;
width: 218px;
margin-top: 30px;
margin-right: 0;
}
}

/* Tablet to desktop
------------------------- */
@media (min-width: 768px) and (max-width: 980px) {
@media (min-width: 768px) and (max-width: 979px) {
/* Remove any padding from the body */
body {
padding-top: 0;
Expand Down Expand Up @@ -994,7 +1028,26 @@ form.bs-docs-example {
word-break: break-all;
}

/* Modal example */
/* Examples: dropdowns */
.bs-docs-example-submenus > .pull-left {
float: none;
clear: both;
}
.bs-docs-example-submenus > .pull-left,
.bs-docs-example-submenus > .pull-left + .pull-left {
margin-left: 0;
}
.bs-docs-example-submenus p {
margin-bottom: 0;
}
.bs-docs-example-submenus .dropup > .dropdown-menu,
.bs-docs-example-submenus .dropdown > .dropdown-menu {
margin-bottom: 10px;
float: none;
max-width: 180px;
}

/* Examples: modal */
.modal-example .modal {
position: relative;
top: auto;
Expand All @@ -1008,8 +1061,4 @@ form.bs-docs-example {
padding-top: 20px;
padding-bottom: 20px;
}
/* Unfloat the back to top in footer to prevent odd text wrapping */
.footer .pull-right {
float: none;
}
}
Binary file added docs/assets/ico/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/img/bs-docs-bootstrap-features.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/img/bs-docs-responsive-illustrations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/img/bs-docs-twitter-github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/assets/js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To target a specific plugin, just include the plugins name as a namespace along

---

### PROGRAMATIC API
### PROGRAMMATIC API

We also believe you should be able to use all plugins provided by Bootstrap purely through the JS API.

Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
})

// request built javascript
$('.download-btn').on('click', function () {
$('.download-btn .btn').on('click', function () {

var css = $("#components.download input:checked")
.map(function () { return this.value })
Expand Down
13 changes: 12 additions & 1 deletion docs/assets/js/bootstrap-affix.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* ==========================================================
* bootstrap-affix.js v2.2.1
* bootstrap-affix.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#affix
* ==========================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -68,6 +68,8 @@
/* AFFIX PLUGIN DEFINITION
* ======================= */

var old = $.fn.affix

$.fn.affix = function (option) {
return this.each(function () {
var $this = $(this)
Expand All @@ -85,6 +87,15 @@
}


/* AFFIX NO CONFLICT
* ================= */

$.fn.affix.noConflict = function () {
$.fn.affix = old
return this
}


/* AFFIX DATA-API
* ============== */

Expand Down
13 changes: 12 additions & 1 deletion docs/assets/js/bootstrap-alert.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* ==========================================================
* bootstrap-alert.js v2.2.1
* bootstrap-alert.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#alerts
* ==========================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -68,6 +68,8 @@
/* ALERT PLUGIN DEFINITION
* ======================= */

var old = $.fn.alert

$.fn.alert = function (option) {
return this.each(function () {
var $this = $(this)
Expand All @@ -80,6 +82,15 @@
$.fn.alert.Constructor = Alert


/* ALERT NO CONFLICT
* ================= */

$.fn.alert.noConflict = function () {
$.fn.alert = old
return this
}


/* ALERT DATA-API
* ============== */

Expand Down
13 changes: 12 additions & 1 deletion docs/assets/js/bootstrap-button.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* ============================================================
* bootstrap-button.js v2.2.1
* bootstrap-button.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#buttons
* ============================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -64,6 +64,8 @@
/* BUTTON PLUGIN DEFINITION
* ======================== */

var old = $.fn.button

$.fn.button = function (option) {
return this.each(function () {
var $this = $(this)
Expand All @@ -82,6 +84,15 @@
$.fn.button.Constructor = Button


/* BUTTON NO CONFLICT
* ================== */

$.fn.button.noConflict = function () {
$.fn.button = old
return this
}


/* BUTTON DATA-API
* =============== */

Expand Down
13 changes: 11 additions & 2 deletions docs/assets/js/bootstrap-carousel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* ==========================================================
* bootstrap-carousel.js v2.2.1
* bootstrap-carousel.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#carousel
* ==========================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -29,7 +29,6 @@
var Carousel = function (element, options) {
this.$element = $(element)
this.options = options
this.options.slide && this.slide(this.options.slide)
this.options.pause == 'hover' && this.$element
.on('mouseenter', $.proxy(this.pause, this))
.on('mouseleave', $.proxy(this.cycle, this))
Expand Down Expand Up @@ -141,6 +140,8 @@
/* CAROUSEL PLUGIN DEFINITION
* ========================== */

var old = $.fn.carousel

$.fn.carousel = function (option) {
return this.each(function () {
var $this = $(this)
Expand All @@ -162,6 +163,14 @@
$.fn.carousel.Constructor = Carousel


/* CAROUSEL NO CONFLICT
* ==================== */

$.fn.carousel.noConflict = function () {
$.fn.carousel = old
return this
}

/* CAROUSEL DATA-API
* ================= */

Expand Down
19 changes: 15 additions & 4 deletions docs/assets/js/bootstrap-collapse.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* =============================================================
* bootstrap-collapse.js v2.2.1
* bootstrap-collapse.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#collapse
* =============================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -120,8 +120,10 @@
}


/* COLLAPSIBLE PLUGIN DEFINITION
* ============================== */
/* COLLAPSE PLUGIN DEFINITION
* ========================== */

var old = $.fn.collapse

$.fn.collapse = function (option) {
return this.each(function () {
Expand All @@ -140,9 +142,18 @@
$.fn.collapse.Constructor = Collapse


/* COLLAPSIBLE DATA-API
/* COLLAPSE NO CONFLICT
* ==================== */

$.fn.collapse.noConflict = function () {
$.fn.collapse = old
return this
}


/* COLLAPSE DATA-API
* ================= */

$(document).on('click.collapse.data-api', '[data-toggle=collapse]', function (e) {
var $this = $(this), href
, target = $this.attr('data-target')
Expand Down
19 changes: 16 additions & 3 deletions docs/assets/js/bootstrap-dropdown.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* ============================================================
* bootstrap-dropdown.js v2.2.1
* bootstrap-dropdown.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#dropdowns
* ============================================================
* Copyright 2012 Twitter, Inc.
Expand Down Expand Up @@ -53,9 +53,10 @@

if (!isActive) {
$parent.toggleClass('open')
$this.focus()
}

$this.focus()

return false
}

Expand All @@ -82,7 +83,7 @@

if (!isActive || (isActive && e.keyCode == 27)) return $this.click()

$items = $('[role=menu] li:not(.divider) a', $parent)
$items = $('[role=menu] li:not(.divider):visible a', $parent)

if (!$items.length) return

Expand Down Expand Up @@ -124,6 +125,8 @@
/* DROPDOWN PLUGIN DEFINITION
* ========================== */

var old = $.fn.dropdown

$.fn.dropdown = function (option) {
return this.each(function () {
var $this = $(this)
Expand All @@ -136,12 +139,22 @@
$.fn.dropdown.Constructor = Dropdown


/* DROPDOWN NO CONFLICT
* ==================== */

$.fn.dropdown.noConflict = function () {
$.fn.dropdown = old
return this
}


/* APPLY TO STANDARD DROPDOWN ELEMENTS
* =================================== */

$(document)
.on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus)
.on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
.on('touchstart.dropdown.data-api', '.dropdown-menu', function (e) { e.stopPropagation() })
.on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
.on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)

Expand Down
Loading

0 comments on commit 5f7014b

Please sign in to comment.