mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-28 22:39:11 +02:00
Merge branch '2.2.3' into 3.0.0-wip
Conflicts: Makefile README.md component.json docs/assets/css/bootstrap-responsive.css docs/assets/css/bootstrap.css docs/assets/js/bootstrap-affix.js docs/assets/js/bootstrap-alert.js docs/assets/js/bootstrap-button.js docs/assets/js/bootstrap-carousel.js docs/assets/js/bootstrap-collapse.js docs/assets/js/bootstrap-dropdown.js docs/assets/js/bootstrap-modal.js docs/assets/js/bootstrap-popover.js docs/assets/js/bootstrap-scrollspy.js docs/assets/js/bootstrap-tab.js docs/assets/js/bootstrap-tooltip.js docs/assets/js/bootstrap-transition.js docs/assets/js/bootstrap-typeahead.js docs/assets/js/bootstrap.js docs/assets/js/bootstrap.min.js docs/index.html docs/templates/pages/base-css.mustache docs/templates/pages/index.mustache docs/templates/pages/javascript.mustache js/bootstrap-affix.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-tooltip.js js/bootstrap-transition.js js/bootstrap-typeahead.js less/bootstrap.less less/responsive.less less/type.less package.json
This commit is contained in:
16
Makefile
16
Makefile
@@ -16,7 +16,7 @@ build:
|
|||||||
@jshint js/*.js --config js/.jshintrc
|
@jshint js/*.js --config js/.jshintrc
|
||||||
@jshint js/tests/unit/*.js --config js/.jshintrc
|
@jshint js/tests/unit/*.js --config js/.jshintrc
|
||||||
@echo "Running JSHint on javascript... ${CHECK} Done"
|
@echo "Running JSHint on javascript... ${CHECK} Done"
|
||||||
@recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP}
|
@./node_modules/.bin/recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP}
|
||||||
@echo "Compiling LESS with Recess... ${CHECK} Done"
|
@echo "Compiling LESS with Recess... ${CHECK} Done"
|
||||||
@node docs/build
|
@node docs/build
|
||||||
@cp fonts/* docs/assets/fonts/
|
@cp fonts/* docs/assets/fonts/
|
||||||
@@ -24,8 +24,8 @@ build:
|
|||||||
@cp js/tests/vendor/jquery.js docs/assets/js/
|
@cp js/tests/vendor/jquery.js docs/assets/js/
|
||||||
@echo "Compiling documentation... ${CHECK} Done"
|
@echo "Compiling documentation... ${CHECK} Done"
|
||||||
@cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js js/bootstrap-affix.js > docs/assets/js/bootstrap.js
|
@cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js js/bootstrap-affix.js > docs/assets/js/bootstrap.js
|
||||||
@uglifyjs docs/assets/js/bootstrap.js -nc > docs/assets/js/bootstrap.min.tmp.js
|
@./node_modules/.bin/uglifyjs -nc docs/assets/js/bootstrap.js > docs/assets/js/bootstrap.min.tmp.js
|
||||||
@echo "/**\n* Bootstrap.js v3.0.0 by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > docs/assets/js/copyright.js
|
@echo "/**\n* Bootstrap.js v2.2.3 by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > docs/assets/js/copyright.js
|
||||||
@cat docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js > docs/assets/js/bootstrap.min.js
|
@cat docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js > docs/assets/js/bootstrap.min.js
|
||||||
@rm docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js
|
@rm docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js
|
||||||
@echo "Compiling and minifying javascript... ${CHECK} Done"
|
@echo "Compiling and minifying javascript... ${CHECK} Done"
|
||||||
@@ -40,8 +40,8 @@ build:
|
|||||||
#
|
#
|
||||||
|
|
||||||
test:
|
test:
|
||||||
jshint js/*.js --config js/.jshintrc
|
./node_modules/.bin/jshint js/*.js --config js/.jshintrc
|
||||||
jshint js/tests/unit/*.js --config js/.jshintrc
|
./node_modules/.bin/jshint js/tests/unit/*.js --config js/.jshintrc
|
||||||
node js/tests/server.js &
|
node js/tests/server.js &
|
||||||
phantomjs js/tests/phantom.js "http://localhost:3000/js/tests"
|
phantomjs js/tests/phantom.js "http://localhost:3000/js/tests"
|
||||||
kill -9 `cat js/tests/pid.txt`
|
kill -9 `cat js/tests/pid.txt`
|
||||||
@@ -64,10 +64,10 @@ bootstrap:
|
|||||||
mkdir -p bootstrap/css
|
mkdir -p bootstrap/css
|
||||||
mkdir -p bootstrap/js
|
mkdir -p bootstrap/js
|
||||||
cp fonts/* bootstrap/fonts/
|
cp fonts/* bootstrap/fonts/
|
||||||
recess --compile ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.css
|
./node_modules/.bin/recess --compile ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.css
|
||||||
recess --compress ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.min.css
|
./node_modules/.bin/recess --compress ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.min.css
|
||||||
cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js js/bootstrap-affix.js > bootstrap/js/bootstrap.js
|
cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js js/bootstrap-affix.js > bootstrap/js/bootstrap.js
|
||||||
uglifyjs bootstrap/js/bootstrap.js -nc > bootstrap/js/bootstrap.min.tmp.js
|
./node_modules/.bin/uglifyjs -nc bootstrap/js/bootstrap.js > bootstrap/js/bootstrap.min.tmp.js
|
||||||
echo "/*!\n* Bootstrap.js by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > bootstrap/js/copyright.js
|
echo "/*!\n* Bootstrap.js by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > bootstrap/js/copyright.js
|
||||||
cat bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js > bootstrap/js/bootstrap.min.js
|
cat bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js > bootstrap/js/bootstrap.min.js
|
||||||
rm bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js
|
rm bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js
|
||||||
|
1092
docs/assets/css/bootstrap-responsive.css
vendored
1092
docs/assets/css/bootstrap-responsive.css
vendored
File diff suppressed because it is too large
Load Diff
40
docs/assets/css/bootstrap.css
vendored
40
docs/assets/css/bootstrap.css
vendored
@@ -2953,8 +2953,6 @@ fieldset[disabled] .btn-link:hover {
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-mini .caret,
|
|
||||||
.btn-small .caret,
|
|
||||||
.btn-large .caret {
|
.btn-large .caret {
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
}
|
}
|
||||||
@@ -2965,6 +2963,11 @@ fieldset[disabled] .btn-link:hover {
|
|||||||
border-left-width: 5px;
|
border-left-width: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-mini .caret,
|
||||||
|
.btn-small .caret {
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.dropup .btn-large .caret {
|
.dropup .btn-large .caret {
|
||||||
border-bottom-width: 5px;
|
border-bottom-width: 5px;
|
||||||
}
|
}
|
||||||
@@ -4428,11 +4431,11 @@ a.thumbnail:hover {
|
|||||||
margin: 0 0 5px;
|
margin: 0 0 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media .pull-left {
|
.media > .pull-left {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media .pull-right {
|
.media > .pull-right {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4869,6 +4872,31 @@ a.badge:hover {
|
|||||||
margin-left: 70px;
|
margin-left: 70px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.carousel-indicators {
|
||||||
|
position: absolute;
|
||||||
|
top: 15px;
|
||||||
|
right: 15px;
|
||||||
|
z-index: 5;
|
||||||
|
margin: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-indicators li {
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
margin-left: 5px;
|
||||||
|
text-indent: -999px;
|
||||||
|
background-color: #ccc;
|
||||||
|
background-color: rgba(255, 255, 255, 0.25);
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-indicators .active {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
.carousel-caption {
|
.carousel-caption {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
@@ -4964,6 +4992,10 @@ a.badge:hover {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@-ms-viewport {
|
||||||
|
width: device-width;
|
||||||
|
}
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
|
@@ -14,12 +14,14 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
// side bar
|
// side bar
|
||||||
$('.bs-docs-sidenav').affix({
|
setTimeout(function () {
|
||||||
offset: {
|
$('.bs-docs-sidenav').affix({
|
||||||
top: function () { return $window.width() <= 980 ? 290 : 210 }
|
offset: {
|
||||||
, bottom: 270
|
top: function () { return $window.width() <= 980 ? 290 : 210 }
|
||||||
}
|
, bottom: 270
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}, 100)
|
||||||
|
|
||||||
// make code pretty
|
// make code pretty
|
||||||
window.prettyPrint && prettyPrint()
|
window.prettyPrint && prettyPrint()
|
||||||
@@ -34,7 +36,7 @@
|
|||||||
// add tipsies to grid for scaffolding
|
// add tipsies to grid for scaffolding
|
||||||
if ($('#gridSystem').length) {
|
if ($('#gridSystem').length) {
|
||||||
$('#gridSystem').tooltip({
|
$('#gridSystem').tooltip({
|
||||||
selector: '.show-grid > div'
|
selector: '.show-grid > div:not(.tooltip)'
|
||||||
, title: function () { return $(this).width() + 'px' }
|
, title: function () { return $(this).width() + 'px' }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
25
docs/assets/js/bootstrap-carousel.js
vendored
25
docs/assets/js/bootstrap-carousel.js
vendored
@@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
var Carousel = function (element, options) {
|
var Carousel = function (element, options) {
|
||||||
this.$element = $(element)
|
this.$element = $(element)
|
||||||
|
this.$indicators = this.$element.find('.carousel-indicators')
|
||||||
this.options = options
|
this.options = options
|
||||||
this.options.pause == 'hover' && this.$element
|
this.options.pause == 'hover' && this.$element
|
||||||
.on('mouseenter', $.proxy(this.pause, this))
|
.on('mouseenter', $.proxy(this.pause, this))
|
||||||
@@ -44,13 +45,17 @@
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
, getActiveIndex: function () {
|
||||||
|
this.$active = this.$element.find('.item.active')
|
||||||
|
this.$items = this.$active.parent().children()
|
||||||
|
return this.$items.index(this.$active)
|
||||||
|
}
|
||||||
|
|
||||||
, to: function (pos) {
|
, to: function (pos) {
|
||||||
var $active = this.$element.find('.item.active')
|
var activeIndex = this.getActiveIndex()
|
||||||
, children = $active.parent().children()
|
|
||||||
, activePos = children.index($active)
|
|
||||||
, that = this
|
, that = this
|
||||||
|
|
||||||
if (pos > (children.length - 1) || pos < 0) return
|
if (pos > (this.$items.length - 1) || pos < 0) return
|
||||||
|
|
||||||
if (this.sliding) {
|
if (this.sliding) {
|
||||||
return this.$element.one('slid', function () {
|
return this.$element.one('slid', function () {
|
||||||
@@ -58,11 +63,11 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (activePos == pos) {
|
if (activeIndex == pos) {
|
||||||
return this.pause().cycle()
|
return this.pause().cycle()
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
|
return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
|
||||||
}
|
}
|
||||||
|
|
||||||
, pause: function (e) {
|
, pause: function (e) {
|
||||||
@@ -107,6 +112,14 @@
|
|||||||
|
|
||||||
if ($next.hasClass('active')) return
|
if ($next.hasClass('active')) return
|
||||||
|
|
||||||
|
if (this.$indicators.length) {
|
||||||
|
this.$indicators.find('.active').removeClass('active')
|
||||||
|
this.$element.one('slid', function () {
|
||||||
|
var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
|
||||||
|
$nextIndicator && $nextIndicator.addClass('active')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if ($.support.transition && this.$element.hasClass('slide')) {
|
if ($.support.transition && this.$element.hasClass('slide')) {
|
||||||
this.$element.trigger(e)
|
this.$element.trigger(e)
|
||||||
if (e.isDefaultPrevented()) return
|
if (e.isDefaultPrevented()) return
|
||||||
|
5
docs/assets/js/bootstrap-dropdown.js
vendored
5
docs/assets/js/bootstrap-dropdown.js
vendored
@@ -115,8 +115,9 @@
|
|||||||
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
||||||
}
|
}
|
||||||
|
|
||||||
$parent = $(selector)
|
$parent = selector && $(selector)
|
||||||
$parent.length || ($parent = $this.parent())
|
|
||||||
|
if (!$parent || !$parent.length) $parent = $this.parent()
|
||||||
|
|
||||||
return $parent
|
return $parent
|
||||||
}
|
}
|
||||||
|
3
docs/assets/js/bootstrap-modal.js
vendored
3
docs/assets/js/bootstrap-modal.js
vendored
@@ -60,8 +60,7 @@
|
|||||||
that.$element.appendTo(document.body) //don't move modals dom position
|
that.$element.appendTo(document.body) //don't move modals dom position
|
||||||
}
|
}
|
||||||
|
|
||||||
that.$element
|
that.$element.show()
|
||||||
.show()
|
|
||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
that.$element[0].offsetWidth // force reflow
|
that.$element[0].offsetWidth // force reflow
|
||||||
|
18
docs/assets/js/bootstrap-tooltip.js
vendored
18
docs/assets/js/bootstrap-tooltip.js
vendored
@@ -97,7 +97,6 @@
|
|||||||
|
|
||||||
, show: function () {
|
, show: function () {
|
||||||
var $tip
|
var $tip
|
||||||
, inside
|
|
||||||
, pos
|
, pos
|
||||||
, actualWidth
|
, actualWidth
|
||||||
, actualHeight
|
, actualHeight
|
||||||
@@ -116,19 +115,17 @@
|
|||||||
this.options.placement.call(this, $tip[0], this.$element[0]) :
|
this.options.placement.call(this, $tip[0], this.$element[0]) :
|
||||||
this.options.placement
|
this.options.placement
|
||||||
|
|
||||||
inside = /in/.test(placement)
|
|
||||||
|
|
||||||
$tip
|
$tip
|
||||||
.detach()
|
.detach()
|
||||||
.css({ top: 0, left: 0, display: 'block' })
|
.css({ top: 0, left: 0, display: 'block' })
|
||||||
.insertAfter(this.$element)
|
.insertAfter(this.$element)
|
||||||
|
|
||||||
pos = this.getPosition(inside)
|
pos = this.getPosition()
|
||||||
|
|
||||||
actualWidth = $tip[0].offsetWidth
|
actualWidth = $tip[0].offsetWidth
|
||||||
actualHeight = $tip[0].offsetHeight
|
actualHeight = $tip[0].offsetHeight
|
||||||
|
|
||||||
switch (inside ? placement.split(' ')[1] : placement) {
|
switch (placement) {
|
||||||
case 'bottom':
|
case 'bottom':
|
||||||
tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
|
tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
|
||||||
break
|
break
|
||||||
@@ -193,11 +190,12 @@
|
|||||||
return this.getTitle()
|
return this.getTitle()
|
||||||
}
|
}
|
||||||
|
|
||||||
, getPosition: function (inside) {
|
, getPosition: function () {
|
||||||
return $.extend({}, (inside ? {top: 0, left: 0} : this.$element.offset()), {
|
var el = this.$element[0]
|
||||||
width: this.$element[0].offsetWidth
|
return $.extend({}, el.getBoundingClientRect ? el.getBoundingClientRect() : {
|
||||||
, height: this.$element[0].offsetHeight
|
width: el.offsetWidth
|
||||||
})
|
, height: el.offsetHeight
|
||||||
|
}, this.$element.offset())
|
||||||
}
|
}
|
||||||
|
|
||||||
, getTitle: function () {
|
, getTitle: function () {
|
||||||
|
16
docs/assets/js/bootstrap-typeahead.js
vendored
16
docs/assets/js/bootstrap-typeahead.js
vendored
@@ -172,6 +172,7 @@
|
|||||||
|
|
||||||
, listen: function () {
|
, listen: function () {
|
||||||
this.$element
|
this.$element
|
||||||
|
.on('focus', $.proxy(this.focus, this))
|
||||||
.on('blur', $.proxy(this.blur, this))
|
.on('blur', $.proxy(this.blur, this))
|
||||||
.on('keypress', $.proxy(this.keypress, this))
|
.on('keypress', $.proxy(this.keypress, this))
|
||||||
.on('keyup', $.proxy(this.keyup, this))
|
.on('keyup', $.proxy(this.keyup, this))
|
||||||
@@ -183,6 +184,7 @@
|
|||||||
this.$menu
|
this.$menu
|
||||||
.on('click', $.proxy(this.click, this))
|
.on('click', $.proxy(this.click, this))
|
||||||
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
||||||
|
.on('mouseleave', 'li', $.proxy(this.mouseleave, this))
|
||||||
}
|
}
|
||||||
|
|
||||||
, eventSupported: function(eventName) {
|
, eventSupported: function(eventName) {
|
||||||
@@ -256,9 +258,13 @@
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
, focus: function (e) {
|
||||||
|
this.focused = true
|
||||||
|
}
|
||||||
|
|
||||||
, blur: function (e) {
|
, blur: function (e) {
|
||||||
var that = this
|
this.focused = false
|
||||||
setTimeout(function () { that.hide() }, 150)
|
if (!this.mousedover && this.shown) this.hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
, click: function (e) {
|
, click: function (e) {
|
||||||
@@ -268,10 +274,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, mouseenter: function (e) {
|
, mouseenter: function (e) {
|
||||||
|
this.mousedover = true
|
||||||
this.$menu.find('.active').removeClass('active')
|
this.$menu.find('.active').removeClass('active')
|
||||||
$(e.currentTarget).addClass('active')
|
$(e.currentTarget).addClass('active')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
, mouseleave: function (e) {
|
||||||
|
this.mousedover = false
|
||||||
|
if (!this.focused && this.shown) this.hide()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
67
docs/assets/js/bootstrap.js
vendored
67
docs/assets/js/bootstrap.js
vendored
@@ -289,6 +289,7 @@
|
|||||||
|
|
||||||
var Carousel = function (element, options) {
|
var Carousel = function (element, options) {
|
||||||
this.$element = $(element)
|
this.$element = $(element)
|
||||||
|
this.$indicators = this.$element.find('.carousel-indicators')
|
||||||
this.options = options
|
this.options = options
|
||||||
this.options.pause == 'hover' && this.$element
|
this.options.pause == 'hover' && this.$element
|
||||||
.on('mouseenter', $.proxy(this.pause, this))
|
.on('mouseenter', $.proxy(this.pause, this))
|
||||||
@@ -305,13 +306,17 @@
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
, getActiveIndex: function () {
|
||||||
|
this.$active = this.$element.find('.item.active')
|
||||||
|
this.$items = this.$active.parent().children()
|
||||||
|
return this.$items.index(this.$active)
|
||||||
|
}
|
||||||
|
|
||||||
, to: function (pos) {
|
, to: function (pos) {
|
||||||
var $active = this.$element.find('.item.active')
|
var activeIndex = this.getActiveIndex()
|
||||||
, children = $active.parent().children()
|
|
||||||
, activePos = children.index($active)
|
|
||||||
, that = this
|
, that = this
|
||||||
|
|
||||||
if (pos > (children.length - 1) || pos < 0) return
|
if (pos > (this.$items.length - 1) || pos < 0) return
|
||||||
|
|
||||||
if (this.sliding) {
|
if (this.sliding) {
|
||||||
return this.$element.one('slid', function () {
|
return this.$element.one('slid', function () {
|
||||||
@@ -319,11 +324,11 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (activePos == pos) {
|
if (activeIndex == pos) {
|
||||||
return this.pause().cycle()
|
return this.pause().cycle()
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
|
return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
|
||||||
}
|
}
|
||||||
|
|
||||||
, pause: function (e) {
|
, pause: function (e) {
|
||||||
@@ -368,6 +373,14 @@
|
|||||||
|
|
||||||
if ($next.hasClass('active')) return
|
if ($next.hasClass('active')) return
|
||||||
|
|
||||||
|
if (this.$indicators.length) {
|
||||||
|
this.$indicators.find('.active').removeClass('active')
|
||||||
|
this.$element.one('slid', function () {
|
||||||
|
var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
|
||||||
|
$nextIndicator && $nextIndicator.addClass('active')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if ($.support.transition && this.$element.hasClass('slide')) {
|
if ($.support.transition && this.$element.hasClass('slide')) {
|
||||||
this.$element.trigger(e)
|
this.$element.trigger(e)
|
||||||
if (e.isDefaultPrevented()) return
|
if (e.isDefaultPrevented()) return
|
||||||
@@ -726,8 +739,9 @@
|
|||||||
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
||||||
}
|
}
|
||||||
|
|
||||||
$parent = $(selector)
|
$parent = selector && $(selector)
|
||||||
$parent.length || ($parent = $this.parent())
|
|
||||||
|
if (!$parent || !$parent.length) $parent = $this.parent()
|
||||||
|
|
||||||
return $parent
|
return $parent
|
||||||
}
|
}
|
||||||
@@ -831,8 +845,7 @@
|
|||||||
that.$element.appendTo(document.body) //don't move modals dom position
|
that.$element.appendTo(document.body) //don't move modals dom position
|
||||||
}
|
}
|
||||||
|
|
||||||
that.$element
|
that.$element.show()
|
||||||
.show()
|
|
||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
that.$element[0].offsetWidth // force reflow
|
that.$element[0].offsetWidth // force reflow
|
||||||
@@ -1113,7 +1126,6 @@
|
|||||||
|
|
||||||
, show: function () {
|
, show: function () {
|
||||||
var $tip
|
var $tip
|
||||||
, inside
|
|
||||||
, pos
|
, pos
|
||||||
, actualWidth
|
, actualWidth
|
||||||
, actualHeight
|
, actualHeight
|
||||||
@@ -1132,19 +1144,17 @@
|
|||||||
this.options.placement.call(this, $tip[0], this.$element[0]) :
|
this.options.placement.call(this, $tip[0], this.$element[0]) :
|
||||||
this.options.placement
|
this.options.placement
|
||||||
|
|
||||||
inside = /in/.test(placement)
|
|
||||||
|
|
||||||
$tip
|
$tip
|
||||||
.detach()
|
.detach()
|
||||||
.css({ top: 0, left: 0, display: 'block' })
|
.css({ top: 0, left: 0, display: 'block' })
|
||||||
.insertAfter(this.$element)
|
.insertAfter(this.$element)
|
||||||
|
|
||||||
pos = this.getPosition(inside)
|
pos = this.getPosition()
|
||||||
|
|
||||||
actualWidth = $tip[0].offsetWidth
|
actualWidth = $tip[0].offsetWidth
|
||||||
actualHeight = $tip[0].offsetHeight
|
actualHeight = $tip[0].offsetHeight
|
||||||
|
|
||||||
switch (inside ? placement.split(' ')[1] : placement) {
|
switch (placement) {
|
||||||
case 'bottom':
|
case 'bottom':
|
||||||
tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
|
tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
|
||||||
break
|
break
|
||||||
@@ -1209,11 +1219,12 @@
|
|||||||
return this.getTitle()
|
return this.getTitle()
|
||||||
}
|
}
|
||||||
|
|
||||||
, getPosition: function (inside) {
|
, getPosition: function () {
|
||||||
return $.extend({}, (inside ? {top: 0, left: 0} : this.$element.offset()), {
|
var el = this.$element[0]
|
||||||
width: this.$element[0].offsetWidth
|
return $.extend({}, el.getBoundingClientRect ? el.getBoundingClientRect() : {
|
||||||
, height: this.$element[0].offsetHeight
|
width: el.offsetWidth
|
||||||
})
|
, height: el.offsetHeight
|
||||||
|
}, this.$element.offset())
|
||||||
}
|
}
|
||||||
|
|
||||||
, getTitle: function () {
|
, getTitle: function () {
|
||||||
@@ -1892,6 +1903,7 @@
|
|||||||
|
|
||||||
, listen: function () {
|
, listen: function () {
|
||||||
this.$element
|
this.$element
|
||||||
|
.on('focus', $.proxy(this.focus, this))
|
||||||
.on('blur', $.proxy(this.blur, this))
|
.on('blur', $.proxy(this.blur, this))
|
||||||
.on('keypress', $.proxy(this.keypress, this))
|
.on('keypress', $.proxy(this.keypress, this))
|
||||||
.on('keyup', $.proxy(this.keyup, this))
|
.on('keyup', $.proxy(this.keyup, this))
|
||||||
@@ -1903,6 +1915,7 @@
|
|||||||
this.$menu
|
this.$menu
|
||||||
.on('click', $.proxy(this.click, this))
|
.on('click', $.proxy(this.click, this))
|
||||||
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
||||||
|
.on('mouseleave', 'li', $.proxy(this.mouseleave, this))
|
||||||
}
|
}
|
||||||
|
|
||||||
, eventSupported: function(eventName) {
|
, eventSupported: function(eventName) {
|
||||||
@@ -1976,9 +1989,13 @@
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
, focus: function (e) {
|
||||||
|
this.focused = true
|
||||||
|
}
|
||||||
|
|
||||||
, blur: function (e) {
|
, blur: function (e) {
|
||||||
var that = this
|
this.focused = false
|
||||||
setTimeout(function () { that.hide() }, 150)
|
if (!this.mousedover && this.shown) this.hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
, click: function (e) {
|
, click: function (e) {
|
||||||
@@ -1988,10 +2005,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, mouseenter: function (e) {
|
, mouseenter: function (e) {
|
||||||
|
this.mousedover = true
|
||||||
this.$menu.find('.active').removeClass('active')
|
this.$menu.find('.active').removeClass('active')
|
||||||
$(e.currentTarget).addClass('active')
|
$(e.currentTarget).addClass('active')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
, mouseleave: function (e) {
|
||||||
|
this.mousedover = false
|
||||||
|
if (!this.focused && this.shown) this.hide()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
4
docs/assets/js/bootstrap.min.js
vendored
4
docs/assets/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -78,7 +78,7 @@
|
|||||||
|
|
||||||
.carousel .container {
|
.carousel .container {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 10;
|
z-index: 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel-control {
|
.carousel-control {
|
||||||
|
@@ -83,9 +83,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="./extend.html" >Extend</a>
|
<a href="./extend.html" >Extend</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>Version 3.0.0</li>
|
||||||
Version 3.0.0
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1420,6 +1420,11 @@ $('#myCollapsible').on('hidden', function () {
|
|||||||
<p>The slideshow below shows a generic plugin and component for cycling through elements like a carousel.</p>
|
<p>The slideshow below shows a generic plugin and component for cycling through elements like a carousel.</p>
|
||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<div id="myCarousel" class="carousel slide">
|
<div id="myCarousel" class="carousel slide">
|
||||||
|
<ol class="carousel-indicators">
|
||||||
|
<li class="active"></li>
|
||||||
|
<li></li>
|
||||||
|
<li></li>
|
||||||
|
</ol>
|
||||||
<div class="carousel-inner">
|
<div class="carousel-inner">
|
||||||
<div class="item active">
|
<div class="item active">
|
||||||
<img src="assets/img/bootstrap-mdo-sfmoma-01.jpg" alt="">
|
<img src="assets/img/bootstrap-mdo-sfmoma-01.jpg" alt="">
|
||||||
@@ -1683,6 +1688,7 @@ $('[data-spy="affix"]').each(function () {
|
|||||||
</pre>
|
</pre>
|
||||||
<h3>Options</h3>
|
<h3>Options</h3>
|
||||||
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p>
|
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p>
|
||||||
|
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
4
docs/templates/pages/index.mustache
vendored
4
docs/templates/pages/index.mustache
vendored
@@ -15,9 +15,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="./extend.html" {{#production}}onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'Extend']);"{{/production}}>Extend</a>
|
<a href="./extend.html" {{#production}}onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'Extend']);"{{/production}}>Extend</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>Version 3.0.0</li>
|
||||||
Version 3.0.0
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
6
docs/templates/pages/javascript.mustache
vendored
6
docs/templates/pages/javascript.mustache
vendored
@@ -1353,6 +1353,11 @@ $('#myCollapsible').on('hidden', function () {
|
|||||||
<p>The slideshow below shows a generic plugin and component for cycling through elements like a carousel.</p>
|
<p>The slideshow below shows a generic plugin and component for cycling through elements like a carousel.</p>
|
||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<div id="myCarousel" class="carousel slide">
|
<div id="myCarousel" class="carousel slide">
|
||||||
|
<ol class="carousel-indicators">
|
||||||
|
<li class="active"></li>
|
||||||
|
<li></li>
|
||||||
|
<li></li>
|
||||||
|
</ol>
|
||||||
<div class="carousel-inner">
|
<div class="carousel-inner">
|
||||||
<div class="item active">
|
<div class="item active">
|
||||||
<img src="assets/img/bootstrap-mdo-sfmoma-01.jpg" alt="">
|
<img src="assets/img/bootstrap-mdo-sfmoma-01.jpg" alt="">
|
||||||
@@ -1616,6 +1621,7 @@ $('[data-spy="affix"]').each(function () {
|
|||||||
</pre>
|
</pre>
|
||||||
<h3>Options</h3>
|
<h3>Options</h3>
|
||||||
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p>
|
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p>
|
||||||
|
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
25
js/bootstrap-carousel.js
vendored
25
js/bootstrap-carousel.js
vendored
@@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
var Carousel = function (element, options) {
|
var Carousel = function (element, options) {
|
||||||
this.$element = $(element)
|
this.$element = $(element)
|
||||||
|
this.$indicators = this.$element.find('.carousel-indicators')
|
||||||
this.options = options
|
this.options = options
|
||||||
this.options.pause == 'hover' && this.$element
|
this.options.pause == 'hover' && this.$element
|
||||||
.on('mouseenter', $.proxy(this.pause, this))
|
.on('mouseenter', $.proxy(this.pause, this))
|
||||||
@@ -44,13 +45,17 @@
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
, getActiveIndex: function () {
|
||||||
|
this.$active = this.$element.find('.item.active')
|
||||||
|
this.$items = this.$active.parent().children()
|
||||||
|
return this.$items.index(this.$active)
|
||||||
|
}
|
||||||
|
|
||||||
, to: function (pos) {
|
, to: function (pos) {
|
||||||
var $active = this.$element.find('.item.active')
|
var activeIndex = this.getActiveIndex()
|
||||||
, children = $active.parent().children()
|
|
||||||
, activePos = children.index($active)
|
|
||||||
, that = this
|
, that = this
|
||||||
|
|
||||||
if (pos > (children.length - 1) || pos < 0) return
|
if (pos > (this.$items.length - 1) || pos < 0) return
|
||||||
|
|
||||||
if (this.sliding) {
|
if (this.sliding) {
|
||||||
return this.$element.one('slid', function () {
|
return this.$element.one('slid', function () {
|
||||||
@@ -58,11 +63,11 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (activePos == pos) {
|
if (activeIndex == pos) {
|
||||||
return this.pause().cycle()
|
return this.pause().cycle()
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
|
return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
|
||||||
}
|
}
|
||||||
|
|
||||||
, pause: function (e) {
|
, pause: function (e) {
|
||||||
@@ -107,6 +112,14 @@
|
|||||||
|
|
||||||
if ($next.hasClass('active')) return
|
if ($next.hasClass('active')) return
|
||||||
|
|
||||||
|
if (this.$indicators.length) {
|
||||||
|
this.$indicators.find('.active').removeClass('active')
|
||||||
|
this.$element.one('slid', function () {
|
||||||
|
var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
|
||||||
|
$nextIndicator && $nextIndicator.addClass('active')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if ($.support.transition && this.$element.hasClass('slide')) {
|
if ($.support.transition && this.$element.hasClass('slide')) {
|
||||||
this.$element.trigger(e)
|
this.$element.trigger(e)
|
||||||
if (e.isDefaultPrevented()) return
|
if (e.isDefaultPrevented()) return
|
||||||
|
5
js/bootstrap-dropdown.js
vendored
5
js/bootstrap-dropdown.js
vendored
@@ -115,8 +115,9 @@
|
|||||||
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
||||||
}
|
}
|
||||||
|
|
||||||
$parent = $(selector)
|
$parent = selector && $(selector)
|
||||||
$parent.length || ($parent = $this.parent())
|
|
||||||
|
if (!$parent || !$parent.length) $parent = $this.parent()
|
||||||
|
|
||||||
return $parent
|
return $parent
|
||||||
}
|
}
|
||||||
|
3
js/bootstrap-modal.js
vendored
3
js/bootstrap-modal.js
vendored
@@ -60,8 +60,7 @@
|
|||||||
that.$element.appendTo(document.body) //don't move modals dom position
|
that.$element.appendTo(document.body) //don't move modals dom position
|
||||||
}
|
}
|
||||||
|
|
||||||
that.$element
|
that.$element.show()
|
||||||
.show()
|
|
||||||
|
|
||||||
if (transition) {
|
if (transition) {
|
||||||
that.$element[0].offsetWidth // force reflow
|
that.$element[0].offsetWidth // force reflow
|
||||||
|
18
js/bootstrap-tooltip.js
vendored
18
js/bootstrap-tooltip.js
vendored
@@ -97,7 +97,6 @@
|
|||||||
|
|
||||||
, show: function () {
|
, show: function () {
|
||||||
var $tip
|
var $tip
|
||||||
, inside
|
|
||||||
, pos
|
, pos
|
||||||
, actualWidth
|
, actualWidth
|
||||||
, actualHeight
|
, actualHeight
|
||||||
@@ -116,19 +115,17 @@
|
|||||||
this.options.placement.call(this, $tip[0], this.$element[0]) :
|
this.options.placement.call(this, $tip[0], this.$element[0]) :
|
||||||
this.options.placement
|
this.options.placement
|
||||||
|
|
||||||
inside = /in/.test(placement)
|
|
||||||
|
|
||||||
$tip
|
$tip
|
||||||
.detach()
|
.detach()
|
||||||
.css({ top: 0, left: 0, display: 'block' })
|
.css({ top: 0, left: 0, display: 'block' })
|
||||||
.insertAfter(this.$element)
|
.insertAfter(this.$element)
|
||||||
|
|
||||||
pos = this.getPosition(inside)
|
pos = this.getPosition()
|
||||||
|
|
||||||
actualWidth = $tip[0].offsetWidth
|
actualWidth = $tip[0].offsetWidth
|
||||||
actualHeight = $tip[0].offsetHeight
|
actualHeight = $tip[0].offsetHeight
|
||||||
|
|
||||||
switch (inside ? placement.split(' ')[1] : placement) {
|
switch (placement) {
|
||||||
case 'bottom':
|
case 'bottom':
|
||||||
tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
|
tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
|
||||||
break
|
break
|
||||||
@@ -193,11 +190,12 @@
|
|||||||
return this.getTitle()
|
return this.getTitle()
|
||||||
}
|
}
|
||||||
|
|
||||||
, getPosition: function (inside) {
|
, getPosition: function () {
|
||||||
return $.extend({}, (inside ? {top: 0, left: 0} : this.$element.offset()), {
|
var el = this.$element[0]
|
||||||
width: this.$element[0].offsetWidth
|
return $.extend({}, el.getBoundingClientRect ? el.getBoundingClientRect() : {
|
||||||
, height: this.$element[0].offsetHeight
|
width: el.offsetWidth
|
||||||
})
|
, height: el.offsetHeight
|
||||||
|
}, this.$element.offset())
|
||||||
}
|
}
|
||||||
|
|
||||||
, getTitle: function () {
|
, getTitle: function () {
|
||||||
|
16
js/bootstrap-typeahead.js
vendored
16
js/bootstrap-typeahead.js
vendored
@@ -172,6 +172,7 @@
|
|||||||
|
|
||||||
, listen: function () {
|
, listen: function () {
|
||||||
this.$element
|
this.$element
|
||||||
|
.on('focus', $.proxy(this.focus, this))
|
||||||
.on('blur', $.proxy(this.blur, this))
|
.on('blur', $.proxy(this.blur, this))
|
||||||
.on('keypress', $.proxy(this.keypress, this))
|
.on('keypress', $.proxy(this.keypress, this))
|
||||||
.on('keyup', $.proxy(this.keyup, this))
|
.on('keyup', $.proxy(this.keyup, this))
|
||||||
@@ -183,6 +184,7 @@
|
|||||||
this.$menu
|
this.$menu
|
||||||
.on('click', $.proxy(this.click, this))
|
.on('click', $.proxy(this.click, this))
|
||||||
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
||||||
|
.on('mouseleave', 'li', $.proxy(this.mouseleave, this))
|
||||||
}
|
}
|
||||||
|
|
||||||
, eventSupported: function(eventName) {
|
, eventSupported: function(eventName) {
|
||||||
@@ -256,9 +258,13 @@
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
, focus: function (e) {
|
||||||
|
this.focused = true
|
||||||
|
}
|
||||||
|
|
||||||
, blur: function (e) {
|
, blur: function (e) {
|
||||||
var that = this
|
this.focused = false
|
||||||
setTimeout(function () { that.hide() }, 150)
|
if (!this.mousedover && this.shown) this.hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
, click: function (e) {
|
, click: function (e) {
|
||||||
@@ -268,10 +274,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, mouseenter: function (e) {
|
, mouseenter: function (e) {
|
||||||
|
this.mousedover = true
|
||||||
this.$menu.find('.active').removeClass('active')
|
this.$menu.find('.active').removeClass('active')
|
||||||
$(e.currentTarget).addClass('active')
|
$(e.currentTarget).addClass('active')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
, mouseleave: function (e) {
|
||||||
|
this.mousedover = false
|
||||||
|
if (!this.focused && this.shown) this.hide()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
6
less/bootstrap.less
vendored
6
less/bootstrap.less
vendored
@@ -8,13 +8,13 @@
|
|||||||
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// CSS Reset
|
|
||||||
@import "reset.less";
|
|
||||||
|
|
||||||
// Core variables and mixins
|
// Core variables and mixins
|
||||||
@import "variables.less"; // Modify this for custom colors, font-sizes, etc
|
@import "variables.less"; // Modify this for custom colors, font-sizes, etc
|
||||||
@import "mixins.less";
|
@import "mixins.less";
|
||||||
|
|
||||||
|
// CSS Reset
|
||||||
|
@import "reset.less";
|
||||||
|
|
||||||
// Grid system and page structure
|
// Grid system and page structure
|
||||||
@import "scaffolding.less";
|
@import "scaffolding.less";
|
||||||
@import "grid.less";
|
@import "grid.less";
|
||||||
|
@@ -146,8 +146,6 @@
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
// Carets in other button sizes
|
// Carets in other button sizes
|
||||||
.btn-mini .caret,
|
|
||||||
.btn-small .caret,
|
|
||||||
.btn-large .caret {
|
.btn-large .caret {
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
}
|
}
|
||||||
@@ -156,6 +154,10 @@
|
|||||||
border-right-width: 5px;
|
border-right-width: 5px;
|
||||||
border-top-width: 5px;
|
border-top-width: 5px;
|
||||||
}
|
}
|
||||||
|
.btn-mini .caret,
|
||||||
|
.btn-small .caret {
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
// Upside down carets for .dropup
|
// Upside down carets for .dropup
|
||||||
.dropup .btn-large .caret {
|
.dropup .btn-large .caret {
|
||||||
border-bottom-width: 5px;
|
border-bottom-width: 5px;
|
||||||
|
@@ -119,6 +119,31 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Carousel indicator pips
|
||||||
|
// -----------------------------
|
||||||
|
.carousel-indicators {
|
||||||
|
position: absolute;
|
||||||
|
top: 15px;
|
||||||
|
right: 15px;
|
||||||
|
z-index: 5;
|
||||||
|
margin: 0;
|
||||||
|
list-style: none;
|
||||||
|
|
||||||
|
li {
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
margin-left: 5px;
|
||||||
|
text-indent: -999px;
|
||||||
|
background-color: #ccc;
|
||||||
|
background-color: rgba(255,255,255,.25);
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Caption for text below images
|
// Caption for text below images
|
||||||
|
@@ -36,10 +36,10 @@
|
|||||||
// Media image alignment
|
// Media image alignment
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
.media .pull-left {
|
.media > .pull-left {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
.media .pull-right {
|
.media > .pull-right {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -222,7 +222,6 @@
|
|||||||
}
|
}
|
||||||
.navbar .nav .dropdown-toggle .caret {
|
.navbar .nav .dropdown-toggle .caret {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hover
|
// Hover
|
||||||
|
@@ -3,6 +3,13 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// IE10 Metro responsive
|
||||||
|
// Required for Windows 8 Metro split-screen snapping with IE10
|
||||||
|
// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
|
||||||
|
@-ms-viewport{
|
||||||
|
width: device-width;
|
||||||
|
}
|
||||||
|
|
||||||
// Hide from screenreaders and browsers
|
// Hide from screenreaders and browsers
|
||||||
// Credit: HTML5 Boilerplate
|
// Credit: HTML5 Boilerplate
|
||||||
.hidden {
|
.hidden {
|
||||||
|
@@ -17,10 +17,10 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
, "devDependencies": {
|
, "devDependencies": {
|
||||||
"uglify-js": "1.2.6"
|
"uglify-js": "1.3.4"
|
||||||
, "jshint": "0.6.1"
|
, "jshint": "0.9.1"
|
||||||
, "recess": "1.0.3"
|
, "recess": "1.0.3"
|
||||||
, "connect": "2.1.3"
|
, "connect": "2.1.3"
|
||||||
, "hogan.js": "2.0.0"
|
, "hogan.js": "2.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user