bootstrap 4.4.1 → 5.0.1
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.
- checksums.yaml +4 -4
- data/.travis.yml +13 -2
- data/README.md +7 -4
- data/assets/javascripts/bootstrap-global-this-define.js +6 -0
- data/assets/javascripts/bootstrap-global-this-undefine.js +2 -0
- data/assets/javascripts/bootstrap-sprockets.js +15 -8
- data/assets/javascripts/bootstrap.js +3244 -2770
- data/assets/javascripts/bootstrap.min.js +4 -4
- data/assets/javascripts/bootstrap/alert.js +130 -124
- data/assets/javascripts/bootstrap/base-component.js +168 -0
- data/assets/javascripts/bootstrap/button.js +85 -179
- data/assets/javascripts/bootstrap/carousel.js +430 -405
- data/assets/javascripts/bootstrap/collapse.js +325 -264
- data/assets/javascripts/bootstrap/dom/data.js +68 -0
- data/assets/javascripts/bootstrap/dom/event-handler.js +315 -0
- data/assets/javascripts/bootstrap/dom/manipulator.js +88 -0
- data/assets/javascripts/bootstrap/dom/selector-engine.js +85 -0
- data/assets/javascripts/bootstrap/dropdown.js +464 -400
- data/assets/javascripts/bootstrap/modal.js +604 -464
- data/assets/javascripts/bootstrap/offcanvas.js +671 -0
- data/assets/javascripts/bootstrap/popover.js +119 -192
- data/assets/javascripts/bootstrap/scrollspy.js +250 -238
- data/assets/javascripts/bootstrap/tab.js +189 -151
- data/assets/javascripts/bootstrap/toast.js +215 -192
- data/assets/javascripts/bootstrap/tooltip.js +604 -544
- data/assets/stylesheets/_bootstrap-grid.scss +54 -18
- data/assets/stylesheets/_bootstrap-reboot.scss +7 -4
- data/assets/stylesheets/_bootstrap.scss +19 -11
- data/assets/stylesheets/bootstrap/_accordion.scss +118 -0
- data/assets/stylesheets/bootstrap/_alert.scss +15 -9
- data/assets/stylesheets/bootstrap/_badge.scss +2 -27
- data/assets/stylesheets/bootstrap/_breadcrumb.scss +4 -18
- data/assets/stylesheets/bootstrap/_button-group.scss +21 -45
- data/assets/stylesheets/bootstrap/_buttons.scss +27 -55
- data/assets/stylesheets/bootstrap/_card.scss +43 -106
- data/assets/stylesheets/bootstrap/_carousel.scss +65 -33
- data/assets/stylesheets/bootstrap/_close.scss +30 -31
- data/assets/stylesheets/bootstrap/_containers.scss +41 -0
- data/assets/stylesheets/bootstrap/_dropdown.scss +87 -38
- data/assets/stylesheets/bootstrap/_forms.scss +9 -338
- data/assets/stylesheets/bootstrap/_functions.scss +99 -28
- data/assets/stylesheets/bootstrap/_grid.scss +3 -50
- data/assets/stylesheets/bootstrap/_helpers.scss +7 -0
- data/assets/stylesheets/bootstrap/_list-group.scss +38 -22
- data/assets/stylesheets/bootstrap/_mixins.scss +8 -13
- data/assets/stylesheets/bootstrap/_modal.scss +45 -65
- data/assets/stylesheets/bootstrap/_nav.scss +28 -9
- data/assets/stylesheets/bootstrap/_navbar.scss +51 -69
- data/assets/stylesheets/bootstrap/_offcanvas.scss +77 -0
- data/assets/stylesheets/bootstrap/_pagination.scss +11 -20
- data/assets/stylesheets/bootstrap/_popover.scss +15 -27
- data/assets/stylesheets/bootstrap/_progress.scss +6 -4
- data/assets/stylesheets/bootstrap/_reboot.scss +339 -200
- data/assets/stylesheets/bootstrap/_root.scss +5 -9
- data/assets/stylesheets/bootstrap/_spinners.scss +21 -7
- data/assets/stylesheets/bootstrap/_tables.scss +80 -114
- data/assets/stylesheets/bootstrap/_toasts.scss +21 -14
- data/assets/stylesheets/bootstrap/_tooltip.scss +17 -17
- data/assets/stylesheets/bootstrap/_transitions.scss +2 -1
- data/assets/stylesheets/bootstrap/_type.scss +38 -59
- data/assets/stylesheets/bootstrap/_utilities.scss +594 -17
- data/assets/stylesheets/bootstrap/_variables.scss +810 -489
- data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +18 -0
- data/assets/stylesheets/bootstrap/forms/_floating-labels.scss +61 -0
- data/assets/stylesheets/bootstrap/forms/_form-check.scss +152 -0
- data/assets/stylesheets/bootstrap/forms/_form-control.scss +219 -0
- data/assets/stylesheets/bootstrap/forms/_form-range.scss +91 -0
- data/assets/stylesheets/bootstrap/forms/_form-select.scss +67 -0
- data/assets/stylesheets/bootstrap/forms/_form-text.scss +11 -0
- data/assets/stylesheets/bootstrap/forms/_input-group.scss +121 -0
- data/assets/stylesheets/bootstrap/forms/_labels.scss +36 -0
- data/assets/stylesheets/bootstrap/forms/_validation.scss +12 -0
- data/assets/stylesheets/bootstrap/{utilities → helpers}/_clearfix.scss +0 -0
- data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +12 -0
- data/assets/stylesheets/bootstrap/helpers/_position.scss +30 -0
- data/assets/stylesheets/bootstrap/helpers/_ratio.scss +26 -0
- data/assets/stylesheets/bootstrap/helpers/_stretched-link.scss +15 -0
- data/assets/stylesheets/bootstrap/helpers/_text-truncation.scss +7 -0
- data/assets/stylesheets/bootstrap/helpers/_visually-hidden.scss +8 -0
- data/assets/stylesheets/bootstrap/mixins/_alert.scss +3 -5
- data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +37 -22
- data/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +7 -9
- data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +14 -10
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +75 -52
- data/assets/stylesheets/bootstrap/mixins/_caret.scss +10 -8
- data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +2 -0
- data/assets/stylesheets/bootstrap/mixins/_color-scheme.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_container.scss +9 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +42 -75
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +13 -11
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +90 -34
- data/assets/stylesheets/bootstrap/mixins/_image.scss +1 -21
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +5 -2
- data/assets/stylesheets/bootstrap/mixins/_lists.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_pagination.scss +17 -8
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +21 -0
- data/assets/stylesheets/bootstrap/mixins/_transition.scss +18 -8
- data/assets/stylesheets/bootstrap/mixins/_utilities.scss +68 -0
- data/assets/stylesheets/bootstrap/mixins/_visually-hidden.scss +29 -0
- data/assets/stylesheets/bootstrap/utilities/_api.scss +47 -0
- data/assets/stylesheets/bootstrap/vendor/_rfs.scss +234 -126
- data/bootstrap.gemspec +1 -3
- data/lib/bootstrap/version.rb +2 -2
- data/tasks/updater/js.rb +20 -5
- data/tasks/updater/network.rb +8 -2
- data/test/dummy_rails/app/assets/javascripts/application.js +4 -3
- data/test/dummy_rails/app/views/layouts/application.html.erb +3 -1
- data/test/dummy_rails/app/views/pages/root.html +89 -0
- data/test/dummy_rails/config/application.rb +0 -3
- data/test/gemfiles/rails_6_0.gemfile +7 -0
- data/test/gemfiles/rails_6_1.gemfile +7 -0
- metadata +48 -73
- data/assets/javascripts/bootstrap/util.js +0 -188
- data/assets/stylesheets/bootstrap/_code.scss +0 -48
- data/assets/stylesheets/bootstrap/_custom-forms.scss +0 -521
- data/assets/stylesheets/bootstrap/_input-group.scss +0 -191
- data/assets/stylesheets/bootstrap/_jumbotron.scss +0 -17
- data/assets/stylesheets/bootstrap/_media.scss +0 -8
- data/assets/stylesheets/bootstrap/_print.scss +0 -141
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -22
- data/assets/stylesheets/bootstrap/mixins/_badge.scss +0 -17
- data/assets/stylesheets/bootstrap/mixins/_float.scss +0 -14
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -71
- data/assets/stylesheets/bootstrap/mixins/_hover.scss +0 -37
- data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -11
- data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +0 -34
- data/assets/stylesheets/bootstrap/mixins/_size.scss +0 -7
- data/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -39
- data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -17
- data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +0 -11
- data/assets/stylesheets/bootstrap/mixins/_visibility.scss +0 -8
- data/assets/stylesheets/bootstrap/utilities/_align.scss +0 -8
- data/assets/stylesheets/bootstrap/utilities/_background.scss +0 -19
- data/assets/stylesheets/bootstrap/utilities/_borders.scss +0 -75
- data/assets/stylesheets/bootstrap/utilities/_display.scss +0 -26
- data/assets/stylesheets/bootstrap/utilities/_embed.scss +0 -39
- data/assets/stylesheets/bootstrap/utilities/_flex.scss +0 -51
- data/assets/stylesheets/bootstrap/utilities/_float.scss +0 -11
- data/assets/stylesheets/bootstrap/utilities/_overflow.scss +0 -5
- data/assets/stylesheets/bootstrap/utilities/_position.scss +0 -32
- data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +0 -11
- data/assets/stylesheets/bootstrap/utilities/_shadows.scss +0 -6
- data/assets/stylesheets/bootstrap/utilities/_sizing.scss +0 -20
- data/assets/stylesheets/bootstrap/utilities/_spacing.scss +0 -73
- data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +0 -19
- data/assets/stylesheets/bootstrap/utilities/_text.scss +0 -72
- data/assets/stylesheets/bootstrap/utilities/_visibility.scss +0 -13
- data/test/dummy_rails/app/views/pages/root.html.slim +0 -58
|
@@ -1,29 +1,65 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap Grid
|
|
3
|
-
* Copyright 2011-
|
|
4
|
-
* Copyright 2011-
|
|
5
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/
|
|
2
|
+
* Bootstrap Grid v5.0.1 (https://getbootstrap.com/)
|
|
3
|
+
* Copyright 2011-2021 The Bootstrap Authors
|
|
4
|
+
* Copyright 2011-2021 Twitter, Inc.
|
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
-ms-overflow-style: scrollbar;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
*,
|
|
14
|
-
*::before,
|
|
15
|
-
*::after {
|
|
16
|
-
box-sizing: inherit;
|
|
17
|
-
}
|
|
8
|
+
$include-column-box-sizing: true !default;
|
|
18
9
|
|
|
19
10
|
@import "bootstrap/functions";
|
|
20
11
|
@import "bootstrap/variables";
|
|
21
12
|
|
|
13
|
+
@import "bootstrap/mixins/lists";
|
|
22
14
|
@import "bootstrap/mixins/breakpoints";
|
|
23
|
-
@import "bootstrap/mixins/
|
|
15
|
+
@import "bootstrap/mixins/container";
|
|
24
16
|
@import "bootstrap/mixins/grid";
|
|
17
|
+
@import "bootstrap/mixins/utilities";
|
|
18
|
+
|
|
19
|
+
@import "bootstrap/vendor/rfs";
|
|
25
20
|
|
|
21
|
+
@import "bootstrap/containers";
|
|
26
22
|
@import "bootstrap/grid";
|
|
27
|
-
|
|
28
|
-
@import "bootstrap/utilities
|
|
29
|
-
|
|
23
|
+
|
|
24
|
+
@import "bootstrap/utilities";
|
|
25
|
+
// Only use the utilities we need
|
|
26
|
+
// stylelint-disable-next-line scss/dollar-variable-default
|
|
27
|
+
$utilities: map-get-multiple(
|
|
28
|
+
$utilities,
|
|
29
|
+
(
|
|
30
|
+
"bootstrap/display",
|
|
31
|
+
"bootstrap/order",
|
|
32
|
+
"bootstrap/flex",
|
|
33
|
+
"bootstrap/flex-direction",
|
|
34
|
+
"bootstrap/flex-grow",
|
|
35
|
+
"bootstrap/flex-shrink",
|
|
36
|
+
"bootstrap/flex-wrap",
|
|
37
|
+
"bootstrap/justify-content",
|
|
38
|
+
"bootstrap/align-items",
|
|
39
|
+
"bootstrap/align-content",
|
|
40
|
+
"bootstrap/align-self",
|
|
41
|
+
"bootstrap/margin",
|
|
42
|
+
"bootstrap/margin-x",
|
|
43
|
+
"bootstrap/margin-y",
|
|
44
|
+
"bootstrap/margin-top",
|
|
45
|
+
"bootstrap/margin-end",
|
|
46
|
+
"bootstrap/margin-bottom",
|
|
47
|
+
"bootstrap/margin-start",
|
|
48
|
+
"bootstrap/negative-margin",
|
|
49
|
+
"bootstrap/negative-margin-x",
|
|
50
|
+
"bootstrap/negative-margin-y",
|
|
51
|
+
"bootstrap/negative-margin-top",
|
|
52
|
+
"bootstrap/negative-margin-end",
|
|
53
|
+
"bootstrap/negative-margin-bottom",
|
|
54
|
+
"bootstrap/negative-margin-start",
|
|
55
|
+
"bootstrap/padding",
|
|
56
|
+
"bootstrap/padding-x",
|
|
57
|
+
"bootstrap/padding-y",
|
|
58
|
+
"bootstrap/padding-top",
|
|
59
|
+
"bootstrap/padding-end",
|
|
60
|
+
"bootstrap/padding-bottom",
|
|
61
|
+
"bootstrap/padding-start",
|
|
62
|
+
)
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
@import "bootstrap/utilities/api";
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap Reboot
|
|
3
|
-
* Copyright 2011-
|
|
4
|
-
* Copyright 2011-
|
|
5
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/
|
|
2
|
+
* Bootstrap Reboot v5.0.1 (https://getbootstrap.com/)
|
|
3
|
+
* Copyright 2011-2021 The Bootstrap Authors
|
|
4
|
+
* Copyright 2011-2021 Twitter, Inc.
|
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
6
6
|
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
@import "bootstrap/functions";
|
|
10
10
|
@import "bootstrap/variables";
|
|
11
|
+
// Prevent the usage of custom properties since we don't add them to `:root` in reboot
|
|
12
|
+
$font-family-base: $font-family-sans-serif; // stylelint-disable-line scss/dollar-variable-default
|
|
13
|
+
$font-family-code: $font-family-monospace; // stylelint-disable-line scss/dollar-variable-default
|
|
11
14
|
@import "bootstrap/mixins";
|
|
12
15
|
@import "bootstrap/reboot";
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap
|
|
3
|
-
* Copyright 2011-
|
|
4
|
-
* Copyright 2011-
|
|
5
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/
|
|
2
|
+
* Bootstrap v5.0.1 (https://getbootstrap.com/)
|
|
3
|
+
* Copyright 2011-2021 The Bootstrap Authors
|
|
4
|
+
* Copyright 2011-2021 Twitter, Inc.
|
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
// scss-docs-start import-stack
|
|
9
|
+
// Configuration
|
|
8
10
|
@import "bootstrap/functions";
|
|
9
11
|
@import "bootstrap/variables";
|
|
10
12
|
@import "bootstrap/mixins";
|
|
13
|
+
@import "bootstrap/utilities";
|
|
14
|
+
|
|
15
|
+
// Layout & components
|
|
11
16
|
@import "bootstrap/root";
|
|
12
17
|
@import "bootstrap/reboot";
|
|
13
18
|
@import "bootstrap/type";
|
|
14
19
|
@import "bootstrap/images";
|
|
15
|
-
@import "bootstrap/
|
|
20
|
+
@import "bootstrap/containers";
|
|
16
21
|
@import "bootstrap/grid";
|
|
17
22
|
@import "bootstrap/tables";
|
|
18
23
|
@import "bootstrap/forms";
|
|
@@ -20,18 +25,15 @@
|
|
|
20
25
|
@import "bootstrap/transitions";
|
|
21
26
|
@import "bootstrap/dropdown";
|
|
22
27
|
@import "bootstrap/button-group";
|
|
23
|
-
@import "bootstrap/input-group";
|
|
24
|
-
@import "bootstrap/custom-forms";
|
|
25
28
|
@import "bootstrap/nav";
|
|
26
29
|
@import "bootstrap/navbar";
|
|
27
30
|
@import "bootstrap/card";
|
|
31
|
+
@import "bootstrap/accordion";
|
|
28
32
|
@import "bootstrap/breadcrumb";
|
|
29
33
|
@import "bootstrap/pagination";
|
|
30
34
|
@import "bootstrap/badge";
|
|
31
|
-
@import "bootstrap/jumbotron";
|
|
32
35
|
@import "bootstrap/alert";
|
|
33
36
|
@import "bootstrap/progress";
|
|
34
|
-
@import "bootstrap/media";
|
|
35
37
|
@import "bootstrap/list-group";
|
|
36
38
|
@import "bootstrap/close";
|
|
37
39
|
@import "bootstrap/toasts";
|
|
@@ -40,5 +42,11 @@
|
|
|
40
42
|
@import "bootstrap/popover";
|
|
41
43
|
@import "bootstrap/carousel";
|
|
42
44
|
@import "bootstrap/spinners";
|
|
43
|
-
@import "bootstrap/
|
|
44
|
-
|
|
45
|
+
@import "bootstrap/offcanvas";
|
|
46
|
+
|
|
47
|
+
// Helpers
|
|
48
|
+
@import "bootstrap/helpers";
|
|
49
|
+
|
|
50
|
+
// Utilities
|
|
51
|
+
@import "bootstrap/utilities/api";
|
|
52
|
+
// scss-docs-end import-stack
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Base styles
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
.accordion-button {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: $accordion-button-padding-y $accordion-button-padding-x;
|
|
11
|
+
@include font-size($font-size-base);
|
|
12
|
+
color: $accordion-button-color;
|
|
13
|
+
text-align: left; // Reset button style
|
|
14
|
+
background-color: $accordion-button-bg;
|
|
15
|
+
border: 0;
|
|
16
|
+
@include border-radius(0);
|
|
17
|
+
overflow-anchor: none;
|
|
18
|
+
@include transition($accordion-transition);
|
|
19
|
+
|
|
20
|
+
&:not(.collapsed) {
|
|
21
|
+
color: $accordion-button-active-color;
|
|
22
|
+
background-color: $accordion-button-active-bg;
|
|
23
|
+
box-shadow: inset 0 ($accordion-border-width * -1) 0 $accordion-border-color;
|
|
24
|
+
|
|
25
|
+
&::after {
|
|
26
|
+
background-image: escape-svg($accordion-button-active-icon);
|
|
27
|
+
transform: $accordion-icon-transform;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Accordion icon
|
|
32
|
+
&::after {
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
width: $accordion-icon-width;
|
|
35
|
+
height: $accordion-icon-width;
|
|
36
|
+
margin-left: auto;
|
|
37
|
+
content: "";
|
|
38
|
+
background-image: escape-svg($accordion-button-icon);
|
|
39
|
+
background-repeat: no-repeat;
|
|
40
|
+
background-size: $accordion-icon-width;
|
|
41
|
+
@include transition($accordion-icon-transition);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:hover {
|
|
45
|
+
z-index: 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:focus {
|
|
49
|
+
z-index: 3;
|
|
50
|
+
border-color: $accordion-button-focus-border-color;
|
|
51
|
+
outline: 0;
|
|
52
|
+
box-shadow: $accordion-button-focus-box-shadow;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.accordion-header {
|
|
57
|
+
margin-bottom: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.accordion-item {
|
|
61
|
+
background-color: $accordion-bg;
|
|
62
|
+
border: $accordion-border-width solid $accordion-border-color;
|
|
63
|
+
|
|
64
|
+
&:first-of-type {
|
|
65
|
+
@include border-top-radius($accordion-border-radius);
|
|
66
|
+
|
|
67
|
+
.accordion-button {
|
|
68
|
+
@include border-top-radius($accordion-inner-border-radius);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:not(:first-of-type) {
|
|
73
|
+
border-top: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Only set a border-radius on the last item if the accordion is collapsed
|
|
77
|
+
&:last-of-type {
|
|
78
|
+
@include border-bottom-radius($accordion-border-radius);
|
|
79
|
+
|
|
80
|
+
.accordion-button {
|
|
81
|
+
&.collapsed {
|
|
82
|
+
@include border-bottom-radius($accordion-inner-border-radius);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.accordion-collapse {
|
|
87
|
+
@include border-bottom-radius($accordion-border-radius);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.accordion-body {
|
|
93
|
+
padding: $accordion-body-padding-y $accordion-body-padding-x;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
// Flush accordion items
|
|
98
|
+
//
|
|
99
|
+
// Remove borders and border-radius to keep accordion items edge-to-edge.
|
|
100
|
+
|
|
101
|
+
.accordion-flush {
|
|
102
|
+
.accordion-collapse {
|
|
103
|
+
border-width: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.accordion-item {
|
|
107
|
+
border-right: 0;
|
|
108
|
+
border-left: 0;
|
|
109
|
+
@include border-radius(0);
|
|
110
|
+
|
|
111
|
+
&:first-child { border-top: 0; }
|
|
112
|
+
&:last-child { border-bottom: 0; }
|
|
113
|
+
|
|
114
|
+
.accordion-button {
|
|
115
|
+
@include border-radius(0);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -27,25 +27,31 @@
|
|
|
27
27
|
// Expand the right padding and account for the close button's positioning.
|
|
28
28
|
|
|
29
29
|
.alert-dismissible {
|
|
30
|
-
padding-right: $
|
|
30
|
+
padding-right: $alert-dismissible-padding-r;
|
|
31
31
|
|
|
32
32
|
// Adjust close link position
|
|
33
|
-
.close {
|
|
33
|
+
.btn-close {
|
|
34
34
|
position: absolute;
|
|
35
35
|
top: 0;
|
|
36
36
|
right: 0;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
z-index: $stretched-link-z-index + 1;
|
|
38
|
+
padding: $alert-padding-y * 1.25 $alert-padding-x;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
//
|
|
44
|
-
//
|
|
43
|
+
// scss-docs-start alert-modifiers
|
|
45
44
|
// Generate contextual modifier classes for colorizing the alert.
|
|
46
45
|
|
|
47
|
-
@each $
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
@each $state, $value in $theme-colors {
|
|
47
|
+
$alert-background: shift-color($value, $alert-bg-scale);
|
|
48
|
+
$alert-border: shift-color($value, $alert-border-scale);
|
|
49
|
+
$alert-color: shift-color($value, $alert-color-scale);
|
|
50
|
+
@if (contrast-ratio($alert-background, $alert-color) < $min-contrast-ratio) {
|
|
51
|
+
$alert-color: mix($value, color-contrast($alert-background), abs($alert-color-scale));
|
|
52
|
+
}
|
|
53
|
+
.alert-#{$state} {
|
|
54
|
+
@include alert-variant($alert-background, $alert-border, $alert-color);
|
|
50
55
|
}
|
|
51
56
|
}
|
|
57
|
+
// scss-docs-end alert-modifiers
|
|
@@ -9,17 +9,12 @@
|
|
|
9
9
|
@include font-size($badge-font-size);
|
|
10
10
|
font-weight: $badge-font-weight;
|
|
11
11
|
line-height: 1;
|
|
12
|
+
color: $badge-color;
|
|
12
13
|
text-align: center;
|
|
13
14
|
white-space: nowrap;
|
|
14
15
|
vertical-align: baseline;
|
|
15
16
|
@include border-radius($badge-border-radius);
|
|
16
|
-
@include
|
|
17
|
-
|
|
18
|
-
@at-root a#{&} {
|
|
19
|
-
@include hover-focus() {
|
|
20
|
-
text-decoration: none;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
17
|
+
@include gradient-bg();
|
|
23
18
|
|
|
24
19
|
// Empty badges collapse automatically
|
|
25
20
|
&:empty {
|
|
@@ -32,23 +27,3 @@
|
|
|
32
27
|
position: relative;
|
|
33
28
|
top: -1px;
|
|
34
29
|
}
|
|
35
|
-
|
|
36
|
-
// Pill badges
|
|
37
|
-
//
|
|
38
|
-
// Make them extra rounded with a modifier to replace v3's badges.
|
|
39
|
-
|
|
40
|
-
.badge-pill {
|
|
41
|
-
padding-right: $badge-pill-padding-x;
|
|
42
|
-
padding-left: $badge-pill-padding-x;
|
|
43
|
-
@include border-radius($badge-pill-border-radius);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Colors
|
|
47
|
-
//
|
|
48
|
-
// Contextual variations (linked badges get darker on :hover).
|
|
49
|
-
|
|
50
|
-
@each $color, $value in $theme-colors {
|
|
51
|
-
.badge-#{$color} {
|
|
52
|
-
@include badge-variant($value);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -12,30 +12,16 @@
|
|
|
12
12
|
.breadcrumb-item {
|
|
13
13
|
// The separator between breadcrumbs (by default, a forward-slash: "/")
|
|
14
14
|
+ .breadcrumb-item {
|
|
15
|
-
padding-left: $breadcrumb-item-padding;
|
|
15
|
+
padding-left: $breadcrumb-item-padding-x;
|
|
16
16
|
|
|
17
17
|
&::before {
|
|
18
|
-
|
|
19
|
-
padding-right: $breadcrumb-item-padding;
|
|
18
|
+
float: left; // Suppress inline spacings and underlining of the separator
|
|
19
|
+
padding-right: $breadcrumb-item-padding-x;
|
|
20
20
|
color: $breadcrumb-divider-color;
|
|
21
|
-
content: escape-svg($breadcrumb-divider);
|
|
21
|
+
content: var(--#{$variable-prefix}breadcrumb-divider, escape-svg($breadcrumb-divider)) #{"/* rtl:"} var(--#{$variable-prefix}breadcrumb-divider, escape-svg($breadcrumb-divider-flipped)) #{"*/"};
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
// IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built
|
|
26
|
-
// without `<ul>`s. The `::before` pseudo-element generates an element
|
|
27
|
-
// *within* the .breadcrumb-item and thereby inherits the `text-decoration`.
|
|
28
|
-
//
|
|
29
|
-
// To trick IE into suppressing the underline, we give the pseudo-element an
|
|
30
|
-
// underline and then immediately remove it.
|
|
31
|
-
+ .breadcrumb-item:hover::before {
|
|
32
|
-
text-decoration: underline;
|
|
33
|
-
}
|
|
34
|
-
// stylelint-disable-next-line no-duplicate-selectors
|
|
35
|
-
+ .breadcrumb-item:hover::before {
|
|
36
|
-
text-decoration: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
25
|
&.active {
|
|
40
26
|
color: $breadcrumb-active-color;
|
|
41
27
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// stylelint-disable selector-no-qualifying-type
|
|
2
|
-
|
|
3
1
|
// Make the div behave like a button
|
|
4
2
|
.btn-group,
|
|
5
3
|
.btn-group-vertical {
|
|
@@ -10,17 +8,17 @@
|
|
|
10
8
|
> .btn {
|
|
11
9
|
position: relative;
|
|
12
10
|
flex: 1 1 auto;
|
|
11
|
+
}
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
13
|
+
// Bring the hover, focused, and "active" buttons to the front to overlay
|
|
14
|
+
// the borders properly
|
|
15
|
+
> .btn-check:checked + .btn,
|
|
16
|
+
> .btn-check:focus + .btn,
|
|
17
|
+
> .btn:hover,
|
|
18
|
+
> .btn:focus,
|
|
19
|
+
> .btn:active,
|
|
20
|
+
> .btn.active {
|
|
21
|
+
z-index: 1;
|
|
24
22
|
}
|
|
25
23
|
}
|
|
26
24
|
|
|
@@ -45,12 +43,17 @@
|
|
|
45
43
|
// Reset rounded corners
|
|
46
44
|
> .btn:not(:last-child):not(.dropdown-toggle),
|
|
47
45
|
> .btn-group:not(:last-child) > .btn {
|
|
48
|
-
@include border-
|
|
46
|
+
@include border-end-radius(0);
|
|
49
47
|
}
|
|
50
48
|
|
|
51
|
-
|
|
49
|
+
// The left radius should be 0 if the button is:
|
|
50
|
+
// - the "third or more" child
|
|
51
|
+
// - the second child and the previous element isn't `.btn-check` (making it the first child visually)
|
|
52
|
+
// - part of a btn-group which isn't the first child
|
|
53
|
+
> .btn:nth-child(n + 3),
|
|
54
|
+
> :not(.btn-check) + .btn,
|
|
52
55
|
> .btn-group:not(:first-child) > .btn {
|
|
53
|
-
@include border-
|
|
56
|
+
@include border-start-radius(0);
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
59
|
|
|
@@ -72,11 +75,11 @@
|
|
|
72
75
|
|
|
73
76
|
&::after,
|
|
74
77
|
.dropup &::after,
|
|
75
|
-
.
|
|
78
|
+
.dropend &::after {
|
|
76
79
|
margin-left: 0;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
|
-
.
|
|
82
|
+
.dropstart &::before {
|
|
80
83
|
margin-right: 0;
|
|
81
84
|
}
|
|
82
85
|
}
|
|
@@ -129,35 +132,8 @@
|
|
|
129
132
|
@include border-bottom-radius(0);
|
|
130
133
|
}
|
|
131
134
|
|
|
132
|
-
> .btn
|
|
135
|
+
> .btn ~ .btn,
|
|
133
136
|
> .btn-group:not(:first-child) > .btn {
|
|
134
137
|
@include border-top-radius(0);
|
|
135
138
|
}
|
|
136
139
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
// Checkbox and radio options
|
|
140
|
-
//
|
|
141
|
-
// In order to support the browser's form validation feedback, powered by the
|
|
142
|
-
// `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
|
|
143
|
-
// `display: none;` or `visibility: hidden;` as that also hides the popover.
|
|
144
|
-
// Simply visually hiding the inputs via `opacity` would leave them clickable in
|
|
145
|
-
// certain cases which is prevented by using `clip` and `pointer-events`.
|
|
146
|
-
// This way, we ensure a DOM element is visible to position the popover from.
|
|
147
|
-
//
|
|
148
|
-
// See https://github.com/twbs/bootstrap/pull/12794 and
|
|
149
|
-
// https://github.com/twbs/bootstrap/pull/14559 for more information.
|
|
150
|
-
|
|
151
|
-
.btn-group-toggle {
|
|
152
|
-
> .btn,
|
|
153
|
-
> .btn-group > .btn {
|
|
154
|
-
margin-bottom: 0; // Override default `<label>` value
|
|
155
|
-
|
|
156
|
-
input[type="radio"],
|
|
157
|
-
input[type="checkbox"] {
|
|
158
|
-
position: absolute;
|
|
159
|
-
clip: rect(0, 0, 0, 0);
|
|
160
|
-
pointer-events: none;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|