Commit 4045740c authored by Mark Otto's avatar Mark Otto

Merge branch 'master' of github.com:twbs/bootstrap

Conflicts:
	dist/css/bootstrap.css.map
	dist/css/bootstrap.min.css
	docs/dist/css/bootstrap.css.map
	docs/dist/css/bootstrap.min.css
parents e40df7cf 4abb0957
...@@ -33,7 +33,7 @@ module.exports = function (grunt) { ...@@ -33,7 +33,7 @@ module.exports = function (grunt) {
' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' + ' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' +
' */\n', ' */\n',
// NOTE: This jqueryCheck code is duplicated in customizer.js; if making changes here, be sure to update the other copy too. // NOTE: This jqueryCheck code is duplicated in customizer.js; if making changes here, be sure to update the other copy too.
jqueryCheck: 'if (typeof define == \'undefined\' && typeof exports == \'undefined\' && typeof jQuery == \'undefined\') { throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery\') }\n\n', jqueryCheck: 'if (typeof jQuery === \'undefined\') { throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery\') }\n\n',
// Task configuration. // Task configuration.
clean: { clean: {
...@@ -232,7 +232,8 @@ module.exports = function (grunt) { ...@@ -232,7 +232,8 @@ module.exports = function (grunt) {
cssmin: { cssmin: {
options: { options: {
compatibility: 'ie8', compatibility: 'ie8',
keepSpecialComments: '*' keepSpecialComments: '*',
noAdvanced: true
}, },
core: { core: {
files: { files: {
...@@ -378,6 +379,7 @@ module.exports = function (grunt) { ...@@ -378,6 +379,7 @@ module.exports = function (grunt) {
options: { options: {
build: process.env.TRAVIS_JOB_ID, build: process.env.TRAVIS_JOB_ID,
concurrency: 10, concurrency: 10,
maxRetries: 3,
urls: ['http://127.0.0.1:3000/js/tests/index.html'], urls: ['http://127.0.0.1:3000/js/tests/index.html'],
browsers: grunt.file.readYAML('grunt/sauce_browsers.yml') browsers: grunt.file.readYAML('grunt/sauce_browsers.yml')
} }
......
This diff is collapsed.
This diff was suppressed by a .gitattributes entry.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
...@@ -347,10 +347,10 @@ ...@@ -347,10 +347,10 @@
<h3 id="grid-nesting">Nesting columns</h3> <h3 id="grid-nesting">Nesting columns</h3>
<p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.col-md-*</code> columns within an existing <code>.col-md-*</code> column. Nested rows should include a set of columns that add up to 12 or less (it is not required that you use all 12 available columns).</p> <p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.col-sm-*</code> columns within an existing <code>.col-sm-*</code> column. Nested rows should include a set of columns that add up to 12 or less (it is not required that you use all 12 available columns).</p>
<div class="row show-grid"> <div class="row show-grid">
<div class="col-sm-9"> <div class="col-sm-9">
Level 1: .col-md-9 Level 1: .col-sm-9
<div class="row show-grid"> <div class="row show-grid">
<div class="col-xs-8 col-sm-6"> <div class="col-xs-8 col-sm-6">
Level 2: .col-xs-8 .col-sm-6 Level 2: .col-xs-8 .col-sm-6
......
<div class="bs-docs-section"> <div class="bs-docs-section">
<h1 id="examples" class="page-header">Examples</h1> <h1 id="examples" class="page-header">Examples</h1>
<p class="lead">Build on the basic template above with Bootstrap's many components. See also <a href="#customizing">Customizing Bootstrap</a> for tips on maintaining your own Bootstrap variants.</p> <p class="lead">Build on the basic template above with Bootstrap's many components. We encourage you to customize and adapt Bootstrap to suit your individual project's needs.</p>
<h3 id="examples-framework">Using the framework</h3> <h3 id="examples-framework">Using the framework</h3>
<div class="row bs-examples"> <div class="row bs-examples">
......
This diff is collapsed.
...@@ -306,7 +306,7 @@ window.onload = function () { // wait for load in a dumb way because B-0 ...@@ -306,7 +306,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
function generateJS(preamble) { function generateJS(preamble) {
var $checked = $('#plugin-section input:checked') var $checked = $('#plugin-section input:checked')
var jqueryCheck = 'if (typeof define == \'undefined\' && typeof exports == \'undefined\' && typeof jQuery == \'undefined\') { throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery\') }\n\n' var jqueryCheck = 'if (typeof jQuery === "undefined") { throw new Error("Bootstrap\'s JavaScript requires jQuery") }\n\n'
if (!$checked.length) return false if (!$checked.length) return false
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff was suppressed by a .gitattributes entry.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
browserName: "safari", browserName: "safari",
platform: "OS X 10.9" platform: "OS X 10.9"
}, },
# { {
# browserName: "chrome", browserName: "chrome",
# platform: "OS X 10.9", platform: "OS X 10.9"
# version: "31" },
# },
{ {
browserName: "firefox", browserName: "firefox",
platform: "OS X 10.9" platform: "OS X 10.9"
...@@ -27,16 +26,16 @@ ...@@ -27,16 +26,16 @@
version: "10", version: "10",
platform: "Windows 8" platform: "Windows 8"
}, },
# { {
# browserName: "internet explorer", browserName: "internet explorer",
# version: "9", version: "9",
# platform: "Windows 7" platform: "Windows 7"
# }, },
# { {
# browserName: "internet explorer", browserName: "internet explorer",
# version: "8", version: "8",
# platform: "Windows 7" platform: "Windows 7"
# }, },
# { # Unofficial # { # Unofficial
# browserName: "internet explorer", # browserName: "internet explorer",
......
...@@ -11,9 +11,10 @@ ...@@ -11,9 +11,10 @@
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true }, "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
"disallowSpacesInsideArrayBrackets": true, "disallowSpacesInsideArrayBrackets": true,
"disallowTrailingComma": true,
"disallowSpacesInsideParentheses": true, "disallowSpacesInsideParentheses": true,
"disallowTrailingComma": true,
"disallowTrailingWhitespace": true, "disallowTrailingWhitespace": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedConstructors": true, "requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true, "requireCommaBeforeLineBreak": true,
"requireDotNotation": true, "requireDotNotation": true,
......
...@@ -11,6 +11,5 @@ ...@@ -11,6 +11,5 @@
"nonbsp" : true, "nonbsp" : true,
"strict" : true, "strict" : true,
"undef" : true, "undef" : true,
"unused" : true, "unused" : true
"predef" : [ "define", "require" ]
} }
...@@ -7,12 +7,8 @@ ...@@ -7,12 +7,8 @@
* ======================================================================== */ * ======================================================================== */
+function () { 'use strict'; +function ($) {
'use strict';
(function (o_o) {
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
})(function ($) {
// AFFIX CLASS DEFINITION // AFFIX CLASS DEFINITION
// ====================== // ======================
...@@ -143,6 +139,4 @@ ...@@ -143,6 +139,4 @@
}) })
}) })
}) }(jQuery);
}();
...@@ -7,12 +7,8 @@ ...@@ -7,12 +7,8 @@
* ======================================================================== */ * ======================================================================== */
+function () { 'use strict'; +function ($) {
'use strict';
(function (o_o) {
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
})(function ($) {
// ALERT CLASS DEFINITION // ALERT CLASS DEFINITION
// ====================== // ======================
...@@ -93,6 +89,4 @@ ...@@ -93,6 +89,4 @@
$(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
}) }(jQuery);
}();
...@@ -7,12 +7,8 @@ ...@@ -7,12 +7,8 @@
* ======================================================================== */ * ======================================================================== */
+function () { 'use strict'; +function ($) {
'use strict';
(function (o_o) {
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
})(function ($) {
// BUTTON PUBLIC CLASS DEFINITION // BUTTON PUBLIC CLASS DEFINITION
// ============================== // ==============================
...@@ -111,6 +107,4 @@ ...@@ -111,6 +107,4 @@
e.preventDefault() e.preventDefault()
}) })
}) }(jQuery);
}();
...@@ -7,12 +7,8 @@ ...@@ -7,12 +7,8 @@
* ======================================================================== */ * ======================================================================== */
+function () { 'use strict'; +function ($) {
'use strict';
(function (o_o) {
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
})(function ($) {
// CAROUSEL CLASS DEFINITION // CAROUSEL CLASS DEFINITION
// ========================= // =========================
...@@ -203,6 +199,7 @@ ...@@ -203,6 +199,7 @@
var href var href
var $this = $(this) var $this = $(this)
var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7 var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
if (!$target.hasClass('carousel')) return
var options = $.extend({}, $target.data(), $this.data()) var options = $.extend({}, $target.data(), $this.data())
var slideIndex = $this.attr('data-slide-to') var slideIndex = $this.attr('data-slide-to')
if (slideIndex) options.interval = false if (slideIndex) options.interval = false
...@@ -223,6 +220,4 @@ ...@@ -223,6 +220,4 @@
}) })
}) })
}) }(jQuery);
}();
...@@ -7,12 +7,8 @@ ...@@ -7,12 +7,8 @@
* ======================================================================== */ * ======================================================================== */
+function () { 'use strict'; +function ($) {
'use strict';
(function (o_o) {
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
})(function ($) {
// COLLAPSE PUBLIC CLASS DEFINITION // COLLAPSE PUBLIC CLASS DEFINITION
// ================================ // ================================
...@@ -171,6 +167,4 @@ ...@@ -171,6 +167,4 @@
Plugin.call($target, option) Plugin.call($target, option)
}) })
}) }(jQuery);
}();
...@@ -7,12 +7,8 @@ ...@@ -7,12 +7,8 @@
* ======================================================================== */ * ======================================================================== */
+function () { 'use strict'; +function ($) {
'use strict';
(function (o_o) {
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
})(function ($) {
// DROPDOWN CLASS DEFINITION // DROPDOWN CLASS DEFINITION
// ========================= // =========================
...@@ -152,6 +148,4 @@ ...@@ -152,6 +148,4 @@
.on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle) .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
.on('keydown.bs.dropdown.data-api', toggle + ', [role="menu"], [role="listbox"]', Dropdown.prototype.keydown) .on('keydown.bs.dropdown.data-api', toggle + ', [role="menu"], [role="listbox"]', Dropdown.prototype.keydown)
}) }(jQuery);
}();
...@@ -7,12 +7,8 @@ ...@@ -7,12 +7,8 @@
* ======================================================================== */ * ======================================================================== */
+function () { 'use strict'; +function ($) {
'use strict';
(function (o_o) {
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
})(function ($) {
// MODAL CLASS DEFINITION // MODAL CLASS DEFINITION
// ====================== // ======================
...@@ -281,6 +277,4 @@ ...@@ -281,6 +277,4 @@
Plugin.call($target, option, this) Plugin.call($target, option, this)
}) })
}) }(jQuery);
}();
...@@ -7,12 +7,8 @@ ...@@ -7,12 +7,8 @@
* ======================================================================== */ * ======================================================================== */
+function () { 'use strict'; +function ($) {
'use strict';
(function (o_o) {
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
})(function ($) {
// POPOVER PUBLIC CLASS DEFINITION // POPOVER PUBLIC CLASS DEFINITION
// =============================== // ===============================
...@@ -114,6 +110,4 @@ ...@@ -114,6 +110,4 @@
return this return this
} }
}) }(jQuery);
}();
...@@ -7,12 +7,8 @@ ...@@ -7,12 +7,8 @@
* ======================================================================== */ * ======================================================================== */
+function () { 'use strict'; +function ($) {
'use strict';
(function (o_o) {
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
})(function ($) {
// SCROLLSPY CLASS DEFINITION // SCROLLSPY CLASS DEFINITION
// ========================== // ==========================
...@@ -171,6 +167,4 @@ ...@@ -171,6 +167,4 @@
}) })
}) })
}) }(jQuery);
}();
...@@ -7,12 +7,8 @@ ...@@ -7,12 +7,8 @@
* ======================================================================== */ * ======================================================================== */
+function () { 'use strict'; +function ($) {
'use strict';
(function (o_o) {
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
})(function ($) {
// TAB CLASS DEFINITION // TAB CLASS DEFINITION
// ==================== // ====================
...@@ -129,6 +125,4 @@ ...@@ -129,6 +125,4 @@
Plugin.call($(this), 'show') Plugin.call($(this), 'show')
}) })
}) }(jQuery);
}();
...@@ -8,12 +8,8 @@ ...@@ -8,12 +8,8 @@
* ======================================================================== */ * ======================================================================== */
+function () { 'use strict'; +function ($) {
'use strict';
(function (o_o) {
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
})(function ($) {
// TOOLTIP PUBLIC CLASS DEFINITION // TOOLTIP PUBLIC CLASS DEFINITION
// =============================== // ===============================
...@@ -458,6 +454,4 @@ ...@@ -458,6 +454,4 @@
return this return this
} }
}) }(jQuery);
}();
...@@ -7,12 +7,8 @@ ...@@ -7,12 +7,8 @@
* ======================================================================== */ * ======================================================================== */
+function () { 'use strict'; +function ($) {
'use strict';
(function (o_o) {
typeof define == 'function' && define.amd ? define(['jquery'], o_o) :
typeof exports == 'object' ? o_o(require('jquery')) : o_o(jQuery)
})(function ($) {
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
// ============================================================ // ============================================================
...@@ -60,6 +56,4 @@ ...@@ -60,6 +56,4 @@
} }
}) })
}) }(jQuery);
}();
...@@ -6,6 +6,13 @@ ...@@ -6,6 +6,13 @@
// Bar animations // Bar animations
// ------------------------- // -------------------------
// WebKit
@-webkit-keyframes progress-bar-stripes {
from { background-position: 40px 0; }
to { background-position: 0 0; }
}
// Spec and IE10+
@keyframes progress-bar-stripes { @keyframes progress-bar-stripes {
from { background-position: 40px 0; } from { background-position: 40px 0; }
to { background-position: 0 0; } to { background-position: 0 0; }
......
...@@ -74,10 +74,10 @@ p { ...@@ -74,10 +74,10 @@ p {
// Emphasis & misc // Emphasis & misc
// ------------------------- // -------------------------
// Ex: 14px base font * 85% = about 12px // Ex: (12px small font / 14px base font) * 100% = about 85%
small, small,
.small { .small {
font-size: 85%; font-size: floor((100% * @font-size-small / @font-size-base));
} }
// Undo browser default styling // Undo browser default styling
......
...@@ -822,6 +822,8 @@ ...@@ -822,6 +822,8 @@
// //
//## //##
//** Horizontal offset for forms and lists.
@component-offset-horizontal: 180px;
//** Text muted color //** Text muted color
@text-muted: @gray-light; @text-muted: @gray-light;
//** Abbreviations and acronyms border color //** Abbreviations and acronyms border color
...@@ -838,14 +840,7 @@ ...@@ -838,14 +840,7 @@
@page-header-border-color: @gray-lighter; @page-header-border-color: @gray-lighter;
//** Width of horizontal description list titles //** Width of horizontal description list titles
@dl-horizontal-offset: @component-offset-horizontal; @dl-horizontal-offset: @component-offset-horizontal;
//== Miscellaneous
//
//##
//** Horizontal line color. //** Horizontal line color.
@hr-border: @gray-lighter; @hr-border: @gray-lighter;
//** Horizontal offset for forms and lists.
@component-offset-horizontal: 180px;
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment