mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
Merge branch '3.0.0-wip' of github.com:twbs/bootstrap into 3.0.0-wip
This commit is contained in:
commit
d08d9a63c3
@ -10,7 +10,7 @@ To get started, check out [http://getbootstrap.com](http://getbootstrap.com)!
|
|||||||
|
|
||||||
Three quick start options are available:
|
Three quick start options are available:
|
||||||
|
|
||||||
* [Download the latest release](https://github.com/twbs/bootstrap/zipball/master).
|
* [Download the latest release](https://github.com/twbs/bootstrap/zipball/3.0.0-wip).
|
||||||
* Clone the repo: `git clone git://github.com/twbs/bootstrap.git`.
|
* Clone the repo: `git clone git://github.com/twbs/bootstrap.git`.
|
||||||
* Install with [Bower](http://bower.io): `bower install bootstrap`.
|
* Install with [Bower](http://bower.io): `bower install bootstrap`.
|
||||||
|
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="/assets/js/html5shiv.js"></script>
|
<script src="{{ page.base_url }}assets/js/html5shiv.js"></script>
|
||||||
<script src="/assets/js/respond.min.js"></script>
|
<script src="{{ page.base_url }}assets/js/respond.min.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
<!-- Favicons -->
|
<!-- Favicons -->
|
||||||
|
@ -7,10 +7,11 @@
|
|||||||
$(function(){
|
$(function(){
|
||||||
|
|
||||||
var $window = $(window)
|
var $window = $(window)
|
||||||
|
var $body = $(document.body)
|
||||||
|
|
||||||
var navHeight = $('.navbar').outerHeight(true) + 10
|
var navHeight = $('.navbar').outerHeight(true) + 10
|
||||||
|
|
||||||
$(document.body).scrollspy({
|
$body.scrollspy({
|
||||||
target: '.bs-sidebar',
|
target: '.bs-sidebar',
|
||||||
offset: navHeight
|
offset: navHeight
|
||||||
})
|
})
|
||||||
@ -19,14 +20,12 @@
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
})
|
})
|
||||||
|
|
||||||
$(document.body).on('click', '.bs-sidenav [href^=#]', function (e) {
|
$body.on('click', '.bs-sidenav [href^=#]', function (e) {
|
||||||
var $target = $(this.getAttribute('href'))
|
var $target = $(this.getAttribute('href'))
|
||||||
|
|
||||||
// e.preventDefault() // prevent browser scroll
|
e.preventDefault() // prevent browser scroll
|
||||||
|
|
||||||
document.body.scrollTop =
|
$window.scrollTop($target.offset().top - navHeight + 5)
|
||||||
$target.offset().top -
|
|
||||||
navHeight + 5 // offset scroll by nav
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// back to top
|
// back to top
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "bootstrap",
|
"name": "bootstrap",
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"main": ["./docs/assets/js/bootstrap.js", "./docs/assets/css/bootstrap.css"],
|
"main": ["./dist/js/bootstrap.min.js", "./dist/js/bootstrap.js", "./dist/css/bootstrap.min.css", "./dist/css/bootstrap.css"],
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"**/.*"
|
"**/.*"
|
||||||
],
|
],
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "twitter/bootstrap"
|
"name": "twbs/bootstrap"
|
||||||
, "description": "Sleek, intuitive, and powerful front-end framework for faster and easier web development."
|
, "description": "Sleek, intuitive, and powerful front-end framework for faster and easier web development."
|
||||||
, "keywords": ["bootstrap", "css"]
|
, "keywords": ["bootstrap", "css"]
|
||||||
, "homepage": "http://getbootstrap.com"
|
, "homepage": "http://getbootstrap.com"
|
||||||
|
14
css.html
14
css.html
@ -206,7 +206,7 @@ base_url: "../"
|
|||||||
<div class="col-lg-1">1</div>
|
<div class="col-lg-1">1</div>
|
||||||
<div class="col-lg-1">1</div>
|
<div class="col-lg-1">1</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row show-grid">
|
<div class="row">
|
||||||
<div class="col-lg-8">8</div>
|
<div class="col-lg-8">8</div>
|
||||||
<div class="col-lg-4">4</div>
|
<div class="col-lg-4">4</div>
|
||||||
</div>
|
</div>
|
||||||
@ -362,7 +362,7 @@ base_url: "../"
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<div class="row show-grid">
|
<div class="row">
|
||||||
<div class="col-lg-9 col-push-3">9</div>
|
<div class="col-lg-9 col-push-3">9</div>
|
||||||
<div class="col-lg-3 col-pull-9">3</div>
|
<div class="col-lg-3 col-pull-9">3</div>
|
||||||
</div>
|
</div>
|
||||||
@ -1425,7 +1425,7 @@ For example, <code><section></code> should be wrapped as inline.
|
|||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<h3>Selects</h3>
|
<h3>Selects</h3>
|
||||||
<p>Use the default option or specify a <code>multiple="multiple"</code> to show multiple options at once.</p>
|
<p>Use the default option, or add <code>multiple</code> to show multiple options at once.</p>
|
||||||
<form class="bs-example">
|
<form class="bs-example">
|
||||||
<select class="form-control">
|
<select class="form-control">
|
||||||
<option>1</option>
|
<option>1</option>
|
||||||
@ -1435,7 +1435,7 @@ For example, <code><section></code> should be wrapped as inline.
|
|||||||
<option>5</option>
|
<option>5</option>
|
||||||
</select>
|
</select>
|
||||||
<br>
|
<br>
|
||||||
<select multiple="multiple" class="form-control">
|
<select multiple class="form-control">
|
||||||
<option>1</option>
|
<option>1</option>
|
||||||
<option>2</option>
|
<option>2</option>
|
||||||
<option>3</option>
|
<option>3</option>
|
||||||
@ -1452,7 +1452,7 @@ For example, <code><section></code> should be wrapped as inline.
|
|||||||
<option>5</option>
|
<option>5</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select multiple="multiple" class="form-control">
|
<select multiple class="form-control">
|
||||||
<option>1</option>
|
<option>1</option>
|
||||||
<option>2</option>
|
<option>2</option>
|
||||||
<option>3</option>
|
<option>3</option>
|
||||||
@ -1562,9 +1562,9 @@ For example, <code><section></code> should be wrapped as inline.
|
|||||||
|
|
||||||
|
|
||||||
<h2 id="forms-control-sizes">Control sizing</h2>
|
<h2 id="forms-control-sizes">Control sizing</h2>
|
||||||
<p>Use relative sizing classes like <code>.input-large</code> or match your inputs to the grid column sizes using <code>.col-lg-*</code> classes.</p>
|
<p>Set heights using classes like <code>.input-large</code>, and set widths using grid column classes like <code>.col-lg-*</code>.</p>
|
||||||
|
|
||||||
<h3>Relative sizing</h3>
|
<h3>Height sizing</h3>
|
||||||
<p>Create larger or smaller form controls that match button sizes.</p>
|
<p>Create larger or smaller form controls that match button sizes.</p>
|
||||||
<form class="bs-example bs-example-control-sizing">
|
<form class="bs-example bs-example-control-sizing">
|
||||||
<div class="controls docs-input-sizes">
|
<div class="controls docs-input-sizes">
|
||||||
|
5
dist/css/bootstrap.css
vendored
5
dist/css/bootstrap.css
vendored
@ -1554,6 +1554,11 @@ select.input-small {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
-o-user-select: none;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:focus {
|
.btn:focus {
|
||||||
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
4
dist/js/bootstrap.js
vendored
4
dist/js/bootstrap.js
vendored
@ -50,8 +50,8 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
|
|||||||
// http://blog.alexmaccaw.com/css-transitions
|
// http://blog.alexmaccaw.com/css-transitions
|
||||||
$.fn.emulateTransitionEnd = function (duration) {
|
$.fn.emulateTransitionEnd = function (duration) {
|
||||||
var called = false, $el = this
|
var called = false, $el = this
|
||||||
$(this).one('webkitTransitionEnd', function () { called = true })
|
$(this).one($.support.transition.end, function () { called = true })
|
||||||
var callback = function () { if (!called) $($el).trigger('webkitTransitionEnd') }
|
var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
|
||||||
setTimeout(callback, duration)
|
setTimeout(callback, duration)
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
2
dist/js/bootstrap.min.js
vendored
2
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
@ -963,17 +963,17 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
|
|||||||
<h4>Four directions</h4>
|
<h4>Four directions</h4>
|
||||||
<div class="bs-example tooltip-demo">
|
<div class="bs-example tooltip-demo">
|
||||||
<div class="bs-example-tooltips">
|
<div class="bs-example-tooltips">
|
||||||
|
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
||||||
|
Popover on left
|
||||||
|
</button>
|
||||||
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
||||||
Popover on top
|
Popover on top
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
|
||||||
Popover on right
|
|
||||||
</button>
|
|
||||||
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="bottom" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="bottom" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
||||||
Popover on bottom
|
Popover on bottom
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
|
||||||
Popover on left
|
Popover on right
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /example -->
|
</div><!-- /example -->
|
||||||
@ -1218,7 +1218,7 @@ $('#my-alert').bind('closed.bs.alert', function () {
|
|||||||
</button>
|
</button>
|
||||||
</div><!-- /example -->
|
</div><!-- /example -->
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<button type="button" id="fat-btn" data-loading-text="Loading..." class="btn btn-primary">
|
<button type="button" data-loading-text="Loading..." class="btn btn-primary">
|
||||||
Loading state
|
Loading state
|
||||||
</button>
|
</button>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
@ -43,8 +43,8 @@
|
|||||||
// http://blog.alexmaccaw.com/css-transitions
|
// http://blog.alexmaccaw.com/css-transitions
|
||||||
$.fn.emulateTransitionEnd = function (duration) {
|
$.fn.emulateTransitionEnd = function (duration) {
|
||||||
var called = false, $el = this
|
var called = false, $el = this
|
||||||
$(this).one('webkitTransitionEnd', function () { called = true })
|
$(this).one($.support.transition.end, function () { called = true })
|
||||||
var callback = function () { if (!called) $($el).trigger('webkitTransitionEnd') }
|
var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
|
||||||
setTimeout(callback, duration)
|
setTimeout(callback, duration)
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
.user-select(none);
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
.tab-focus();
|
.tab-focus();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user