2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00
This commit is contained in:
XhmikosR
2018-12-10 11:15:54 +02:00
parent 0f1c6b005f
commit 4c547f2175
29 changed files with 1396 additions and 1281 deletions
+3 -3
View File
@@ -37,8 +37,8 @@ themes: https://themes.getbootstrap.com
cdn: cdn:
# See https://www.srihash.org for info on how to generate the hashes # See https://www.srihash.org for info on how to generate the hashes
css: https://stackpath.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css css: https://stackpath.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css
css_hash: "sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" css_hash: "sha384-PmY9l28YgO4JwMKbTvgaS7XNZJ30MK9FAZjjzXtlqyZCqBY6X6bXIkM++IkyinN+"
css_theme: https://stackpath.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap-theme.min.css css_theme: https://stackpath.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap-theme.min.css
css_theme_hash: "sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" css_theme_hash: "sha384-jzngWsPS6op3fgRCDTESqrEJwRKck+CILhJVO5VvaAZCq8JYf8HsR/HPpBOOPZfR"
js: https://stackpath.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js js: https://stackpath.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js
js_hash: "sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" js_hash: "sha384-vhJnz1OVIdLktyixHY4Uk3OHEwdQqPppqYR8+5mjsauETgLOcEynD9oPHhhz18Nw"
+2 -9
View File
@@ -1,15 +1,8 @@
/* stylelint-disable selector-no-qualifying-type, selector-max-compound-selectors */
/*! /*!
* Bootstrap v3.4.0 (http://getbootstrap.com) * Bootstrap v3.4.0 (https://getbootstrap.com/)
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/ */
/* stylelint-disable value-keyword-case */
/* stylelint-disable font-family-name-quotes, font-family-no-missing-generic-family-keyword */
/* stylelint-disable media-feature-name-no-vendor-prefix, media-feature-parentheses-space-inside, media-feature-name-no-unknown, indentation, at-rule-name-space-after */
/* stylelint-disable declaration-no-important */
/* stylelint-disable indentation, property-no-vendor-prefix, selector-no-vendor-prefix */
/* stylelint-disable value-no-vendor-prefix, selector-max-id */
.btn-default, .btn-default,
.btn-primary, .btn-primary,
.btn-success, .btn-success,
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+562 -483
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+71 -55
View File
@@ -1,5 +1,5 @@
/*! /*!
* Bootstrap v3.4.0 (http://getbootstrap.com) * Bootstrap v3.4.0 (https://getbootstrap.com/)
* Copyright 2011-2018 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under the MIT license * Licensed under the MIT license
*/ */
@@ -18,9 +18,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: transition.js v3.4.0 * Bootstrap: transition.js v3.4.0
* http://getbootstrap.com/javascript/#transitions * https://getbootstrap.com/docs/3.4/javascript/#transitions
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -28,7 +28,7 @@ if (typeof jQuery === 'undefined') {
+function ($) { +function ($) {
'use strict'; 'use strict';
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) // CSS TRANSITION SUPPORT (Shoutout: https://modernizr.com/)
// ============================================================ // ============================================================
function transitionEnd() { function transitionEnd() {
@@ -50,7 +50,7 @@ if (typeof jQuery === 'undefined') {
return false // explicit for ie8 ( ._.) return false // explicit for ie8 ( ._.)
} }
// http://blog.alexmaccaw.com/css-transitions // https://blog.alexmaccaw.com/css-transitions
$.fn.emulateTransitionEnd = function (duration) { $.fn.emulateTransitionEnd = function (duration) {
var called = false var called = false
var $el = this var $el = this
@@ -78,9 +78,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: alert.js v3.4.0 * Bootstrap: alert.js v3.4.0
* http://getbootstrap.com/javascript/#alerts * https://getbootstrap.com/docs/3.4/javascript/#alerts
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -174,9 +174,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: button.js v3.4.0 * Bootstrap: button.js v3.4.0
* http://getbootstrap.com/javascript/#buttons * https://getbootstrap.com/docs/3.4/javascript/#buttons
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -300,9 +300,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: carousel.js v3.4.0 * Bootstrap: carousel.js v3.4.0
* http://getbootstrap.com/javascript/#carousel * https://getbootstrap.com/docs/3.4/javascript/#carousel
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -547,9 +547,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: collapse.js v3.4.0 * Bootstrap: collapse.js v3.4.0
* http://getbootstrap.com/javascript/#collapse * https://getbootstrap.com/docs/3.4/javascript/#collapse
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -760,9 +760,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: dropdown.js v3.4.0 * Bootstrap: dropdown.js v3.4.0
* http://getbootstrap.com/javascript/#dropdowns * https://getbootstrap.com/docs/3.4/javascript/#dropdowns
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -926,9 +926,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: modal.js v3.4.0 * Bootstrap: modal.js v3.4.0
* http://getbootstrap.com/javascript/#modals * https://getbootstrap.com/docs/3.4/javascript/#modals
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -940,15 +940,16 @@ if (typeof jQuery === 'undefined') {
// ====================== // ======================
var Modal = function (element, options) { var Modal = function (element, options) {
this.options = options this.options = options
this.$body = $(document.body) this.$body = $(document.body)
this.$element = $(element) this.$element = $(element)
this.$dialog = this.$element.find('.modal-dialog') this.$dialog = this.$element.find('.modal-dialog')
this.$backdrop = null this.$backdrop = null
this.isShown = null this.isShown = null
this.originalBodyPad = null this.originalBodyPad = null
this.scrollbarWidth = 0 this.scrollbarWidth = 0
this.ignoreBackdropClick = false this.ignoreBackdropClick = false
this.fixedContent = '.navbar-fixed-top, .navbar-fixed-bottom'
if (this.options.remote) { if (this.options.remote) {
this.$element this.$element
@@ -959,7 +960,7 @@ if (typeof jQuery === 'undefined') {
} }
} }
Modal.VERSION = '3.4.0' Modal.VERSION = '3.4.0'
Modal.TRANSITION_DURATION = 300 Modal.TRANSITION_DURATION = 300
Modal.BACKDROP_TRANSITION_DURATION = 150 Modal.BACKDROP_TRANSITION_DURATION = 150
@@ -976,7 +977,7 @@ if (typeof jQuery === 'undefined') {
Modal.prototype.show = function (_relatedTarget) { Modal.prototype.show = function (_relatedTarget) {
var that = this var that = this
var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget }) var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
this.$element.trigger(e) this.$element.trigger(e)
@@ -1067,8 +1068,8 @@ if (typeof jQuery === 'undefined') {
.off('focusin.bs.modal') // guard against infinite focus loop .off('focusin.bs.modal') // guard against infinite focus loop
.on('focusin.bs.modal', $.proxy(function (e) { .on('focusin.bs.modal', $.proxy(function (e) {
if (document !== e.target && if (document !== e.target &&
this.$element[0] !== e.target && this.$element[0] !== e.target &&
!this.$element.has(e.target).length) { !this.$element.has(e.target).length) {
this.$element.trigger('focus') this.$element.trigger('focus')
} }
}, this)) }, this))
@@ -1170,7 +1171,7 @@ if (typeof jQuery === 'undefined') {
var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight
this.$element.css({ this.$element.css({
paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '', paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : '' paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''
}) })
} }
@@ -1195,11 +1196,26 @@ if (typeof jQuery === 'undefined') {
Modal.prototype.setScrollbar = function () { Modal.prototype.setScrollbar = function () {
var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10) var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
this.originalBodyPad = document.body.style.paddingRight || '' this.originalBodyPad = document.body.style.paddingRight || ''
if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth) var scrollbarWidth = this.scrollbarWidth
if (this.bodyIsOverflowing) {
this.$body.css('padding-right', bodyPad + scrollbarWidth)
$(this.fixedContent).each(function (index, element) {
var actualPadding = element.style.paddingRight
var calculatedPadding = $(element).css('padding-right')
$(element)
.data('padding-right', actualPadding)
.css('padding-right', parseFloat(calculatedPadding) + scrollbarWidth + 'px')
})
}
} }
Modal.prototype.resetScrollbar = function () { Modal.prototype.resetScrollbar = function () {
this.$body.css('padding-right', this.originalBodyPad) this.$body.css('padding-right', this.originalBodyPad)
$(this.fixedContent).each(function (index, element) {
var padding = $(element).data('padding-right')
$(element).removeData('padding-right')
element.style.paddingRight = padding ? padding : ''
})
} }
Modal.prototype.measureScrollbar = function () { // thx walsh Modal.prototype.measureScrollbar = function () { // thx walsh
@@ -1217,8 +1233,8 @@ if (typeof jQuery === 'undefined') {
function Plugin(option, _relatedTarget) { function Plugin(option, _relatedTarget) {
return this.each(function () { return this.each(function () {
var $this = $(this) var $this = $(this)
var data = $this.data('bs.modal') var data = $this.data('bs.modal')
var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option) var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
if (!data) $this.data('bs.modal', (data = new Modal(this, options))) if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
@@ -1229,7 +1245,7 @@ if (typeof jQuery === 'undefined') {
var old = $.fn.modal var old = $.fn.modal
$.fn.modal = Plugin $.fn.modal = Plugin
$.fn.modal.Constructor = Modal $.fn.modal.Constructor = Modal
@@ -1246,13 +1262,13 @@ if (typeof jQuery === 'undefined') {
// ============== // ==============
$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) { $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
var $this = $(this) var $this = $(this)
var href = $this.attr('href') var href = $this.attr('href')
var target = $this.attr('data-target') || var target = $this.attr('data-target') ||
(href && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7 (href && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
var $target = $(document).find(target) var $target = $(document).find(target)
var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data()) var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
if ($this.is('a')) e.preventDefault() if ($this.is('a')) e.preventDefault()
@@ -1269,10 +1285,10 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: tooltip.js v3.4.0 * Bootstrap: tooltip.js v3.4.0
* http://getbootstrap.com/javascript/#tooltip * https://getbootstrap.com/docs/3.4/javascript/#tooltip
* Inspired by the original jQuery.tipsy by Jason Frame * Inspired by the original jQuery.tipsy by Jason Frame
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -1790,9 +1806,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: popover.js v3.4.0 * Bootstrap: popover.js v3.4.0
* http://getbootstrap.com/javascript/#popovers * https://getbootstrap.com/docs/3.4/javascript/#popovers
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -1857,8 +1873,8 @@ if (typeof jQuery === 'undefined') {
return $e.attr('data-content') return $e.attr('data-content')
|| (typeof o.content == 'function' ? || (typeof o.content == 'function' ?
o.content.call($e[0]) : o.content.call($e[0]) :
o.content) o.content)
} }
Popover.prototype.arrow = function () { Popover.prototype.arrow = function () {
@@ -1899,9 +1915,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: scrollspy.js v3.4.0 * Bootstrap: scrollspy.js v3.4.0
* http://getbootstrap.com/javascript/#scrollspy * https://getbootstrap.com/docs/3.4/javascript/#scrollspy
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -2072,9 +2088,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: tab.js v3.4.0 * Bootstrap: tab.js v3.4.0
* http://getbootstrap.com/javascript/#tabs * https://getbootstrap.com/docs/3.4/javascript/#tabs
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -2145,15 +2161,15 @@ if (typeof jQuery === 'undefined') {
$active $active
.removeClass('active') .removeClass('active')
.find('> .dropdown-menu > .active') .find('> .dropdown-menu > .active')
.removeClass('active') .removeClass('active')
.end() .end()
.find('[data-toggle="tab"]') .find('[data-toggle="tab"]')
.attr('aria-expanded', false) .attr('aria-expanded', false)
element element
.addClass('active') .addClass('active')
.find('[data-toggle="tab"]') .find('[data-toggle="tab"]')
.attr('aria-expanded', true) .attr('aria-expanded', true)
if (transition) { if (transition) {
element[0].offsetWidth // reflow for transition element[0].offsetWidth // reflow for transition
@@ -2165,10 +2181,10 @@ if (typeof jQuery === 'undefined') {
if (element.parent('.dropdown-menu').length) { if (element.parent('.dropdown-menu').length) {
element element
.closest('li.dropdown') .closest('li.dropdown')
.addClass('active') .addClass('active')
.end() .end()
.find('[data-toggle="tab"]') .find('[data-toggle="tab"]')
.attr('aria-expanded', true) .attr('aria-expanded', true)
} }
callback && callback() callback && callback()
@@ -2228,9 +2244,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: affix.js v3.4.0 * Bootstrap: affix.js v3.4.0
* http://getbootstrap.com/javascript/#affix * https://getbootstrap.com/docs/3.4/javascript/#affix
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
+6 -1
View File
File diff suppressed because one or more lines are too long
+54 -56
View File
@@ -1,10 +1,9 @@
/*! /*!
* Bootstrap Docs (http://getbootstrap.com) * Bootstrap Docs (https://getbootstrap.com/)
* Copyright 2011-2017 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under the Creative Commons Attribution 3.0 Unported License. For * Licensed under the Creative Commons Attribution 3.0 Unported License. For
* details, see https://creativecommons.org/licenses/by/3.0/. * details, see https://creativecommons.org/licenses/by/3.0/.
*/ */
/* stylelint-disable declaration-block-single-line-max-declarations */
.hll { .hll {
background-color: #ffc; background-color: #ffc;
} }
@@ -218,27 +217,25 @@
display: inline-block; display: inline-block;
padding-right: 45px; padding-right: 45px;
} }
/* stylelint-disable at-rule-no-vendor-prefix */ .language-bash:before {
color: #033;
content: "$ ";
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/*! /*!
* IE10 viewport hack for Surface/desktop Windows 8 bug * IE10 viewport hack for Surface/desktop Windows 8 bug
* Copyright 2014-2015 Twitter, Inc. * Copyright 2014-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/ */
@-ms-viewport { @-ms-viewport {
width: device-width; width: device-width;
} }
@-o-viewport {
width: device-width;
}
@viewport { @viewport {
width: device-width; width: device-width;
} }
/* stylelint-disable value-keyword-case */
/* stylelint-disable font-family-name-quotes, font-family-no-missing-generic-family-keyword */
/* stylelint-disable media-feature-name-no-vendor-prefix, media-feature-parentheses-space-inside, media-feature-name-no-unknown, indentation, at-rule-name-space-after */
/* stylelint-disable declaration-no-important */
/* stylelint-disable indentation, property-no-vendor-prefix, selector-no-vendor-prefix */
/* stylelint-disable value-no-vendor-prefix, selector-max-id */
.btn-outline { .btn-outline {
color: #563d7c; color: #563d7c;
background-color: transparent; background-color: transparent;
@@ -293,7 +290,6 @@
background-color: transparent; background-color: transparent;
border: 1px solid #cdbfe3; border: 1px solid #cdbfe3;
} }
/* stylelint-disable selector-max-id */
#skippy { #skippy {
display: block; display: block;
padding: 1em; padding: 1em;
@@ -302,7 +298,7 @@
outline: 0; outline: 0;
} }
#skippy .skiplink-text { #skippy .skiplink-text {
padding: .5em; padding: 0.5em;
outline: 1px dotted; outline: 1px dotted;
} }
#content:focus { #content:focus {
@@ -376,7 +372,6 @@
margin-bottom: 0; margin-bottom: 0;
} }
} }
/* stylelint-disable value-no-vendor-prefix, function-name-case */
.bs-docs-masthead, .bs-docs-masthead,
.bs-docs-header { .bs-docs-header {
position: relative; position: relative;
@@ -471,7 +466,6 @@
margin-right: 380px; margin-right: 380px;
} }
} }
/* stylelint-disable selector-max-id, declaration-no-important */
#carbonads { #carbonads {
display: block; display: block;
padding: 15px 15px 15px 160px; padding: 15px 15px 15px 160px;
@@ -582,18 +576,18 @@
margin-right: -1px; margin-right: -1px;
margin-left: -1px; margin-left: -1px;
} }
.bs-docs-featured-sites .col-xs-6 { .bs-docs-featured-sites .col-xs-8 {
padding: 1px; padding: 1px;
} }
.bs-docs-featured-sites .img-responsive { .bs-docs-featured-sites .img-responsive {
margin-top: 0; margin-top: 0;
} }
@media (min-width: 768px) { @media (min-width: 768px) {
.bs-docs-featured-sites .col-sm-3:first-child img { .bs-docs-featured-sites .col-sm-4:first-child img {
border-top-left-radius: 4px; border-top-left-radius: 4px;
border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;
} }
.bs-docs-featured-sites .col-sm-3:last-child img { .bs-docs-featured-sites .col-sm-4:last-child img {
border-top-right-radius: 4px; border-top-right-radius: 4px;
border-bottom-right-radius: 4px; border-bottom-right-radius: 4px;
} }
@@ -617,7 +611,6 @@
padding-left: 10px; padding-left: 10px;
} }
} }
/* stylelint-disable selector-max-compound-selectors */
.bs-docs-sidebar.affix { .bs-docs-sidebar.affix {
position: static; position: static;
} }
@@ -730,7 +723,6 @@
width: 263px; width: 263px;
} }
} }
/* stylelint-disable property-no-vendor-prefix, selector-max-id, selector-no-qualifying-type */
.show-grid { .show-grid {
margin-bottom: 15px; margin-bottom: 15px;
} }
@@ -752,7 +744,7 @@
-webkit-box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05); -webkit-box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
} }
.bs-example::after { .bs-example:after {
position: absolute; position: absolute;
top: 15px; top: 15px;
left: 15px; left: 15px;
@@ -767,7 +759,7 @@
padding-bottom: 24px; padding-bottom: 24px;
} }
.bs-example + .highlight, .bs-example + .highlight,
.bs-example + .zero-clipboard + .highlight { .bs-example + .bs-clipboard + .highlight {
margin: -15px -15px 15px; margin: -15px -15px 15px;
border-width: 0 0 1px; border-width: 0 0 1px;
border-radius: 0; border-radius: 0;
@@ -784,7 +776,7 @@
box-shadow: none; box-shadow: none;
} }
.bs-example + .highlight, .bs-example + .highlight,
.bs-example + .zero-clipboard + .highlight { .bs-example + .bs-clipboard + .highlight {
margin-top: -16px; margin-top: -16px;
margin-right: 0; margin-right: 0;
margin-left: 0; margin-left: 0;
@@ -792,6 +784,10 @@
border-bottom-right-radius: 4px; border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;
} }
.bs-example + .bs-clipboard .btn-clipboard {
top: -15px;
border-top-right-radius: 0;
}
.bs-example-standalone { .bs-example-standalone {
border-radius: 4px; border-radius: 4px;
} }
@@ -891,7 +887,7 @@
.bs-navbar-top-example { .bs-navbar-top-example {
padding-bottom: 45px; padding-bottom: 45px;
} }
.bs-navbar-top-example::after { .bs-navbar-top-example:after {
top: auto; top: auto;
bottom: 15px; bottom: 15px;
} }
@@ -1112,7 +1108,6 @@
margin-right: 10px; margin-right: 10px;
border-radius: 4px; border-radius: 4px;
} }
/* stylelint-disable selector-no-qualifying-type, declaration-no-important */
.table-responsive .highlight pre { .table-responsive .highlight pre {
white-space: normal; white-space: normal;
} }
@@ -1217,7 +1212,6 @@
font-size: 12px; font-size: 12px;
} }
} }
/* stylelint-disable property-no-vendor-prefix, selector-max-id, selector-no-qualifying-type */
.bs-customizer .toggle { .bs-customizer .toggle {
float: right; float: right;
margin-top: 25px; margin-top: 25px;
@@ -1300,7 +1294,7 @@
.bs-dropzone .import-header { .bs-dropzone .import-header {
margin-bottom: 5px; margin-bottom: 5px;
} }
.bs-dropzone .glyphicon-download-alt { .bs-dropzone .glyphicon-folder-open {
font-size: 40px; font-size: 40px;
} }
.bs-dropzone hr { .bs-dropzone hr {
@@ -1373,9 +1367,13 @@
font-size: 60px; font-size: 60px;
} }
} }
.zero-clipboard { .bs-clipboard {
position: relative; position: relative;
display: none; display: none;
float: right;
}
.bs-clipboard + .highlight {
margin-top: 0;
} }
.btn-clipboard { .btn-clipboard {
position: absolute; position: absolute;
@@ -1383,29 +1381,24 @@
right: 0; right: 0;
z-index: 10; z-index: 10;
display: block; display: block;
padding: 5px 8px; padding: 4px 8px;
font-size: 12px; font-size: 12px;
color: #767676; color: #818a91;
cursor: pointer; cursor: pointer;
background-color: #fff; background-color: transparent;
border: 1px solid #e1e1e8; border: 0;
border-radius: 0 4px; border-top-right-radius: 4px;
border-bottom-left-radius: 4px;
} }
.btn-clipboard-hover { .btn-clipboard:hover {
color: #fff; color: #fff;
background-color: #563d7c; background-color: #027de7;
border-color: #563d7c;
} }
@media (min-width: 768px) { @media (min-width: 768px) {
.zero-clipboard { .bs-clipboard {
display: block; display: block;
} }
.bs-example + .zero-clipboard .btn-clipboard {
top: -16px;
border-top-right-radius: 0;
}
} }
/* stylelint-disable property-no-vendor-prefix */
.anchorjs-link { .anchorjs-link {
color: inherit; color: inherit;
} }
@@ -1415,17 +1408,16 @@
} }
} }
*:hover > .anchorjs-link { *:hover > .anchorjs-link {
opacity: .75; opacity: 0.75;
-webkit-transition: color .16s linear; -webkit-transition: color 0.16s linear;
-o-transition: color .16s linear; -o-transition: color 0.16s linear;
transition: color .16s linear; transition: color 0.16s linear;
} }
*:hover > .anchorjs-link:hover, *:hover > .anchorjs-link:hover,
.anchorjs-link:focus { .anchorjs-link:focus {
text-decoration: none; text-decoration: none;
opacity: 1; opacity: 1;
} }
/* stylelint-disable declaration-no-important, selector-attribute-quotes */
.algolia-autocomplete { .algolia-autocomplete {
display: block !important; display: block !important;
} }
@@ -1438,17 +1430,18 @@
background-clip: padding-box; background-clip: padding-box;
border: 1px solid #ddd; border: 1px solid #ddd;
border: 1px solid rgba(0, 0, 0, 0.1); border: 1px solid rgba(0, 0, 0, 0.1);
-webkit-box-shadow: 0 8px 15px rgba(0, 0, 0, 0.175);
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.175); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.175);
} }
@media min-width (768px) { @media (min-width: 768px) {
.algolia-autocomplete .ds-dropdown-menu { .algolia-autocomplete .ds-dropdown-menu {
width: 175%; width: 175%;
} }
} }
.algolia-autocomplete .ds-dropdown-menu::before { .algolia-autocomplete .ds-dropdown-menu:before {
display: none !important; display: none !important;
} }
.algolia-autocomplete .ds-dropdown-menu [class^=ds-dataset-] { .algolia-autocomplete .ds-dropdown-menu [class^="ds-dataset-"] {
padding: 0 !important; padding: 0 !important;
overflow: visible !important; overflow: visible !important;
background-color: transparent !important; background-color: transparent !important;
@@ -1457,6 +1450,10 @@
.algolia-autocomplete .ds-dropdown-menu .ds-suggestions { .algolia-autocomplete .ds-dropdown-menu .ds-suggestions {
margin-top: 0 !important; margin-top: 0 !important;
} }
.algolia-autocomplete .ds-dropdown-menu .ds-input {
-webkit-box-shadow: none;
box-shadow: none;
}
.algolia-autocomplete .algolia-docsearch-suggestion { .algolia-autocomplete .algolia-docsearch-suggestion {
padding: 0 !important; padding: 0 !important;
overflow: visible !important; overflow: visible !important;
@@ -1484,7 +1481,7 @@
width: auto !important; width: auto !important;
padding: 0 !important; padding: 0 !important;
} }
.algolia-autocomplete .algolia-docsearch-suggestion--content::before { .algolia-autocomplete .algolia-docsearch-suggestion--content:before {
display: none !important; display: none !important;
} }
.algolia-autocomplete .ds-suggestion:not(:first-child) .algolia-docsearch-suggestion--category-header { .algolia-autocomplete .ds-suggestion:not(:first-child) .algolia-docsearch-suggestion--category-header {
@@ -1531,12 +1528,12 @@
background-color: #eee; background-color: #eee;
} }
.algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight { .algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {
-webkit-box-shadow: inset 0 -2px 0 0 rgba(95, 45, 171, 0.5) !important;
box-shadow: inset 0 -2px 0 0 rgba(95, 45, 171, 0.5) !important; box-shadow: inset 0 -2px 0 0 rgba(95, 45, 171, 0.5) !important;
} }
.algolia-autocomplete .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content { .algolia-autocomplete .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content {
background-color: #e5e5e5 !important; background-color: #e5e5e5 !important;
} }
/* stylelint-disable selector-max-type, selector-no-qualifying-type, declaration-no-important */
body { body {
position: relative; position: relative;
} }
@@ -1587,6 +1584,7 @@ h1[id] {
text-align: center; text-align: center;
background-color: #0275d8; background-color: #0275d8;
} }
.v4-tease:focus,
.v4-tease:hover { .v4-tease:hover {
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
@@ -1594,7 +1592,7 @@ h1[id] {
} }
/* Nullify ill-advised printing of hrefs; see #18711 */ /* Nullify ill-advised printing of hrefs; see #18711 */
@media print { @media print {
a[href]::after { a[href]:after {
content: "" !important; content: "" !important;
} }
} }
File diff suppressed because one or more lines are too long
+5 -5
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
/*! /*!
* IE10 viewport hack for Surface/desktop Windows 8 bug * IE10 viewport hack for Surface/desktop Windows 8 bug
* Copyright 2014-2015 Twitter, Inc. * Copyright 2014-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/ */
@-ms-viewport { @-ms-viewport {
+16 -75
View File
File diff suppressed because one or more lines are too long
+12 -22
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
File diff suppressed because one or more lines are too long
+2 -9
View File
@@ -1,15 +1,8 @@
/* stylelint-disable selector-no-qualifying-type, selector-max-compound-selectors */
/*! /*!
* Bootstrap v3.4.0 (http://getbootstrap.com) * Bootstrap v3.4.0 (https://getbootstrap.com/)
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/ */
/* stylelint-disable value-keyword-case */
/* stylelint-disable font-family-name-quotes, font-family-no-missing-generic-family-keyword */
/* stylelint-disable media-feature-name-no-vendor-prefix, media-feature-parentheses-space-inside, media-feature-name-no-unknown, indentation, at-rule-name-space-after */
/* stylelint-disable declaration-no-important */
/* stylelint-disable indentation, property-no-vendor-prefix, selector-no-vendor-prefix */
/* stylelint-disable value-no-vendor-prefix, selector-max-id */
.btn-default, .btn-default,
.btn-primary, .btn-primary,
.btn-success, .btn-success,
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+71 -55
View File
@@ -1,5 +1,5 @@
/*! /*!
* Bootstrap v3.4.0 (http://getbootstrap.com) * Bootstrap v3.4.0 (https://getbootstrap.com/)
* Copyright 2011-2018 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under the MIT license * Licensed under the MIT license
*/ */
@@ -18,9 +18,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: transition.js v3.4.0 * Bootstrap: transition.js v3.4.0
* http://getbootstrap.com/javascript/#transitions * https://getbootstrap.com/docs/3.4/javascript/#transitions
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -28,7 +28,7 @@ if (typeof jQuery === 'undefined') {
+function ($) { +function ($) {
'use strict'; 'use strict';
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) // CSS TRANSITION SUPPORT (Shoutout: https://modernizr.com/)
// ============================================================ // ============================================================
function transitionEnd() { function transitionEnd() {
@@ -50,7 +50,7 @@ if (typeof jQuery === 'undefined') {
return false // explicit for ie8 ( ._.) return false // explicit for ie8 ( ._.)
} }
// http://blog.alexmaccaw.com/css-transitions // https://blog.alexmaccaw.com/css-transitions
$.fn.emulateTransitionEnd = function (duration) { $.fn.emulateTransitionEnd = function (duration) {
var called = false var called = false
var $el = this var $el = this
@@ -78,9 +78,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: alert.js v3.4.0 * Bootstrap: alert.js v3.4.0
* http://getbootstrap.com/javascript/#alerts * https://getbootstrap.com/docs/3.4/javascript/#alerts
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -174,9 +174,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: button.js v3.4.0 * Bootstrap: button.js v3.4.0
* http://getbootstrap.com/javascript/#buttons * https://getbootstrap.com/docs/3.4/javascript/#buttons
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -300,9 +300,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: carousel.js v3.4.0 * Bootstrap: carousel.js v3.4.0
* http://getbootstrap.com/javascript/#carousel * https://getbootstrap.com/docs/3.4/javascript/#carousel
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -547,9 +547,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: collapse.js v3.4.0 * Bootstrap: collapse.js v3.4.0
* http://getbootstrap.com/javascript/#collapse * https://getbootstrap.com/docs/3.4/javascript/#collapse
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -760,9 +760,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: dropdown.js v3.4.0 * Bootstrap: dropdown.js v3.4.0
* http://getbootstrap.com/javascript/#dropdowns * https://getbootstrap.com/docs/3.4/javascript/#dropdowns
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -926,9 +926,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: modal.js v3.4.0 * Bootstrap: modal.js v3.4.0
* http://getbootstrap.com/javascript/#modals * https://getbootstrap.com/docs/3.4/javascript/#modals
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -940,15 +940,16 @@ if (typeof jQuery === 'undefined') {
// ====================== // ======================
var Modal = function (element, options) { var Modal = function (element, options) {
this.options = options this.options = options
this.$body = $(document.body) this.$body = $(document.body)
this.$element = $(element) this.$element = $(element)
this.$dialog = this.$element.find('.modal-dialog') this.$dialog = this.$element.find('.modal-dialog')
this.$backdrop = null this.$backdrop = null
this.isShown = null this.isShown = null
this.originalBodyPad = null this.originalBodyPad = null
this.scrollbarWidth = 0 this.scrollbarWidth = 0
this.ignoreBackdropClick = false this.ignoreBackdropClick = false
this.fixedContent = '.navbar-fixed-top, .navbar-fixed-bottom'
if (this.options.remote) { if (this.options.remote) {
this.$element this.$element
@@ -959,7 +960,7 @@ if (typeof jQuery === 'undefined') {
} }
} }
Modal.VERSION = '3.4.0' Modal.VERSION = '3.4.0'
Modal.TRANSITION_DURATION = 300 Modal.TRANSITION_DURATION = 300
Modal.BACKDROP_TRANSITION_DURATION = 150 Modal.BACKDROP_TRANSITION_DURATION = 150
@@ -976,7 +977,7 @@ if (typeof jQuery === 'undefined') {
Modal.prototype.show = function (_relatedTarget) { Modal.prototype.show = function (_relatedTarget) {
var that = this var that = this
var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget }) var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
this.$element.trigger(e) this.$element.trigger(e)
@@ -1067,8 +1068,8 @@ if (typeof jQuery === 'undefined') {
.off('focusin.bs.modal') // guard against infinite focus loop .off('focusin.bs.modal') // guard against infinite focus loop
.on('focusin.bs.modal', $.proxy(function (e) { .on('focusin.bs.modal', $.proxy(function (e) {
if (document !== e.target && if (document !== e.target &&
this.$element[0] !== e.target && this.$element[0] !== e.target &&
!this.$element.has(e.target).length) { !this.$element.has(e.target).length) {
this.$element.trigger('focus') this.$element.trigger('focus')
} }
}, this)) }, this))
@@ -1170,7 +1171,7 @@ if (typeof jQuery === 'undefined') {
var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight
this.$element.css({ this.$element.css({
paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '', paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : '' paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''
}) })
} }
@@ -1195,11 +1196,26 @@ if (typeof jQuery === 'undefined') {
Modal.prototype.setScrollbar = function () { Modal.prototype.setScrollbar = function () {
var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10) var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
this.originalBodyPad = document.body.style.paddingRight || '' this.originalBodyPad = document.body.style.paddingRight || ''
if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth) var scrollbarWidth = this.scrollbarWidth
if (this.bodyIsOverflowing) {
this.$body.css('padding-right', bodyPad + scrollbarWidth)
$(this.fixedContent).each(function (index, element) {
var actualPadding = element.style.paddingRight
var calculatedPadding = $(element).css('padding-right')
$(element)
.data('padding-right', actualPadding)
.css('padding-right', parseFloat(calculatedPadding) + scrollbarWidth + 'px')
})
}
} }
Modal.prototype.resetScrollbar = function () { Modal.prototype.resetScrollbar = function () {
this.$body.css('padding-right', this.originalBodyPad) this.$body.css('padding-right', this.originalBodyPad)
$(this.fixedContent).each(function (index, element) {
var padding = $(element).data('padding-right')
$(element).removeData('padding-right')
element.style.paddingRight = padding ? padding : ''
})
} }
Modal.prototype.measureScrollbar = function () { // thx walsh Modal.prototype.measureScrollbar = function () { // thx walsh
@@ -1217,8 +1233,8 @@ if (typeof jQuery === 'undefined') {
function Plugin(option, _relatedTarget) { function Plugin(option, _relatedTarget) {
return this.each(function () { return this.each(function () {
var $this = $(this) var $this = $(this)
var data = $this.data('bs.modal') var data = $this.data('bs.modal')
var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option) var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
if (!data) $this.data('bs.modal', (data = new Modal(this, options))) if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
@@ -1229,7 +1245,7 @@ if (typeof jQuery === 'undefined') {
var old = $.fn.modal var old = $.fn.modal
$.fn.modal = Plugin $.fn.modal = Plugin
$.fn.modal.Constructor = Modal $.fn.modal.Constructor = Modal
@@ -1246,13 +1262,13 @@ if (typeof jQuery === 'undefined') {
// ============== // ==============
$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) { $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
var $this = $(this) var $this = $(this)
var href = $this.attr('href') var href = $this.attr('href')
var target = $this.attr('data-target') || var target = $this.attr('data-target') ||
(href && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7 (href && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
var $target = $(document).find(target) var $target = $(document).find(target)
var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data()) var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
if ($this.is('a')) e.preventDefault() if ($this.is('a')) e.preventDefault()
@@ -1269,10 +1285,10 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: tooltip.js v3.4.0 * Bootstrap: tooltip.js v3.4.0
* http://getbootstrap.com/javascript/#tooltip * https://getbootstrap.com/docs/3.4/javascript/#tooltip
* Inspired by the original jQuery.tipsy by Jason Frame * Inspired by the original jQuery.tipsy by Jason Frame
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -1790,9 +1806,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: popover.js v3.4.0 * Bootstrap: popover.js v3.4.0
* http://getbootstrap.com/javascript/#popovers * https://getbootstrap.com/docs/3.4/javascript/#popovers
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -1857,8 +1873,8 @@ if (typeof jQuery === 'undefined') {
return $e.attr('data-content') return $e.attr('data-content')
|| (typeof o.content == 'function' ? || (typeof o.content == 'function' ?
o.content.call($e[0]) : o.content.call($e[0]) :
o.content) o.content)
} }
Popover.prototype.arrow = function () { Popover.prototype.arrow = function () {
@@ -1899,9 +1915,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: scrollspy.js v3.4.0 * Bootstrap: scrollspy.js v3.4.0
* http://getbootstrap.com/javascript/#scrollspy * https://getbootstrap.com/docs/3.4/javascript/#scrollspy
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -2072,9 +2088,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: tab.js v3.4.0 * Bootstrap: tab.js v3.4.0
* http://getbootstrap.com/javascript/#tabs * https://getbootstrap.com/docs/3.4/javascript/#tabs
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
@@ -2145,15 +2161,15 @@ if (typeof jQuery === 'undefined') {
$active $active
.removeClass('active') .removeClass('active')
.find('> .dropdown-menu > .active') .find('> .dropdown-menu > .active')
.removeClass('active') .removeClass('active')
.end() .end()
.find('[data-toggle="tab"]') .find('[data-toggle="tab"]')
.attr('aria-expanded', false) .attr('aria-expanded', false)
element element
.addClass('active') .addClass('active')
.find('[data-toggle="tab"]') .find('[data-toggle="tab"]')
.attr('aria-expanded', true) .attr('aria-expanded', true)
if (transition) { if (transition) {
element[0].offsetWidth // reflow for transition element[0].offsetWidth // reflow for transition
@@ -2165,10 +2181,10 @@ if (typeof jQuery === 'undefined') {
if (element.parent('.dropdown-menu').length) { if (element.parent('.dropdown-menu').length) {
element element
.closest('li.dropdown') .closest('li.dropdown')
.addClass('active') .addClass('active')
.end() .end()
.find('[data-toggle="tab"]') .find('[data-toggle="tab"]')
.attr('aria-expanded', true) .attr('aria-expanded', true)
} }
callback && callback() callback && callback()
@@ -2228,9 +2244,9 @@ if (typeof jQuery === 'undefined') {
/* ======================================================================== /* ========================================================================
* Bootstrap: affix.js v3.4.0 * Bootstrap: affix.js v3.4.0
* http://getbootstrap.com/javascript/#affix * https://getbootstrap.com/docs/3.4/javascript/#affix
* ======================================================================== * ========================================================================
* Copyright 2011-2016 Twitter, Inc. * Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */ * ======================================================================== */
+6 -1
View File
File diff suppressed because one or more lines are too long