Commit f0d07183 authored by Mark Otto's avatar Mark Otto
Browse files

Merge branch '3.0.0-wip' into bs3_remove_examples

Conflicts:
	docs/_includes/nav-getting-started.html
	docs/examples/navbar-fixed-top.html
	docs/examples/navbar-static-top.html
	docs/examples/navbar.html
	docs/getting-started.html
parents c5fb401a bfebf0e4
4 merge requests!8635ignore Gruntfile.js in jekyll,!8656Added rel="stylesheet" to CDN-Examples,!8527Inner properties move 1,!8511BS3: Move examples to @twbs/bootstrap-examples
Showing with 463 additions and 1563 deletions
+463 -1563
This diff is collapsed.
...@@ -22,7 +22,6 @@ build: ...@@ -22,7 +22,6 @@ build:
@recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP} @recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP}
@echo " ${CHECK}" @echo " ${CHECK}"
@printf "Prepping documentation assets..." @printf "Prepping documentation assets..."
@cp fonts/* docs/assets/fonts/
@cp js/tests/vendor/jquery.js docs/assets/js/ @cp js/tests/vendor/jquery.js docs/assets/js/
@echo " ${CHECK}" @echo " ${CHECK}"
@printf "Compiling and minifying JavaScript..." @printf "Compiling and minifying JavaScript..."
...@@ -61,7 +60,7 @@ clean: ...@@ -61,7 +60,7 @@ clean:
# recess & uglifyjs are required # recess & uglifyjs are required
# #
bootstrap: bootstrap-fonts bootstrap-css bootstrap-js bootstrap: bootstrap-css bootstrap-js
# #
...@@ -88,17 +87,6 @@ bootstrap/css/*.css: less/*.less ...@@ -88,17 +87,6 @@ bootstrap/css/*.css: less/*.less
recess --compile ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.css recess --compile ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.css
recess --compress ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.min.css recess --compress ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.min.css
#
# FONTS
#
bootstrap-fonts: bootstrap/fonts/*
bootstrap/fonts/*: fonts/*
mkdir -p bootstrap/fonts
cp fonts/* bootstrap/fonts/
# #
# WATCH LESS FILES # WATCH LESS FILES
# #
...@@ -114,4 +102,4 @@ watch: ...@@ -114,4 +102,4 @@ watch:
run: build run: build
jekyll build && jekyll server jekyll build && jekyll server
.PHONY: docs watch gh-pages bootstrap-img bootstrap-css bootstrap-js .PHONY: docs watch gh-pages bootstrap-css bootstrap-js
...@@ -40,7 +40,7 @@ Learn more about using Jekyll by reading their [documentation](http://jekyllrb.c ...@@ -40,7 +40,7 @@ Learn more about using Jekyll by reading their [documentation](http://jekyllrb.c
Documentation for v2.3.2 has been made available for the time being at [http://getbootstrap.com/2.3.2/docs](http://getbootstrap.com/2.3.2/docs) while folks transition to Bootstrap 3. Documentation for v2.3.2 has been made available for the time being at [http://getbootstrap.com/2.3.2/docs](http://getbootstrap.com/2.3.2/docs) while folks transition to Bootstrap 3.
For previous releases, documentation is available for [download via Git tags](https://github.com/twitter/bootstrap/tags). [Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download.
......
...@@ -9,4 +9,3 @@ permalink: pretty ...@@ -9,4 +9,3 @@ permalink: pretty
source: ./docs source: ./docs
destination: ./_gh_pages destination: ./_gh_pages
port: 9001 port: 9001
url: http://getbootstrap.dev:9001
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
<p>Designed and built with all the love in the world by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p> <p>Designed and built with all the love in the world by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
<p>Code licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>, documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p> <p>Code licensed under <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>, documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
<p><a href="http://glyphicons.com">Glyphicons Free</a> licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
<ul class="footer-links"> <ul class="footer-links">
<li><a href="http://blog.getbootstrap.com">Blog</a></li> <li><a href="http://blog.getbootstrap.com">Blog</a></li>
<li class="muted">&middot;</li> <li class="muted">&middot;</li>
......
...@@ -4,10 +4,6 @@ ...@@ -4,10 +4,6 @@
<script src="/assets/js/jquery.js"></script> <script src="/assets/js/jquery.js"></script>
<script src="/assets/js/bootstrap.js"></script> <script src="/assets/js/bootstrap.js"></script>
<!-- Offcanvas example
================================================== -->
<script src="/assets/js/examples/bootstrap-offcanvas.js"></script>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script src="/assets/js/holder/holder.js"></script> <script src="/assets/js/holder/holder.js"></script>
......
<li>
<a href="#icons">Glyphicons</a>
<ul class="nav">
<li><a href="#icons-list">Icon list</a></li>
<li><a href="#icons-how-to">How to use</a></li>
<li><a href="#icons-examples">Examples</a></li>
</ul>
</li>
<li> <li>
<a href="#dropdowns">Dropdowns</a> <a href="#dropdowns">Dropdowns</a>
<ul class="nav"> <ul class="nav">
<li><a href="#dropdowns-example">Example</a></li> <li><a href="#dropdowns-example">Example</a></li>
<li><a href="#dropdowns-alignment">Alignment options</a></li> <li><a href="#dropdowns-alignment">Alignment options</a></li>
<li><a href="#dropdowns-disabled">Disabled menu items</a></li> <li><a href="#dropdowns-disabled">Disabled menu items</a></li>
<li><a href="#dropdowns-submenus">Submenus</a></li>
</ul> </ul>
</li> </li>
<li> <li>
...@@ -102,9 +93,7 @@ ...@@ -102,9 +93,7 @@
<a href="#list-group">List group</a> <a href="#list-group">List group</a>
<ul class="nav"> <ul class="nav">
<li><a href="#list-group-basic">Basic list group</a></li> <li><a href="#list-group-basic">Basic list group</a></li>
<li><a href="#list-group-chevrons">Chevrons</a></li>
<li><a href="#list-group-badges">Badges</a></li> <li><a href="#list-group-badges">Badges</a></li>
<li><a href="#list-group-badges-chevrons">Badges and chevrons</a></li>
<li><a href="#list-group-linked">Linked items</a></li> <li><a href="#list-group-linked">Linked items</a></li>
<li><a href="#list-group-custom-content">Custom content</a></li> <li><a href="#list-group-custom-content">Custom content</a></li>
<!-- <li><a href="#list-group-pic">Leading picture</a></li> --> <!-- <li><a href="#list-group-pic">Leading picture</a></li> -->
......
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
<li><a href="#overview-container">Container</a></li> <li><a href="#overview-container">Container</a></li>
</ul> </ul>
</li> </li>
<li>
<a href="#glyphicons">Glyphicons</a>
</li>
<li> <li>
<a href="#grid">Grid system</a> <a href="#grid">Grid system</a>
<ul class="nav"> <ul class="nav">
...@@ -19,7 +22,6 @@ ...@@ -19,7 +22,6 @@
<li><a href="#grid-offsetting">Offset columns</a></li> <li><a href="#grid-offsetting">Offset columns</a></li>
<li><a href="#grid-nesting">Nested columns</a></li> <li><a href="#grid-nesting">Nested columns</a></li>
<li><a href="#grid-column-ordering">Column ordering</a></li> <li><a href="#grid-column-ordering">Column ordering</a></li>
<li><a href="#grid-small">Small device grid</a></li>
<li><a href="#grid-less">LESS mixins and variables</a></li> <li><a href="#grid-less">LESS mixins and variables</a></li>
</ul> </ul>
</li> </li>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<a href="#plugins">jQuery plugins</a> <a href="#plugins">jQuery plugins</a>
</li> </li>
<li> <li>
<a href="#variables">LESS variables</a> <a href="#less-variables">LESS variables</a>
<ul class="nav"> <ul class="nav">
<li><a href="#variables-basics">Basics</a></li> <li><a href="#variables-basics">Basics</a></li>
<li><a href="#variables-buttons">Buttons</a></li> <li><a href="#variables-buttons">Buttons</a></li>
......
...@@ -11,6 +11,12 @@ ...@@ -11,6 +11,12 @@
<li> <li>
<a href="#template">Basic template</a> <a href="#template">Basic template</a>
</li> </li>
<li>
<a href="#browsers">Browser support</a>
</li>
<li>
<a href="#license-faqs">License FAQs</a>
</li>
<li> <li>
<a href="#customizing">Customizing Bootstrap</a> <a href="#customizing">Customizing Bootstrap</a>
</li> </li>
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<a href="#js-overview">Overview</a> <a href="#js-overview">Overview</a>
<ul class="nav"> <ul class="nav">
<li><a href="#js-individual-compiled">Individual or compiled</a></li> <li><a href="#js-individual-compiled">Individual or compiled</a></li>
<li><a href="#js-data-attributes">Data attributes</a></li> <li><a href="#js-data-attrs">Data attributes</a></li>
<li><a href="#js-programmatic-api">Programmatic API</a></li> <li><a href="#js-programmatic-api">Programmatic API</a></li>
<li><a href="#js-noconflict">No Conflict</a></li> <li><a href="#js-noconflict">No Conflict</a></li>
<li><a href="#js-events">Events</a></li> <li><a href="#js-events">Events</a></li>
......
This diff is collapsed.
...@@ -81,7 +81,9 @@ body { ...@@ -81,7 +81,9 @@ body {
/* Textual links */ /* Textual links */
.bs-masthead-links { .bs-masthead-links {
margin: 20px 0; margin-top: 20px;
margin-bottom: 20px;
padding-left: 0;
list-style: none; list-style: none;
} }
.bs-masthead-links li { .bs-masthead-links li {
...@@ -93,7 +95,6 @@ body { ...@@ -93,7 +95,6 @@ body {
} }
/* Customize and Download button /* Customize and Download button
-------------------------------------------------- */ -------------------------------------------------- */
...@@ -221,11 +222,10 @@ body { ...@@ -221,11 +222,10 @@ body {
/* Side notes for calling out things /* Side notes for calling out things
-------------------------------------------------- */ -------------------------------------------------- */
/* Base styles (regardless of theme) */
.bs-callout { .bs-callout {
margin: 20px 0; margin: 20px 0;
padding: 15px 30px 15px 15px; padding: 15px 30px 15px 15px;
background-color: #fcf2f2;
border-left: 5px solid #df7c7b;
} }
.bs-callout h4 { .bs-callout h4 {
margin-top: 0; margin-top: 0;
...@@ -238,6 +238,20 @@ body { ...@@ -238,6 +238,20 @@ body {
background-color: #fff; background-color: #fff;
} }
/* Themes for different contexts */
.bs-callout-danger {
background-color: #fcf2f2;
border-left: 5px solid #df7c7b;
}
.bs-callout-warning {
background-color: #fefbed;
border-left: 5px solid #f5d659;
}
.bs-callout-info {
background-color: #f0f7fd;
border-left: 5px solid #55a9e1;
}
/* Special grid styles /* Special grid styles
...@@ -311,7 +325,7 @@ body { ...@@ -311,7 +325,7 @@ body {
.bs-example > .well:last-child { .bs-example > .well:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
.bs-example > .close { .bs-example > p > .close {
float: none; float: none;
} }
...@@ -478,43 +492,6 @@ body { ...@@ -478,43 +492,6 @@ body {
/* Icons
-------------------------------------------------- */
.the-icons {
padding-bottom: 1px;
margin-left: 0;
list-style: none;
margin-bottom: 20px;
overflow: hidden;
}
.the-icons li {
float: left;
width: 100px;
height: 110px;
padding: 10px;
border: 1px solid #ddd;
font-size: 12px;
line-height: 1.25;
text-align: center;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 0 -1px -1px 0;
}
.the-icons .glyphicon {
display: block;
margin: 5px auto;
vertical-align: middle;
margin-right: 3px;
font-size: 24px;
}
.the-icons li:hover {
background-color: rgba(255,0,0,.1);
}
/* Responsive docs /* Responsive docs
-------------------------------------------------- */ -------------------------------------------------- */
...@@ -601,6 +578,7 @@ body { ...@@ -601,6 +578,7 @@ body {
} }
.footer-links { .footer-links {
margin: 10px 0; margin: 10px 0;
padding-left: 0;
} }
.footer-links li { .footer-links li {
display: inline; display: inline;
...@@ -616,7 +594,8 @@ body { ...@@ -616,7 +594,8 @@ body {
} }
.bs-social-buttons { .bs-social-buttons {
display: inline-block; display: inline-block;
margin: 0; margin-bottom: 0;
padding-left: 0;
list-style: none; list-style: none;
} }
.bs-social-buttons li { .bs-social-buttons li {
...@@ -711,13 +690,6 @@ input.focused { ...@@ -711,13 +690,6 @@ input.focused {
/* Tablets and up */ /* Tablets and up */
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
/* Reaffix the fixed sidebar */
.bs-sidebar.affix {
position: fixed; /* Undo the static from mobile-first approach */
top: 50px;
width: 160px;
}
/* Back to top link */ /* Back to top link */
.bs-top { .bs-top {
display: block; /* Unhide */ display: block; /* Unhide */
...@@ -779,6 +751,8 @@ input.focused { ...@@ -779,6 +751,8 @@ input.focused {
/* Widen the fixed sidebar */ /* Widen the fixed sidebar */
.bs-sidebar.affix { .bs-sidebar.affix {
position: fixed; /* Undo the static from mobile-first approach */
top: 50px;
width: 213px; width: 213px;
} }
......
File deleted
File deleted
This diff is collapsed.
File deleted
File deleted
...@@ -92,7 +92,6 @@ ...@@ -92,7 +92,6 @@
.map(function () { return this.value }) .map(function () { return this.value })
.toArray() .toArray()
, vars = {} , vars = {}
, img = ['glyphicons-halflings.png', 'glyphicons-halflings-white.png']
$("#less-variables input") $("#less-variables input")
.each(function () { .each(function () {
...@@ -107,7 +106,6 @@ ...@@ -107,7 +106,6 @@
js: js js: js
, css: css , css: css
, vars: vars , vars: vars
, img: img
} }
}) })
}) })
......
...@@ -502,6 +502,10 @@ ...@@ -502,6 +502,10 @@
Collapse.prototype.show = function () { Collapse.prototype.show = function () {
if (this.transitioning || this.$element.hasClass('in')) return if (this.transitioning || this.$element.hasClass('in')) return
var startEvent = $.Event('show.bs.collapse')
this.$element.trigger(startEvent)
if (startEvent.isDefaultPrevented()) return
var dimension = this.dimension() var dimension = this.dimension()
var scroll = $.camelCase(['scroll', dimension].join('-')) var scroll = $.camelCase(['scroll', dimension].join('-'))
var actives = this.$parent && this.$parent.find('> .accordion-group > .in') var actives = this.$parent && this.$parent.find('> .accordion-group > .in')
...@@ -514,16 +518,21 @@ ...@@ -514,16 +518,21 @@
} }
this.$element[dimension](0) this.$element[dimension](0)
this.transition('addClass', $.Event('show.bs.collapse'), 'shown.bs.collapse') this.transition('addClass', 'shown.bs.collapse')
if ($.support.transition) this.$element[dimension](this.$element[0][scroll]) if ($.support.transition) this.$element[dimension](this.$element[0][scroll])
} }
Collapse.prototype.hide = function () { Collapse.prototype.hide = function () {
if (this.transitioning || !this.$element.hasClass('in')) return if (this.transitioning || !this.$element.hasClass('in')) return
var startEvent = $.Event('hide.bs.collapse')
this.$element.trigger(startEvent)
if (startEvent.isDefaultPrevented()) return
var dimension = this.dimension() var dimension = this.dimension()
this.reset(this.$element[dimension]()) this.reset(this.$element[dimension]())
this.transition('removeClass', $.Event('hide.bs.collapse'), 'hidden') this.transition('removeClass', 'shown.bs.hidden')
this.$element[dimension](0) this.$element[dimension](0)
} }
...@@ -535,23 +544,19 @@ ...@@ -535,23 +544,19 @@
[dimension](size || 'auto') [dimension](size || 'auto')
[0].offsetWidth [0].offsetWidth
this.$element[size !== null ? 'addClass' : 'removeClass']('collapse') this.$element[size != null ? 'addClass' : 'removeClass']('collapse')
return this return this
} }
Collapse.prototype.transition = function (method, startEvent, completeEvent) { Collapse.prototype.transition = function (method, completeEvent) {
var that = this var that = this
var complete = function () { var complete = function () {
if (startEvent.type == 'show') that.reset() if (completeEvent == 'shown.bs.collapse') that.reset()
that.transitioning = 0 that.transitioning = 0
that.$element.trigger(completeEvent) that.$element.trigger(completeEvent)
} }
this.$element.trigger(startEvent)
if (startEvent.isDefaultPrevented()) return
this.transitioning = 1 this.transitioning = 1
this.$element[method]('in') this.$element[method]('in')
...@@ -603,7 +608,10 @@ ...@@ -603,7 +608,10 @@
|| e.preventDefault() || e.preventDefault()
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7 || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
var option = $(target).data('collapse') ? 'toggle' : $this.data() var option = $(target).data('collapse') ? 'toggle' : $this.data()
var parent = $this.attr('data-parent')
var $parent = parent && $(parent)
if ($parent) $parent.find('[data-toggle=collapse][data-parent=' + parent + ']').not($this).addClass('collapsed')
$this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed') $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
$(target).collapse(option) $(target).collapse(option)
}) })
...@@ -1420,6 +1428,8 @@ ...@@ -1420,6 +1428,8 @@
$tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content) $tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content)
$tip.removeClass('fade top bottom left right in') $tip.removeClass('fade top bottom left right in')
$tip.find('.popover-title:empty').hide()
} }
Popover.prototype.hasContent = function () { Popover.prototype.hasContent = function () {
......
Supports Markdown
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