bootstrap 4.5.0 → 5.0.0.alpha3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/README.md +5 -2
  4. data/assets/javascripts/bootstrap-sprockets.js +12 -9
  5. data/assets/javascripts/bootstrap.js +1852 -1266
  6. data/assets/javascripts/bootstrap.min.js +3 -3
  7. data/assets/javascripts/bootstrap/alert.js +149 -69
  8. data/assets/javascripts/bootstrap/button.js +71 -141
  9. data/assets/javascripts/bootstrap/carousel.js +291 -192
  10. data/assets/javascripts/bootstrap/collapse.js +285 -161
  11. data/assets/javascripts/bootstrap/dom/data.js +81 -0
  12. data/assets/javascripts/bootstrap/dom/event-handler.js +307 -0
  13. data/assets/javascripts/bootstrap/dom/manipulator.js +85 -0
  14. data/assets/javascripts/bootstrap/dom/selector-engine.js +98 -0
  15. data/assets/javascripts/bootstrap/dropdown.js +240 -218
  16. data/assets/javascripts/bootstrap/modal.js +342 -234
  17. data/assets/javascripts/bootstrap/popover.js +82 -106
  18. data/assets/javascripts/bootstrap/scrollspy.js +154 -114
  19. data/assets/javascripts/bootstrap/tab.js +166 -80
  20. data/assets/javascripts/bootstrap/toast.js +171 -113
  21. data/assets/javascripts/bootstrap/tooltip.js +351 -219
  22. data/assets/stylesheets/_bootstrap-grid.scss +52 -16
  23. data/assets/stylesheets/_bootstrap-reboot.scss +5 -2
  24. data/assets/stylesheets/_bootstrap.scss +16 -9
  25. data/assets/stylesheets/bootstrap/_accordion.scss +125 -0
  26. data/assets/stylesheets/bootstrap/_alert.scss +15 -9
  27. data/assets/stylesheets/bootstrap/_badge.scss +2 -27
  28. data/assets/stylesheets/bootstrap/_breadcrumb.scss +3 -19
  29. data/assets/stylesheets/bootstrap/_button-group.scss +16 -40
  30. data/assets/stylesheets/bootstrap/_buttons.scss +27 -60
  31. data/assets/stylesheets/bootstrap/_card.scss +30 -97
  32. data/assets/stylesheets/bootstrap/_carousel.scss +30 -15
  33. data/assets/stylesheets/bootstrap/_close.scss +30 -30
  34. data/assets/stylesheets/bootstrap/_containers.scss +41 -0
  35. data/assets/stylesheets/bootstrap/_dropdown.scss +52 -8
  36. data/assets/stylesheets/bootstrap/_forms.scss +9 -347
  37. data/assets/stylesheets/bootstrap/_functions.scss +88 -23
  38. data/assets/stylesheets/bootstrap/_grid.scss +3 -58
  39. data/assets/stylesheets/bootstrap/_helpers.scss +7 -0
  40. data/assets/stylesheets/bootstrap/_list-group.scss +14 -5
  41. data/assets/stylesheets/bootstrap/_mixins.scss +7 -13
  42. data/assets/stylesheets/bootstrap/_modal.scss +41 -47
  43. data/assets/stylesheets/bootstrap/_nav.scss +14 -8
  44. data/assets/stylesheets/bootstrap/_navbar.scss +43 -74
  45. data/assets/stylesheets/bootstrap/_pagination.scss +10 -20
  46. data/assets/stylesheets/bootstrap/_popover.scss +6 -6
  47. data/assets/stylesheets/bootstrap/_progress.scss +3 -5
  48. data/assets/stylesheets/bootstrap/_reboot.scss +310 -171
  49. data/assets/stylesheets/bootstrap/_root.scss +5 -9
  50. data/assets/stylesheets/bootstrap/_spinners.scss +13 -4
  51. data/assets/stylesheets/bootstrap/_tables.scss +80 -114
  52. data/assets/stylesheets/bootstrap/_toasts.scss +6 -2
  53. data/assets/stylesheets/bootstrap/_tooltip.scss +5 -5
  54. data/assets/stylesheets/bootstrap/_transitions.scss +0 -1
  55. data/assets/stylesheets/bootstrap/_type.scss +38 -59
  56. data/assets/stylesheets/bootstrap/_utilities.scss +545 -18
  57. data/assets/stylesheets/bootstrap/_variables.scss +653 -469
  58. data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +18 -0
  59. data/assets/stylesheets/bootstrap/forms/_floating-labels.scss +61 -0
  60. data/assets/stylesheets/bootstrap/forms/_form-check.scss +151 -0
  61. data/assets/stylesheets/bootstrap/forms/_form-control.scss +223 -0
  62. data/assets/stylesheets/bootstrap/forms/_form-range.scss +91 -0
  63. data/assets/stylesheets/bootstrap/forms/_form-select.scss +68 -0
  64. data/assets/stylesheets/bootstrap/forms/_form-text.scss +11 -0
  65. data/assets/stylesheets/bootstrap/forms/_input-group.scss +121 -0
  66. data/assets/stylesheets/bootstrap/forms/_labels.scss +36 -0
  67. data/assets/stylesheets/bootstrap/forms/_validation.scss +12 -0
  68. data/assets/stylesheets/bootstrap/{utilities → helpers}/_clearfix.scss +0 -0
  69. data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +12 -0
  70. data/assets/stylesheets/bootstrap/helpers/_position.scss +30 -0
  71. data/assets/stylesheets/bootstrap/helpers/_ratio.scss +26 -0
  72. data/assets/stylesheets/bootstrap/helpers/_stretched-link.scss +15 -0
  73. data/assets/stylesheets/bootstrap/helpers/_text-truncation.scss +7 -0
  74. data/assets/stylesheets/bootstrap/helpers/_visually-hidden.scss +8 -0
  75. data/assets/stylesheets/bootstrap/mixins/_alert.scss +1 -5
  76. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +9 -9
  77. data/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +7 -9
  78. data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +14 -10
  79. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +65 -47
  80. data/assets/stylesheets/bootstrap/mixins/_caret.scss +4 -4
  81. data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +2 -0
  82. data/assets/stylesheets/bootstrap/mixins/_container.scss +11 -0
  83. data/assets/stylesheets/bootstrap/mixins/_forms.scss +17 -77
  84. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +9 -11
  85. data/assets/stylesheets/bootstrap/mixins/_grid.scss +84 -33
  86. data/assets/stylesheets/bootstrap/mixins/_image.scss +1 -21
  87. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +3 -2
  88. data/assets/stylesheets/bootstrap/mixins/_lists.scss +1 -1
  89. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +15 -8
  90. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +2 -2
  91. data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +21 -0
  92. data/assets/stylesheets/bootstrap/mixins/_transition.scss +2 -2
  93. data/assets/stylesheets/bootstrap/mixins/_utilities.scss +49 -0
  94. data/assets/stylesheets/bootstrap/mixins/_visually-hidden.scss +28 -0
  95. data/assets/stylesheets/bootstrap/utilities/_api.scss +47 -0
  96. data/assets/stylesheets/bootstrap/vendor/_rfs.scss +234 -126
  97. data/lib/bootstrap/version.rb +2 -2
  98. data/tasks/updater/js.rb +3 -3
  99. metadata +33 -41
  100. data/assets/javascripts/bootstrap/util.js +0 -192
  101. data/assets/stylesheets/bootstrap/_code.scss +0 -48
  102. data/assets/stylesheets/bootstrap/_custom-forms.scss +0 -522
  103. data/assets/stylesheets/bootstrap/_input-group.scss +0 -192
  104. data/assets/stylesheets/bootstrap/_jumbotron.scss +0 -17
  105. data/assets/stylesheets/bootstrap/_media.scss +0 -8
  106. data/assets/stylesheets/bootstrap/_print.scss +0 -141
  107. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -23
  108. data/assets/stylesheets/bootstrap/mixins/_badge.scss +0 -17
  109. data/assets/stylesheets/bootstrap/mixins/_float.scss +0 -14
  110. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -81
  111. data/assets/stylesheets/bootstrap/mixins/_hover.scss +0 -37
  112. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -11
  113. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +0 -34
  114. data/assets/stylesheets/bootstrap/mixins/_size.scss +0 -7
  115. data/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -39
  116. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -17
  117. data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +0 -11
  118. data/assets/stylesheets/bootstrap/mixins/_visibility.scss +0 -8
  119. data/assets/stylesheets/bootstrap/utilities/_align.scss +0 -8
  120. data/assets/stylesheets/bootstrap/utilities/_background.scss +0 -19
  121. data/assets/stylesheets/bootstrap/utilities/_borders.scss +0 -75
  122. data/assets/stylesheets/bootstrap/utilities/_display.scss +0 -26
  123. data/assets/stylesheets/bootstrap/utilities/_embed.scss +0 -39
  124. data/assets/stylesheets/bootstrap/utilities/_flex.scss +0 -51
  125. data/assets/stylesheets/bootstrap/utilities/_float.scss +0 -11
  126. data/assets/stylesheets/bootstrap/utilities/_interactions.scss +0 -5
  127. data/assets/stylesheets/bootstrap/utilities/_overflow.scss +0 -5
  128. data/assets/stylesheets/bootstrap/utilities/_position.scss +0 -32
  129. data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +0 -11
  130. data/assets/stylesheets/bootstrap/utilities/_shadows.scss +0 -6
  131. data/assets/stylesheets/bootstrap/utilities/_sizing.scss +0 -20
  132. data/assets/stylesheets/bootstrap/utilities/_spacing.scss +0 -73
  133. data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +0 -19
  134. data/assets/stylesheets/bootstrap/utilities/_text.scss +0 -71
  135. data/assets/stylesheets/bootstrap/utilities/_visibility.scss +0 -13
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.0
4
+ version: 5.0.0.alpha3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twitter, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-18 00:00:00.000000000 Z
11
+ date: 2020-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: popper_js
@@ -247,6 +247,10 @@ files:
247
247
  - assets/javascripts/bootstrap/button.js
248
248
  - assets/javascripts/bootstrap/carousel.js
249
249
  - assets/javascripts/bootstrap/collapse.js
250
+ - assets/javascripts/bootstrap/dom/data.js
251
+ - assets/javascripts/bootstrap/dom/event-handler.js
252
+ - assets/javascripts/bootstrap/dom/manipulator.js
253
+ - assets/javascripts/bootstrap/dom/selector-engine.js
250
254
  - assets/javascripts/bootstrap/dropdown.js
251
255
  - assets/javascripts/bootstrap/modal.js
252
256
  - assets/javascripts/bootstrap/popover.js
@@ -254,10 +258,10 @@ files:
254
258
  - assets/javascripts/bootstrap/tab.js
255
259
  - assets/javascripts/bootstrap/toast.js
256
260
  - assets/javascripts/bootstrap/tooltip.js
257
- - assets/javascripts/bootstrap/util.js
258
261
  - assets/stylesheets/_bootstrap-grid.scss
259
262
  - assets/stylesheets/_bootstrap-reboot.scss
260
263
  - assets/stylesheets/_bootstrap.scss
264
+ - assets/stylesheets/bootstrap/_accordion.scss
261
265
  - assets/stylesheets/bootstrap/_alert.scss
262
266
  - assets/stylesheets/bootstrap/_badge.scss
263
267
  - assets/stylesheets/bootstrap/_breadcrumb.scss
@@ -266,24 +270,20 @@ files:
266
270
  - assets/stylesheets/bootstrap/_card.scss
267
271
  - assets/stylesheets/bootstrap/_carousel.scss
268
272
  - assets/stylesheets/bootstrap/_close.scss
269
- - assets/stylesheets/bootstrap/_code.scss
270
- - assets/stylesheets/bootstrap/_custom-forms.scss
273
+ - assets/stylesheets/bootstrap/_containers.scss
271
274
  - assets/stylesheets/bootstrap/_dropdown.scss
272
275
  - assets/stylesheets/bootstrap/_forms.scss
273
276
  - assets/stylesheets/bootstrap/_functions.scss
274
277
  - assets/stylesheets/bootstrap/_grid.scss
278
+ - assets/stylesheets/bootstrap/_helpers.scss
275
279
  - assets/stylesheets/bootstrap/_images.scss
276
- - assets/stylesheets/bootstrap/_input-group.scss
277
- - assets/stylesheets/bootstrap/_jumbotron.scss
278
280
  - assets/stylesheets/bootstrap/_list-group.scss
279
- - assets/stylesheets/bootstrap/_media.scss
280
281
  - assets/stylesheets/bootstrap/_mixins.scss
281
282
  - assets/stylesheets/bootstrap/_modal.scss
282
283
  - assets/stylesheets/bootstrap/_nav.scss
283
284
  - assets/stylesheets/bootstrap/_navbar.scss
284
285
  - assets/stylesheets/bootstrap/_pagination.scss
285
286
  - assets/stylesheets/bootstrap/_popover.scss
286
- - assets/stylesheets/bootstrap/_print.scss
287
287
  - assets/stylesheets/bootstrap/_progress.scss
288
288
  - assets/stylesheets/bootstrap/_reboot.scss
289
289
  - assets/stylesheets/bootstrap/_root.scss
@@ -295,55 +295,47 @@ files:
295
295
  - assets/stylesheets/bootstrap/_type.scss
296
296
  - assets/stylesheets/bootstrap/_utilities.scss
297
297
  - assets/stylesheets/bootstrap/_variables.scss
298
+ - assets/stylesheets/bootstrap/bootstrap-utilities.scss
299
+ - assets/stylesheets/bootstrap/forms/_floating-labels.scss
300
+ - assets/stylesheets/bootstrap/forms/_form-check.scss
301
+ - assets/stylesheets/bootstrap/forms/_form-control.scss
302
+ - assets/stylesheets/bootstrap/forms/_form-range.scss
303
+ - assets/stylesheets/bootstrap/forms/_form-select.scss
304
+ - assets/stylesheets/bootstrap/forms/_form-text.scss
305
+ - assets/stylesheets/bootstrap/forms/_input-group.scss
306
+ - assets/stylesheets/bootstrap/forms/_labels.scss
307
+ - assets/stylesheets/bootstrap/forms/_validation.scss
308
+ - assets/stylesheets/bootstrap/helpers/_clearfix.scss
309
+ - assets/stylesheets/bootstrap/helpers/_colored-links.scss
310
+ - assets/stylesheets/bootstrap/helpers/_position.scss
311
+ - assets/stylesheets/bootstrap/helpers/_ratio.scss
312
+ - assets/stylesheets/bootstrap/helpers/_stretched-link.scss
313
+ - assets/stylesheets/bootstrap/helpers/_text-truncation.scss
314
+ - assets/stylesheets/bootstrap/helpers/_visually-hidden.scss
298
315
  - assets/stylesheets/bootstrap/mixins/_alert.scss
299
- - assets/stylesheets/bootstrap/mixins/_background-variant.scss
300
- - assets/stylesheets/bootstrap/mixins/_badge.scss
301
316
  - assets/stylesheets/bootstrap/mixins/_border-radius.scss
302
317
  - assets/stylesheets/bootstrap/mixins/_box-shadow.scss
303
318
  - assets/stylesheets/bootstrap/mixins/_breakpoints.scss
304
319
  - assets/stylesheets/bootstrap/mixins/_buttons.scss
305
320
  - assets/stylesheets/bootstrap/mixins/_caret.scss
306
321
  - assets/stylesheets/bootstrap/mixins/_clearfix.scss
322
+ - assets/stylesheets/bootstrap/mixins/_container.scss
307
323
  - assets/stylesheets/bootstrap/mixins/_deprecate.scss
308
- - assets/stylesheets/bootstrap/mixins/_float.scss
309
324
  - assets/stylesheets/bootstrap/mixins/_forms.scss
310
325
  - assets/stylesheets/bootstrap/mixins/_gradients.scss
311
- - assets/stylesheets/bootstrap/mixins/_grid-framework.scss
312
326
  - assets/stylesheets/bootstrap/mixins/_grid.scss
313
- - assets/stylesheets/bootstrap/mixins/_hover.scss
314
327
  - assets/stylesheets/bootstrap/mixins/_image.scss
315
328
  - assets/stylesheets/bootstrap/mixins/_list-group.scss
316
329
  - assets/stylesheets/bootstrap/mixins/_lists.scss
317
- - assets/stylesheets/bootstrap/mixins/_nav-divider.scss
318
330
  - assets/stylesheets/bootstrap/mixins/_pagination.scss
319
331
  - assets/stylesheets/bootstrap/mixins/_reset-text.scss
320
332
  - assets/stylesheets/bootstrap/mixins/_resize.scss
321
- - assets/stylesheets/bootstrap/mixins/_screen-reader.scss
322
- - assets/stylesheets/bootstrap/mixins/_size.scss
323
- - assets/stylesheets/bootstrap/mixins/_table-row.scss
324
- - assets/stylesheets/bootstrap/mixins/_text-emphasis.scss
325
- - assets/stylesheets/bootstrap/mixins/_text-hide.scss
333
+ - assets/stylesheets/bootstrap/mixins/_table-variants.scss
326
334
  - assets/stylesheets/bootstrap/mixins/_text-truncate.scss
327
335
  - assets/stylesheets/bootstrap/mixins/_transition.scss
328
- - assets/stylesheets/bootstrap/mixins/_visibility.scss
329
- - assets/stylesheets/bootstrap/utilities/_align.scss
330
- - assets/stylesheets/bootstrap/utilities/_background.scss
331
- - assets/stylesheets/bootstrap/utilities/_borders.scss
332
- - assets/stylesheets/bootstrap/utilities/_clearfix.scss
333
- - assets/stylesheets/bootstrap/utilities/_display.scss
334
- - assets/stylesheets/bootstrap/utilities/_embed.scss
335
- - assets/stylesheets/bootstrap/utilities/_flex.scss
336
- - assets/stylesheets/bootstrap/utilities/_float.scss
337
- - assets/stylesheets/bootstrap/utilities/_interactions.scss
338
- - assets/stylesheets/bootstrap/utilities/_overflow.scss
339
- - assets/stylesheets/bootstrap/utilities/_position.scss
340
- - assets/stylesheets/bootstrap/utilities/_screenreaders.scss
341
- - assets/stylesheets/bootstrap/utilities/_shadows.scss
342
- - assets/stylesheets/bootstrap/utilities/_sizing.scss
343
- - assets/stylesheets/bootstrap/utilities/_spacing.scss
344
- - assets/stylesheets/bootstrap/utilities/_stretched-link.scss
345
- - assets/stylesheets/bootstrap/utilities/_text.scss
346
- - assets/stylesheets/bootstrap/utilities/_visibility.scss
336
+ - assets/stylesheets/bootstrap/mixins/_utilities.scss
337
+ - assets/stylesheets/bootstrap/mixins/_visually-hidden.scss
338
+ - assets/stylesheets/bootstrap/utilities/_api.scss
347
339
  - assets/stylesheets/bootstrap/vendor/_rfs.scss
348
340
  - bootstrap.gemspec
349
341
  - lib/bootstrap.rb
@@ -408,9 +400,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
408
400
  version: 2.3.3
409
401
  required_rubygems_version: !ruby/object:Gem::Requirement
410
402
  requirements:
411
- - - ">="
403
+ - - ">"
412
404
  - !ruby/object:Gem::Version
413
- version: '0'
405
+ version: 1.3.1
414
406
  requirements: []
415
407
  rubygems_version: 3.1.2
416
408
  signing_key:
@@ -1,192 +0,0 @@
1
- /*!
2
- * Bootstrap util.js v4.5.0 (https://getbootstrap.com/)
3
- * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
- */
6
- (function (global, factory) {
7
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) :
8
- typeof define === 'function' && define.amd ? define(['jquery'], factory) :
9
- (global = global || self, global.Util = factory(global.jQuery));
10
- }(this, (function ($) { 'use strict';
11
-
12
- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
13
-
14
- /**
15
- * --------------------------------------------------------------------------
16
- * Bootstrap (v4.5.0): util.js
17
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
18
- * --------------------------------------------------------------------------
19
- */
20
- /**
21
- * ------------------------------------------------------------------------
22
- * Private TransitionEnd Helpers
23
- * ------------------------------------------------------------------------
24
- */
25
-
26
- var TRANSITION_END = 'transitionend';
27
- var MAX_UID = 1000000;
28
- var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
29
-
30
- function toType(obj) {
31
- if (obj === null || typeof obj === 'undefined') {
32
- return "" + obj;
33
- }
34
-
35
- return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
36
- }
37
-
38
- function getSpecialTransitionEndEvent() {
39
- return {
40
- bindType: TRANSITION_END,
41
- delegateType: TRANSITION_END,
42
- handle: function handle(event) {
43
- if ($(event.target).is(this)) {
44
- return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
45
- }
46
-
47
- return undefined;
48
- }
49
- };
50
- }
51
-
52
- function transitionEndEmulator(duration) {
53
- var _this = this;
54
-
55
- var called = false;
56
- $(this).one(Util.TRANSITION_END, function () {
57
- called = true;
58
- });
59
- setTimeout(function () {
60
- if (!called) {
61
- Util.triggerTransitionEnd(_this);
62
- }
63
- }, duration);
64
- return this;
65
- }
66
-
67
- function setTransitionEndSupport() {
68
- $.fn.emulateTransitionEnd = transitionEndEmulator;
69
- $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
70
- }
71
- /**
72
- * --------------------------------------------------------------------------
73
- * Public Util Api
74
- * --------------------------------------------------------------------------
75
- */
76
-
77
-
78
- var Util = {
79
- TRANSITION_END: 'bsTransitionEnd',
80
- getUID: function getUID(prefix) {
81
- do {
82
- // eslint-disable-next-line no-bitwise
83
- prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
84
- } while (document.getElementById(prefix));
85
-
86
- return prefix;
87
- },
88
- getSelectorFromElement: function getSelectorFromElement(element) {
89
- var selector = element.getAttribute('data-target');
90
-
91
- if (!selector || selector === '#') {
92
- var hrefAttr = element.getAttribute('href');
93
- selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
94
- }
95
-
96
- try {
97
- return document.querySelector(selector) ? selector : null;
98
- } catch (err) {
99
- return null;
100
- }
101
- },
102
- getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
103
- if (!element) {
104
- return 0;
105
- } // Get transition-duration of the element
106
-
107
-
108
- var transitionDuration = $(element).css('transition-duration');
109
- var transitionDelay = $(element).css('transition-delay');
110
- var floatTransitionDuration = parseFloat(transitionDuration);
111
- var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
112
-
113
- if (!floatTransitionDuration && !floatTransitionDelay) {
114
- return 0;
115
- } // If multiple durations are defined, take the first
116
-
117
-
118
- transitionDuration = transitionDuration.split(',')[0];
119
- transitionDelay = transitionDelay.split(',')[0];
120
- return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
121
- },
122
- reflow: function reflow(element) {
123
- return element.offsetHeight;
124
- },
125
- triggerTransitionEnd: function triggerTransitionEnd(element) {
126
- $(element).trigger(TRANSITION_END);
127
- },
128
- // TODO: Remove in v5
129
- supportsTransitionEnd: function supportsTransitionEnd() {
130
- return Boolean(TRANSITION_END);
131
- },
132
- isElement: function isElement(obj) {
133
- return (obj[0] || obj).nodeType;
134
- },
135
- typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
136
- for (var property in configTypes) {
137
- if (Object.prototype.hasOwnProperty.call(configTypes, property)) {
138
- var expectedTypes = configTypes[property];
139
- var value = config[property];
140
- var valueType = value && Util.isElement(value) ? 'element' : toType(value);
141
-
142
- if (!new RegExp(expectedTypes).test(valueType)) {
143
- throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
144
- }
145
- }
146
- }
147
- },
148
- findShadowRoot: function findShadowRoot(element) {
149
- if (!document.documentElement.attachShadow) {
150
- return null;
151
- } // Can find the shadow root otherwise it'll return the document
152
-
153
-
154
- if (typeof element.getRootNode === 'function') {
155
- var root = element.getRootNode();
156
- return root instanceof ShadowRoot ? root : null;
157
- }
158
-
159
- if (element instanceof ShadowRoot) {
160
- return element;
161
- } // when we don't find a shadow root
162
-
163
-
164
- if (!element.parentNode) {
165
- return null;
166
- }
167
-
168
- return Util.findShadowRoot(element.parentNode);
169
- },
170
- jQueryDetection: function jQueryDetection() {
171
- if (typeof $ === 'undefined') {
172
- throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
173
- }
174
-
175
- var version = $.fn.jquery.split(' ')[0].split('.');
176
- var minMajor = 1;
177
- var ltMajor = 2;
178
- var minMinor = 9;
179
- var minPatch = 1;
180
- var maxMajor = 4;
181
-
182
- if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
183
- throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
184
- }
185
- }
186
- };
187
- Util.jQueryDetection();
188
- setTransitionEndSupport();
189
-
190
- return Util;
191
-
192
- })));
@@ -1,48 +0,0 @@
1
- // Inline code
2
- code {
3
- @include font-size($code-font-size);
4
- color: $code-color;
5
- word-wrap: break-word;
6
-
7
- // Streamline the style when inside anchors to avoid broken underline and more
8
- a > & {
9
- color: inherit;
10
- }
11
- }
12
-
13
- // User input typically entered via keyboard
14
- kbd {
15
- padding: $kbd-padding-y $kbd-padding-x;
16
- @include font-size($kbd-font-size);
17
- color: $kbd-color;
18
- background-color: $kbd-bg;
19
- @include border-radius($border-radius-sm);
20
- @include box-shadow($kbd-box-shadow);
21
-
22
- kbd {
23
- padding: 0;
24
- @include font-size(100%);
25
- font-weight: $nested-kbd-font-weight;
26
- @include box-shadow(none);
27
- }
28
- }
29
-
30
- // Blocks of code
31
- pre {
32
- display: block;
33
- @include font-size($code-font-size);
34
- color: $pre-color;
35
-
36
- // Account for some code outputs that place code tags in pre tags
37
- code {
38
- @include font-size(inherit);
39
- color: inherit;
40
- word-break: normal;
41
- }
42
- }
43
-
44
- // Enable scrollable blocks of code
45
- .pre-scrollable {
46
- max-height: $pre-scrollable-max-height;
47
- overflow-y: scroll;
48
- }
@@ -1,522 +0,0 @@
1
- // Embedded icons from Open Iconic.
2
- // Released under MIT and copyright 2014 Waybury.
3
- // https://useiconic.com/open
4
-
5
-
6
- // Checkboxes and radios
7
- //
8
- // Base class takes care of all the key behavioral aspects.
9
-
10
- .custom-control {
11
- position: relative;
12
- display: block;
13
- min-height: $font-size-base * $line-height-base;
14
- padding-left: $custom-control-gutter + $custom-control-indicator-size;
15
- }
16
-
17
- .custom-control-inline {
18
- display: inline-flex;
19
- margin-right: $custom-control-spacer-x;
20
- }
21
-
22
- .custom-control-input {
23
- position: absolute;
24
- left: 0;
25
- z-index: -1; // Put the input behind the label so it doesn't overlay text
26
- width: $custom-control-indicator-size;
27
- height: ($font-size-base * $line-height-base + $custom-control-indicator-size) / 2;
28
- opacity: 0;
29
-
30
- &:checked ~ .custom-control-label::before {
31
- color: $custom-control-indicator-checked-color;
32
- border-color: $custom-control-indicator-checked-border-color;
33
- @include gradient-bg($custom-control-indicator-checked-bg);
34
- @include box-shadow($custom-control-indicator-checked-box-shadow);
35
- }
36
-
37
- &:focus ~ .custom-control-label::before {
38
- // the mixin is not used here to make sure there is feedback
39
- @if $enable-shadows {
40
- box-shadow: $input-box-shadow, $input-focus-box-shadow;
41
- } @else {
42
- box-shadow: $custom-control-indicator-focus-box-shadow;
43
- }
44
- }
45
-
46
- &:focus:not(:checked) ~ .custom-control-label::before {
47
- border-color: $custom-control-indicator-focus-border-color;
48
- }
49
-
50
- &:not(:disabled):active ~ .custom-control-label::before {
51
- color: $custom-control-indicator-active-color;
52
- background-color: $custom-control-indicator-active-bg;
53
- border-color: $custom-control-indicator-active-border-color;
54
- @include box-shadow($custom-control-indicator-active-box-shadow);
55
- }
56
-
57
- // Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
58
- &[disabled],
59
- &:disabled {
60
- ~ .custom-control-label {
61
- color: $custom-control-label-disabled-color;
62
-
63
- &::before {
64
- background-color: $custom-control-indicator-disabled-bg;
65
- }
66
- }
67
- }
68
- }
69
-
70
- // Custom control indicators
71
- //
72
- // Build the custom controls out of pseudo-elements.
73
-
74
- .custom-control-label {
75
- position: relative;
76
- margin-bottom: 0;
77
- color: $custom-control-label-color;
78
- vertical-align: top;
79
- cursor: $custom-control-cursor;
80
-
81
- // Background-color and (when enabled) gradient
82
- &::before {
83
- position: absolute;
84
- top: ($font-size-base * $line-height-base - $custom-control-indicator-size) / 2;
85
- left: -($custom-control-gutter + $custom-control-indicator-size);
86
- display: block;
87
- width: $custom-control-indicator-size;
88
- height: $custom-control-indicator-size;
89
- pointer-events: none;
90
- content: "";
91
- background-color: $custom-control-indicator-bg;
92
- border: $custom-control-indicator-border-color solid $custom-control-indicator-border-width;
93
- @include box-shadow($custom-control-indicator-box-shadow);
94
- }
95
-
96
- // Foreground (icon)
97
- &::after {
98
- position: absolute;
99
- top: ($font-size-base * $line-height-base - $custom-control-indicator-size) / 2;
100
- left: -($custom-control-gutter + $custom-control-indicator-size);
101
- display: block;
102
- width: $custom-control-indicator-size;
103
- height: $custom-control-indicator-size;
104
- content: "";
105
- background: no-repeat 50% / #{$custom-control-indicator-bg-size};
106
- }
107
- }
108
-
109
-
110
- // Checkboxes
111
- //
112
- // Tweak just a few things for checkboxes.
113
-
114
- .custom-checkbox {
115
- .custom-control-label::before {
116
- @include border-radius($custom-checkbox-indicator-border-radius);
117
- }
118
-
119
- .custom-control-input:checked ~ .custom-control-label {
120
- &::after {
121
- background-image: escape-svg($custom-checkbox-indicator-icon-checked);
122
- }
123
- }
124
-
125
- .custom-control-input:indeterminate ~ .custom-control-label {
126
- &::before {
127
- border-color: $custom-checkbox-indicator-indeterminate-border-color;
128
- @include gradient-bg($custom-checkbox-indicator-indeterminate-bg);
129
- @include box-shadow($custom-checkbox-indicator-indeterminate-box-shadow);
130
- }
131
- &::after {
132
- background-image: escape-svg($custom-checkbox-indicator-icon-indeterminate);
133
- }
134
- }
135
-
136
- .custom-control-input:disabled {
137
- &:checked ~ .custom-control-label::before {
138
- background-color: $custom-control-indicator-checked-disabled-bg;
139
- }
140
- &:indeterminate ~ .custom-control-label::before {
141
- background-color: $custom-control-indicator-checked-disabled-bg;
142
- }
143
- }
144
- }
145
-
146
- // Radios
147
- //
148
- // Tweak just a few things for radios.
149
-
150
- .custom-radio {
151
- .custom-control-label::before {
152
- // stylelint-disable-next-line property-blacklist
153
- border-radius: $custom-radio-indicator-border-radius;
154
- }
155
-
156
- .custom-control-input:checked ~ .custom-control-label {
157
- &::after {
158
- background-image: escape-svg($custom-radio-indicator-icon-checked);
159
- }
160
- }
161
-
162
- .custom-control-input:disabled {
163
- &:checked ~ .custom-control-label::before {
164
- background-color: $custom-control-indicator-checked-disabled-bg;
165
- }
166
- }
167
- }
168
-
169
-
170
- // switches
171
- //
172
- // Tweak a few things for switches
173
-
174
- .custom-switch {
175
- padding-left: $custom-switch-width + $custom-control-gutter;
176
-
177
- .custom-control-label {
178
- &::before {
179
- left: -($custom-switch-width + $custom-control-gutter);
180
- width: $custom-switch-width;
181
- pointer-events: all;
182
- // stylelint-disable-next-line property-blacklist
183
- border-radius: $custom-switch-indicator-border-radius;
184
- }
185
-
186
- &::after {
187
- top: add(($font-size-base * $line-height-base - $custom-control-indicator-size) / 2, $custom-control-indicator-border-width * 2);
188
- left: add(-($custom-switch-width + $custom-control-gutter), $custom-control-indicator-border-width * 2);
189
- width: $custom-switch-indicator-size;
190
- height: $custom-switch-indicator-size;
191
- background-color: $custom-control-indicator-border-color;
192
- // stylelint-disable-next-line property-blacklist
193
- border-radius: $custom-switch-indicator-border-radius;
194
- @include transition(transform .15s ease-in-out, $custom-forms-transition);
195
- }
196
- }
197
-
198
- .custom-control-input:checked ~ .custom-control-label {
199
- &::after {
200
- background-color: $custom-control-indicator-bg;
201
- transform: translateX($custom-switch-width - $custom-control-indicator-size);
202
- }
203
- }
204
-
205
- .custom-control-input:disabled {
206
- &:checked ~ .custom-control-label::before {
207
- background-color: $custom-control-indicator-checked-disabled-bg;
208
- }
209
- }
210
- }
211
-
212
-
213
- // Select
214
- //
215
- // Replaces the browser default select with a custom one, mostly pulled from
216
- // https://primer.github.io/.
217
- //
218
-
219
- .custom-select {
220
- display: inline-block;
221
- width: 100%;
222
- height: $custom-select-height;
223
- padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x;
224
- font-family: $custom-select-font-family;
225
- @include font-size($custom-select-font-size);
226
- font-weight: $custom-select-font-weight;
227
- line-height: $custom-select-line-height;
228
- color: $custom-select-color;
229
- vertical-align: middle;
230
- background: $custom-select-bg $custom-select-background;
231
- border: $custom-select-border-width solid $custom-select-border-color;
232
- @include border-radius($custom-select-border-radius, 0);
233
- @include box-shadow($custom-select-box-shadow);
234
- appearance: none;
235
-
236
- &:focus {
237
- border-color: $custom-select-focus-border-color;
238
- outline: 0;
239
- @if $enable-shadows {
240
- @include box-shadow($custom-select-box-shadow, $custom-select-focus-box-shadow);
241
- } @else {
242
- // Avoid using mixin so we can pass custom focus shadow properly
243
- box-shadow: $custom-select-focus-box-shadow;
244
- }
245
-
246
- &::-ms-value {
247
- // For visual consistency with other platforms/browsers,
248
- // suppress the default white text on blue background highlight given to
249
- // the selected option text when the (still closed) <select> receives focus
250
- // in IE and (under certain conditions) Edge.
251
- // See https://github.com/twbs/bootstrap/issues/19398.
252
- color: $input-color;
253
- background-color: $input-bg;
254
- }
255
- }
256
-
257
- &[multiple],
258
- &[size]:not([size="1"]) {
259
- height: auto;
260
- padding-right: $custom-select-padding-x;
261
- background-image: none;
262
- }
263
-
264
- &:disabled {
265
- color: $custom-select-disabled-color;
266
- background-color: $custom-select-disabled-bg;
267
- }
268
-
269
- // Hides the default caret in IE11
270
- &::-ms-expand {
271
- display: none;
272
- }
273
-
274
- // Remove outline from select box in FF
275
- &:-moz-focusring {
276
- color: transparent;
277
- text-shadow: 0 0 0 $custom-select-color;
278
- }
279
- }
280
-
281
- .custom-select-sm {
282
- height: $custom-select-height-sm;
283
- padding-top: $custom-select-padding-y-sm;
284
- padding-bottom: $custom-select-padding-y-sm;
285
- padding-left: $custom-select-padding-x-sm;
286
- @include font-size($custom-select-font-size-sm);
287
- }
288
-
289
- .custom-select-lg {
290
- height: $custom-select-height-lg;
291
- padding-top: $custom-select-padding-y-lg;
292
- padding-bottom: $custom-select-padding-y-lg;
293
- padding-left: $custom-select-padding-x-lg;
294
- @include font-size($custom-select-font-size-lg);
295
- }
296
-
297
-
298
- // File
299
- //
300
- // Custom file input.
301
-
302
- .custom-file {
303
- position: relative;
304
- display: inline-block;
305
- width: 100%;
306
- height: $custom-file-height;
307
- margin-bottom: 0;
308
- }
309
-
310
- .custom-file-input {
311
- position: relative;
312
- z-index: 2;
313
- width: 100%;
314
- height: $custom-file-height;
315
- margin: 0;
316
- opacity: 0;
317
-
318
- &:focus ~ .custom-file-label {
319
- border-color: $custom-file-focus-border-color;
320
- box-shadow: $custom-file-focus-box-shadow;
321
- }
322
-
323
- // Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
324
- &[disabled] ~ .custom-file-label,
325
- &:disabled ~ .custom-file-label {
326
- background-color: $custom-file-disabled-bg;
327
- }
328
-
329
- @each $lang, $value in $custom-file-text {
330
- &:lang(#{$lang}) ~ .custom-file-label::after {
331
- content: $value;
332
- }
333
- }
334
-
335
- ~ .custom-file-label[data-browse]::after {
336
- content: attr(data-browse);
337
- }
338
- }
339
-
340
- .custom-file-label {
341
- position: absolute;
342
- top: 0;
343
- right: 0;
344
- left: 0;
345
- z-index: 1;
346
- height: $custom-file-height;
347
- padding: $custom-file-padding-y $custom-file-padding-x;
348
- font-family: $custom-file-font-family;
349
- font-weight: $custom-file-font-weight;
350
- line-height: $custom-file-line-height;
351
- color: $custom-file-color;
352
- background-color: $custom-file-bg;
353
- border: $custom-file-border-width solid $custom-file-border-color;
354
- @include border-radius($custom-file-border-radius);
355
- @include box-shadow($custom-file-box-shadow);
356
-
357
- &::after {
358
- position: absolute;
359
- top: 0;
360
- right: 0;
361
- bottom: 0;
362
- z-index: 3;
363
- display: block;
364
- height: $custom-file-height-inner;
365
- padding: $custom-file-padding-y $custom-file-padding-x;
366
- line-height: $custom-file-line-height;
367
- color: $custom-file-button-color;
368
- content: "Browse";
369
- @include gradient-bg($custom-file-button-bg);
370
- border-left: inherit;
371
- @include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
372
- }
373
- }
374
-
375
- // Range
376
- //
377
- // Style range inputs the same across browsers. Vendor-specific rules for pseudo
378
- // elements cannot be mixed. As such, there are no shared styles for focus or
379
- // active states on prefixed selectors.
380
-
381
- .custom-range {
382
- width: 100%;
383
- height: add($custom-range-thumb-height, $custom-range-thumb-focus-box-shadow-width * 2);
384
- padding: 0; // Need to reset padding
385
- background-color: transparent;
386
- appearance: none;
387
-
388
- &:focus {
389
- outline: none;
390
-
391
- // Pseudo-elements must be split across multiple rulesets to have an effect.
392
- // No box-shadow() mixin for focus accessibility.
393
- &::-webkit-slider-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
394
- &::-moz-range-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
395
- &::-ms-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
396
- }
397
-
398
- &::-moz-focus-outer {
399
- border: 0;
400
- }
401
-
402
- &::-webkit-slider-thumb {
403
- width: $custom-range-thumb-width;
404
- height: $custom-range-thumb-height;
405
- margin-top: ($custom-range-track-height - $custom-range-thumb-height) / 2; // Webkit specific
406
- @include gradient-bg($custom-range-thumb-bg);
407
- border: $custom-range-thumb-border;
408
- @include border-radius($custom-range-thumb-border-radius);
409
- @include box-shadow($custom-range-thumb-box-shadow);
410
- @include transition($custom-forms-transition);
411
- appearance: none;
412
-
413
- &:active {
414
- @include gradient-bg($custom-range-thumb-active-bg);
415
- }
416
- }
417
-
418
- &::-webkit-slider-runnable-track {
419
- width: $custom-range-track-width;
420
- height: $custom-range-track-height;
421
- color: transparent; // Why?
422
- cursor: $custom-range-track-cursor;
423
- background-color: $custom-range-track-bg;
424
- border-color: transparent;
425
- @include border-radius($custom-range-track-border-radius);
426
- @include box-shadow($custom-range-track-box-shadow);
427
- }
428
-
429
- &::-moz-range-thumb {
430
- width: $custom-range-thumb-width;
431
- height: $custom-range-thumb-height;
432
- @include gradient-bg($custom-range-thumb-bg);
433
- border: $custom-range-thumb-border;
434
- @include border-radius($custom-range-thumb-border-radius);
435
- @include box-shadow($custom-range-thumb-box-shadow);
436
- @include transition($custom-forms-transition);
437
- appearance: none;
438
-
439
- &:active {
440
- @include gradient-bg($custom-range-thumb-active-bg);
441
- }
442
- }
443
-
444
- &::-moz-range-track {
445
- width: $custom-range-track-width;
446
- height: $custom-range-track-height;
447
- color: transparent;
448
- cursor: $custom-range-track-cursor;
449
- background-color: $custom-range-track-bg;
450
- border-color: transparent; // Firefox specific?
451
- @include border-radius($custom-range-track-border-radius);
452
- @include box-shadow($custom-range-track-box-shadow);
453
- }
454
-
455
- &::-ms-thumb {
456
- width: $custom-range-thumb-width;
457
- height: $custom-range-thumb-height;
458
- margin-top: 0; // Edge specific
459
- margin-right: $custom-range-thumb-focus-box-shadow-width; // Workaround that overflowed box-shadow is hidden.
460
- margin-left: $custom-range-thumb-focus-box-shadow-width; // Workaround that overflowed box-shadow is hidden.
461
- @include gradient-bg($custom-range-thumb-bg);
462
- border: $custom-range-thumb-border;
463
- @include border-radius($custom-range-thumb-border-radius);
464
- @include box-shadow($custom-range-thumb-box-shadow);
465
- @include transition($custom-forms-transition);
466
- appearance: none;
467
-
468
- &:active {
469
- @include gradient-bg($custom-range-thumb-active-bg);
470
- }
471
- }
472
-
473
- &::-ms-track {
474
- width: $custom-range-track-width;
475
- height: $custom-range-track-height;
476
- color: transparent;
477
- cursor: $custom-range-track-cursor;
478
- background-color: transparent;
479
- border-color: transparent;
480
- border-width: $custom-range-thumb-height / 2;
481
- @include box-shadow($custom-range-track-box-shadow);
482
- }
483
-
484
- &::-ms-fill-lower {
485
- background-color: $custom-range-track-bg;
486
- @include border-radius($custom-range-track-border-radius);
487
- }
488
-
489
- &::-ms-fill-upper {
490
- margin-right: 15px; // arbitrary?
491
- background-color: $custom-range-track-bg;
492
- @include border-radius($custom-range-track-border-radius);
493
- }
494
-
495
- &:disabled {
496
- &::-webkit-slider-thumb {
497
- background-color: $custom-range-thumb-disabled-bg;
498
- }
499
-
500
- &::-webkit-slider-runnable-track {
501
- cursor: default;
502
- }
503
-
504
- &::-moz-range-thumb {
505
- background-color: $custom-range-thumb-disabled-bg;
506
- }
507
-
508
- &::-moz-range-track {
509
- cursor: default;
510
- }
511
-
512
- &::-ms-thumb {
513
- background-color: $custom-range-thumb-disabled-bg;
514
- }
515
- }
516
- }
517
-
518
- .custom-control-label::before,
519
- .custom-file-label,
520
- .custom-select {
521
- @include transition($custom-forms-transition);
522
- }