bootstrap 5.0.0.alpha2 → 5.0.0.alpha3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/assets/javascripts/bootstrap-sprockets.js +6 -7
- data/assets/javascripts/bootstrap.js +220 -267
- data/assets/javascripts/bootstrap.min.js +2 -2
- data/assets/javascripts/bootstrap/alert.js +25 -15
- data/assets/javascripts/bootstrap/button.js +25 -15
- data/assets/javascripts/bootstrap/carousel.js +46 -24
- data/assets/javascripts/bootstrap/collapse.js +25 -15
- data/assets/javascripts/bootstrap/dom/data.js +2 -2
- data/assets/javascripts/bootstrap/dom/event-handler.js +8 -16
- data/assets/javascripts/bootstrap/dom/manipulator.js +2 -13
- data/assets/javascripts/bootstrap/dom/selector-engine.js +9 -9
- data/assets/javascripts/bootstrap/dropdown.js +34 -24
- data/assets/javascripts/bootstrap/modal.js +25 -15
- data/assets/javascripts/bootstrap/popover.js +26 -15
- data/assets/javascripts/bootstrap/scrollspy.js +25 -14
- data/assets/javascripts/bootstrap/tab.js +25 -15
- data/assets/javascripts/bootstrap/toast.js +26 -16
- data/assets/javascripts/bootstrap/tooltip.js +27 -17
- data/assets/stylesheets/_bootstrap-grid.scss +1 -1
- data/assets/stylesheets/_bootstrap-reboot.scss +1 -1
- data/assets/stylesheets/_bootstrap.scss +2 -1
- data/assets/stylesheets/bootstrap/_accordion.scss +125 -0
- data/assets/stylesheets/bootstrap/_alert.scss +10 -3
- data/assets/stylesheets/bootstrap/_breadcrumb.scss +1 -3
- data/assets/stylesheets/bootstrap/_button-group.scss +0 -2
- data/assets/stylesheets/bootstrap/_buttons.scss +0 -15
- data/assets/stylesheets/bootstrap/_card.scss +0 -27
- data/assets/stylesheets/bootstrap/_close.scss +1 -2
- data/assets/stylesheets/bootstrap/_forms.scss +1 -1
- data/assets/stylesheets/bootstrap/_functions.scss +12 -12
- data/assets/stylesheets/bootstrap/_list-group.scss +8 -2
- data/assets/stylesheets/bootstrap/_popover.scss +1 -1
- data/assets/stylesheets/bootstrap/_progress.scss +1 -1
- data/assets/stylesheets/bootstrap/_reboot.scss +19 -17
- data/assets/stylesheets/bootstrap/_root.scss +5 -5
- data/assets/stylesheets/bootstrap/_spinners.scss +11 -2
- data/assets/stylesheets/bootstrap/_tables.scss +16 -16
- data/assets/stylesheets/bootstrap/_utilities.scss +27 -13
- data/assets/stylesheets/bootstrap/_variables.scss +183 -160
- data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +1 -1
- data/assets/stylesheets/bootstrap/forms/_floating-labels.scss +61 -0
- data/assets/stylesheets/bootstrap/forms/_form-check.scss +15 -6
- data/assets/stylesheets/bootstrap/forms/_form-control.scss +115 -8
- data/assets/stylesheets/bootstrap/forms/_form-range.scss +0 -45
- data/assets/stylesheets/bootstrap/forms/_form-select.scss +0 -14
- data/assets/stylesheets/bootstrap/forms/_input-group.scss +20 -39
- data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_alert.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +4 -4
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +0 -16
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +10 -10
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +7 -7
- data/lib/bootstrap/version.rb +2 -2
- metadata +4 -4
- data/assets/javascripts/bootstrap/dom/polyfill.js +0 -110
- data/assets/stylesheets/bootstrap/forms/_form-file.scss +0 -91
@@ -2,10 +2,10 @@
|
|
2
2
|
.link-#{$color} {
|
3
3
|
color: $value;
|
4
4
|
|
5
|
-
@if $
|
5
|
+
@if $link-shade-percentage != 0 {
|
6
6
|
&:hover,
|
7
7
|
&:focus {
|
8
|
-
color: if(color-contrast($value) == $color-contrast-light,
|
8
|
+
color: if(color-contrast($value) == $color-contrast-light, shade-color($value, $link-shade-percentage), tint-color($value, $link-shade-percentage));
|
9
9
|
}
|
10
10
|
}
|
11
11
|
}
|
@@ -7,11 +7,11 @@
|
|
7
7
|
$background,
|
8
8
|
$border,
|
9
9
|
$color: color-contrast($background),
|
10
|
-
$hover-background: if($color == $color-contrast-light,
|
11
|
-
$hover-border: if($color == $color-contrast-light,
|
10
|
+
$hover-background: if($color == $color-contrast-light, shade-color($background, 15%), tint-color($background, 15%)),
|
11
|
+
$hover-border: if($color == $color-contrast-light, shade-color($border, 20%), tint-color($border, 10%)),
|
12
12
|
$hover-color: color-contrast($hover-background),
|
13
|
-
$active-background: if($color == $color-contrast-light,
|
14
|
-
$active-border: if($color == $color-contrast-light,
|
13
|
+
$active-background: if($color == $color-contrast-light, shade-color($background, 20%), tint-color($background, 20%)),
|
14
|
+
$active-border: if($color == $color-contrast-light, shade-color($border, 25%), tint-color($border, 10%)),
|
15
15
|
$active-color: color-contrast($active-background),
|
16
16
|
$disabled-background: $background,
|
17
17
|
$disabled-border: $border,
|
@@ -114,20 +114,4 @@
|
|
114
114
|
margin-left: .5em;
|
115
115
|
}
|
116
116
|
}
|
117
|
-
|
118
|
-
// custom file
|
119
|
-
.form-file-input {
|
120
|
-
@include form-validation-state-selector($state) {
|
121
|
-
~ .form-file-label {
|
122
|
-
border-color: $color;
|
123
|
-
}
|
124
|
-
|
125
|
-
&:focus {
|
126
|
-
~ .form-file-label {
|
127
|
-
border-color: $color;
|
128
|
-
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
|
129
|
-
}
|
130
|
-
}
|
131
|
-
}
|
132
|
-
}
|
133
117
|
}
|
@@ -3,13 +3,13 @@
|
|
3
3
|
// Generate semantic grid columns with these mixins.
|
4
4
|
|
5
5
|
@mixin make-row($gutter: $grid-gutter-width) {
|
6
|
-
|
7
|
-
|
6
|
+
--#{$variable-prefix}gutter-x: #{$gutter};
|
7
|
+
--#{$variable-prefix}gutter-y: 0;
|
8
8
|
display: flex;
|
9
9
|
flex-wrap: wrap;
|
10
|
-
margin-top: calc(var(
|
11
|
-
margin-right: calc(var(
|
12
|
-
margin-left: calc(var(
|
10
|
+
margin-top: calc(var(--#{$variable-prefix}gutter-y) * -1); // stylelint-disable-line function-disallowed-list
|
11
|
+
margin-right: calc(var(--#{$variable-prefix}gutter-x) / -2); // stylelint-disable-line function-disallowed-list
|
12
|
+
margin-left: calc(var(--#{$variable-prefix}gutter-x) / -2); // stylelint-disable-line function-disallowed-list
|
13
13
|
}
|
14
14
|
|
15
15
|
@mixin make-col-ready($gutter: $grid-gutter-width) {
|
@@ -21,9 +21,9 @@
|
|
21
21
|
flex-shrink: 0;
|
22
22
|
width: 100%;
|
23
23
|
max-width: 100%; // Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid
|
24
|
-
padding-right: calc(var(
|
25
|
-
padding-left: calc(var(
|
26
|
-
margin-top: var(
|
24
|
+
padding-right: calc(var(--#{$variable-prefix}gutter-x) / 2); // stylelint-disable-line function-disallowed-list
|
25
|
+
padding-left: calc(var(--#{$variable-prefix}gutter-x) / 2); // stylelint-disable-line function-disallowed-list
|
26
|
+
margin-top: var(--#{$variable-prefix}gutter-y);
|
27
27
|
}
|
28
28
|
|
29
29
|
@mixin make-col($size, $columns: $grid-columns) {
|
@@ -107,12 +107,12 @@
|
|
107
107
|
@each $key, $value in $gutters {
|
108
108
|
.g#{$infix}-#{$key},
|
109
109
|
.gx#{$infix}-#{$key} {
|
110
|
-
|
110
|
+
--#{$variable-prefix}gutter-x: #{$value};
|
111
111
|
}
|
112
112
|
|
113
113
|
.g#{$infix}-#{$key},
|
114
114
|
.gy#{$infix}-#{$key} {
|
115
|
-
|
115
|
+
--#{$variable-prefix}gutter-y: #{$value};
|
116
116
|
}
|
117
117
|
}
|
118
118
|
}
|
@@ -6,13 +6,13 @@
|
|
6
6
|
$striped-bg: mix($color, $background, percentage($table-striped-bg-factor));
|
7
7
|
$active-bg: mix($color, $background, percentage($table-active-bg-factor));
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
--#{$variable-prefix}table-bg: #{$background};
|
10
|
+
--#{$variable-prefix}table-striped-bg: #{$striped-bg};
|
11
|
+
--#{$variable-prefix}table-striped-color: #{color-contrast($striped-bg)};
|
12
|
+
--#{$variable-prefix}table-active-bg: #{$active-bg};
|
13
|
+
--#{$variable-prefix}table-active-color: #{color-contrast($active-bg)};
|
14
|
+
--#{$variable-prefix}table-hover-bg: #{$hover-bg};
|
15
|
+
--#{$variable-prefix}table-hover-color: #{color-contrast($hover-bg)};
|
16
16
|
|
17
17
|
color: $color;
|
18
18
|
border-color: mix($color, $background, percentage($table-border-factor));
|
data/lib/bootstrap/version.rb
CHANGED
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: 5.0.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-11-
|
11
|
+
date: 2020-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: popper_js
|
@@ -250,7 +250,6 @@ files:
|
|
250
250
|
- assets/javascripts/bootstrap/dom/data.js
|
251
251
|
- assets/javascripts/bootstrap/dom/event-handler.js
|
252
252
|
- assets/javascripts/bootstrap/dom/manipulator.js
|
253
|
-
- assets/javascripts/bootstrap/dom/polyfill.js
|
254
253
|
- assets/javascripts/bootstrap/dom/selector-engine.js
|
255
254
|
- assets/javascripts/bootstrap/dropdown.js
|
256
255
|
- assets/javascripts/bootstrap/modal.js
|
@@ -262,6 +261,7 @@ files:
|
|
262
261
|
- assets/stylesheets/_bootstrap-grid.scss
|
263
262
|
- assets/stylesheets/_bootstrap-reboot.scss
|
264
263
|
- assets/stylesheets/_bootstrap.scss
|
264
|
+
- assets/stylesheets/bootstrap/_accordion.scss
|
265
265
|
- assets/stylesheets/bootstrap/_alert.scss
|
266
266
|
- assets/stylesheets/bootstrap/_badge.scss
|
267
267
|
- assets/stylesheets/bootstrap/_breadcrumb.scss
|
@@ -296,9 +296,9 @@ files:
|
|
296
296
|
- assets/stylesheets/bootstrap/_utilities.scss
|
297
297
|
- assets/stylesheets/bootstrap/_variables.scss
|
298
298
|
- assets/stylesheets/bootstrap/bootstrap-utilities.scss
|
299
|
+
- assets/stylesheets/bootstrap/forms/_floating-labels.scss
|
299
300
|
- assets/stylesheets/bootstrap/forms/_form-check.scss
|
300
301
|
- assets/stylesheets/bootstrap/forms/_form-control.scss
|
301
|
-
- assets/stylesheets/bootstrap/forms/_form-file.scss
|
302
302
|
- assets/stylesheets/bootstrap/forms/_form-range.scss
|
303
303
|
- assets/stylesheets/bootstrap/forms/_form-select.scss
|
304
304
|
- assets/stylesheets/bootstrap/forms/_form-text.scss
|
@@ -1,110 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Bootstrap polyfill.js v5.0.0-alpha2 (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/main/LICENSE)
|
5
|
-
*/
|
6
|
-
(function (global, factory) {
|
7
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
8
|
-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
9
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Polyfill = {}));
|
10
|
-
}(this, (function (exports) { 'use strict';
|
11
|
-
|
12
|
-
/**
|
13
|
-
* --------------------------------------------------------------------------
|
14
|
-
* Bootstrap (v5.0.0-alpha2): util/index.js
|
15
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
16
|
-
* --------------------------------------------------------------------------
|
17
|
-
*/
|
18
|
-
var MAX_UID = 1000000;
|
19
|
-
/**
|
20
|
-
* --------------------------------------------------------------------------
|
21
|
-
* Public Util Api
|
22
|
-
* --------------------------------------------------------------------------
|
23
|
-
*/
|
24
|
-
|
25
|
-
|
26
|
-
var getUID = function getUID(prefix) {
|
27
|
-
do {
|
28
|
-
prefix += Math.floor(Math.random() * MAX_UID);
|
29
|
-
} while (document.getElementById(prefix));
|
30
|
-
|
31
|
-
return prefix;
|
32
|
-
};
|
33
|
-
|
34
|
-
/* istanbul ignore file */
|
35
|
-
exports.find = Element.prototype.querySelectorAll;
|
36
|
-
exports.findOne = Element.prototype.querySelector; // MSEdge resets defaultPrevented flag upon dispatchEvent call if at least one listener is attached
|
37
|
-
|
38
|
-
var defaultPreventedPreservedOnDispatch = function () {
|
39
|
-
var e = new CustomEvent('Bootstrap', {
|
40
|
-
cancelable: true
|
41
|
-
});
|
42
|
-
var element = document.createElement('div');
|
43
|
-
element.addEventListener('Bootstrap', function () {
|
44
|
-
return null;
|
45
|
-
});
|
46
|
-
e.preventDefault();
|
47
|
-
element.dispatchEvent(e);
|
48
|
-
return e.defaultPrevented;
|
49
|
-
}();
|
50
|
-
|
51
|
-
var scopeSelectorRegex = /:scope\b/;
|
52
|
-
|
53
|
-
var supportScopeQuery = function () {
|
54
|
-
var element = document.createElement('div');
|
55
|
-
|
56
|
-
try {
|
57
|
-
element.querySelectorAll(':scope *');
|
58
|
-
} catch (_) {
|
59
|
-
return false;
|
60
|
-
}
|
61
|
-
|
62
|
-
return true;
|
63
|
-
}();
|
64
|
-
|
65
|
-
if (!supportScopeQuery) {
|
66
|
-
exports.find = function find(selector) {
|
67
|
-
if (!scopeSelectorRegex.test(selector)) {
|
68
|
-
return this.querySelectorAll(selector);
|
69
|
-
}
|
70
|
-
|
71
|
-
var hasId = Boolean(this.id);
|
72
|
-
|
73
|
-
if (!hasId) {
|
74
|
-
this.id = getUID('scope');
|
75
|
-
}
|
76
|
-
|
77
|
-
var nodeList = null;
|
78
|
-
|
79
|
-
try {
|
80
|
-
selector = selector.replace(scopeSelectorRegex, "#" + this.id);
|
81
|
-
nodeList = this.querySelectorAll(selector);
|
82
|
-
} finally {
|
83
|
-
if (!hasId) {
|
84
|
-
this.removeAttribute('id');
|
85
|
-
}
|
86
|
-
}
|
87
|
-
|
88
|
-
return nodeList;
|
89
|
-
};
|
90
|
-
|
91
|
-
exports.findOne = function findOne(selector) {
|
92
|
-
if (!scopeSelectorRegex.test(selector)) {
|
93
|
-
return this.querySelector(selector);
|
94
|
-
}
|
95
|
-
|
96
|
-
var matches = exports.find.call(this, selector);
|
97
|
-
|
98
|
-
if (typeof matches[0] !== 'undefined') {
|
99
|
-
return matches[0];
|
100
|
-
}
|
101
|
-
|
102
|
-
return null;
|
103
|
-
};
|
104
|
-
}
|
105
|
-
|
106
|
-
exports.defaultPreventedPreservedOnDispatch = defaultPreventedPreservedOnDispatch;
|
107
|
-
|
108
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
109
|
-
|
110
|
-
})));
|
@@ -1,91 +0,0 @@
|
|
1
|
-
.form-file {
|
2
|
-
--bs-form-file-height: #{$form-file-height};
|
3
|
-
position: relative;
|
4
|
-
}
|
5
|
-
|
6
|
-
.form-file-input {
|
7
|
-
position: relative;
|
8
|
-
z-index: 2;
|
9
|
-
width: 100%;
|
10
|
-
height: var(--bs-form-file-height);
|
11
|
-
margin: 0;
|
12
|
-
opacity: 0;
|
13
|
-
|
14
|
-
&:focus-within ~ .form-file-label {
|
15
|
-
border-color: $form-file-focus-border-color;
|
16
|
-
box-shadow: $form-file-focus-box-shadow;
|
17
|
-
}
|
18
|
-
|
19
|
-
// Use disabled attribute in addition of :disabled pseudo-class
|
20
|
-
// See: https://github.com/twbs/bootstrap/issues/28247
|
21
|
-
&[disabled] ~ .form-file-label .form-file-text,
|
22
|
-
&:disabled ~ .form-file-label .form-file-text {
|
23
|
-
background-color: $form-file-disabled-bg;
|
24
|
-
border-color: $form-file-disabled-border-color;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
.form-file-label {
|
29
|
-
position: absolute;
|
30
|
-
top: 0;
|
31
|
-
right: 0;
|
32
|
-
left: 0;
|
33
|
-
z-index: 1;
|
34
|
-
display: flex;
|
35
|
-
height: var(--bs-form-file-height);
|
36
|
-
border-color: $form-file-border-color;
|
37
|
-
@include border-radius($form-file-border-radius);
|
38
|
-
@include box-shadow($form-file-box-shadow);
|
39
|
-
}
|
40
|
-
|
41
|
-
.form-file-text {
|
42
|
-
display: block;
|
43
|
-
flex-grow: 1;
|
44
|
-
padding: $form-file-padding-y $form-file-padding-x;
|
45
|
-
overflow: hidden;
|
46
|
-
font-family: $form-file-font-family;
|
47
|
-
font-weight: $form-file-font-weight;
|
48
|
-
line-height: $form-file-line-height;
|
49
|
-
color: $form-file-color;
|
50
|
-
text-overflow: ellipsis;
|
51
|
-
white-space: nowrap;
|
52
|
-
background-color: $form-file-bg;
|
53
|
-
border-color: inherit;
|
54
|
-
border-style: solid;
|
55
|
-
border-width: $form-file-border-width;
|
56
|
-
@include border-left-radius(inherit);
|
57
|
-
}
|
58
|
-
|
59
|
-
.form-file-button {
|
60
|
-
display: block;
|
61
|
-
flex-shrink: 0;
|
62
|
-
padding: $form-file-padding-y $form-file-padding-x;
|
63
|
-
margin-left: -$form-file-border-width;
|
64
|
-
line-height: $form-file-line-height;
|
65
|
-
color: $form-file-button-color;
|
66
|
-
@include gradient-bg($form-file-button-bg);
|
67
|
-
border-color: inherit;
|
68
|
-
border-style: solid;
|
69
|
-
border-width: $form-file-border-width;
|
70
|
-
@include border-right-radius(inherit);
|
71
|
-
}
|
72
|
-
|
73
|
-
.form-file-sm {
|
74
|
-
--bs-form-file-height: #{$form-file-height-sm};
|
75
|
-
@include font-size($form-file-font-size-sm);
|
76
|
-
|
77
|
-
.form-file-text,
|
78
|
-
.form-file-button {
|
79
|
-
padding: $form-file-padding-y-sm $form-file-padding-x-sm;
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
|
-
.form-file-lg {
|
84
|
-
--bs-form-file-height: #{$form-file-height-lg};
|
85
|
-
@include font-size($form-file-font-size-lg);
|
86
|
-
|
87
|
-
.form-file-text,
|
88
|
-
.form-file-button {
|
89
|
-
padding: $form-file-padding-y-lg $form-file-padding-x-lg;
|
90
|
-
}
|
91
|
-
}
|