bootstrap 4.6.2.1 → 5.0.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +0 -4
- data/README.md +1 -7
- data/Rakefile +4 -16
- data/assets/javascripts/bootstrap/alert.js +148 -73
- data/assets/javascripts/bootstrap/button.js +71 -154
- data/assets/javascripts/bootstrap/carousel.js +315 -209
- data/assets/javascripts/bootstrap/collapse.js +307 -153
- data/assets/javascripts/bootstrap/dom/data.js +81 -0
- data/assets/javascripts/bootstrap/dom/event-handler.js +311 -0
- data/assets/javascripts/bootstrap/dom/manipulator.js +100 -0
- data/assets/javascripts/bootstrap/dom/polyfill.js +110 -0
- data/assets/javascripts/bootstrap/dom/selector-engine.js +98 -0
- data/assets/javascripts/bootstrap/dropdown.js +257 -205
- data/assets/javascripts/bootstrap/modal.js +354 -250
- data/assets/javascripts/bootstrap/popover.js +85 -94
- data/assets/javascripts/bootstrap/scrollspy.js +179 -107
- data/assets/javascripts/bootstrap/tab.js +170 -99
- data/assets/javascripts/bootstrap/toast.js +181 -110
- data/assets/javascripts/bootstrap/tooltip.js +375 -226
- data/assets/javascripts/bootstrap-sprockets.js +5 -1
- data/assets/javascripts/bootstrap.js +2260 -1550
- data/assets/javascripts/bootstrap.min.js +3 -3
- data/assets/stylesheets/_bootstrap-grid.scss +53 -18
- data/assets/stylesheets/_bootstrap-reboot.scss +6 -3
- data/assets/stylesheets/_bootstrap.scss +16 -10
- data/assets/stylesheets/bootstrap/_alert.scss +3 -4
- data/assets/stylesheets/bootstrap/_badge.scss +2 -27
- data/assets/stylesheets/bootstrap/_breadcrumb.scss +5 -17
- data/assets/stylesheets/bootstrap/_button-group.scss +16 -38
- data/assets/stylesheets/bootstrap/_buttons.scss +27 -45
- data/assets/stylesheets/bootstrap/_card.scss +22 -68
- data/assets/stylesheets/bootstrap/_carousel.scss +15 -20
- data/assets/stylesheets/bootstrap/_close.scss +9 -13
- data/assets/stylesheets/bootstrap/_containers.scss +41 -0
- data/assets/stylesheets/bootstrap/_dropdown.scss +12 -9
- data/assets/stylesheets/bootstrap/_forms.scss +9 -347
- data/assets/stylesheets/bootstrap/_functions.scss +82 -69
- data/assets/stylesheets/bootstrap/_grid.scss +3 -54
- data/assets/stylesheets/bootstrap/_helpers.scss +7 -0
- data/assets/stylesheets/bootstrap/_images.scss +1 -1
- data/assets/stylesheets/bootstrap/_list-group.scss +7 -4
- data/assets/stylesheets/bootstrap/_mixins.scss +6 -12
- data/assets/stylesheets/bootstrap/_modal.scss +36 -41
- data/assets/stylesheets/bootstrap/_nav.scss +7 -9
- data/assets/stylesheets/bootstrap/_navbar.scss +42 -82
- data/assets/stylesheets/bootstrap/_pagination.scss +7 -20
- data/assets/stylesheets/bootstrap/_popover.scss +14 -14
- data/assets/stylesheets/bootstrap/_progress.scss +3 -5
- data/assets/stylesheets/bootstrap/_reboot.scss +304 -172
- data/assets/stylesheets/bootstrap/_root.scss +5 -8
- data/assets/stylesheets/bootstrap/_spinners.scss +8 -17
- data/assets/stylesheets/bootstrap/_tables.scss +80 -114
- data/assets/stylesheets/bootstrap/_toasts.scss +2 -4
- data/assets/stylesheets/bootstrap/_tooltip.scss +9 -9
- data/assets/stylesheets/bootstrap/_transitions.scss +0 -7
- data/assets/stylesheets/bootstrap/_type.scss +38 -59
- data/assets/stylesheets/bootstrap/_utilities.scss +503 -18
- data/assets/stylesheets/bootstrap/_variables.scss +548 -437
- data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +18 -0
- data/assets/stylesheets/bootstrap/forms/_form-check.scss +142 -0
- data/assets/stylesheets/bootstrap/forms/_form-control.scss +116 -0
- data/assets/stylesheets/bootstrap/forms/_form-file.scss +91 -0
- data/assets/stylesheets/bootstrap/forms/_form-range.scss +136 -0
- data/assets/stylesheets/bootstrap/forms/_form-select.scss +82 -0
- data/assets/stylesheets/bootstrap/forms/_form-text.scss +11 -0
- data/assets/stylesheets/bootstrap/forms/_input-group.scss +140 -0
- data/assets/stylesheets/bootstrap/forms/_labels.scss +36 -0
- data/assets/stylesheets/bootstrap/forms/_validation.scss +12 -0
- data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +12 -0
- data/assets/stylesheets/bootstrap/helpers/_embed.scss +31 -0
- data/assets/stylesheets/bootstrap/helpers/_position.scss +30 -0
- data/assets/stylesheets/bootstrap/helpers/_screenreaders.scss +8 -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/mixins/_alert.scss +0 -4
- data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +11 -8
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +62 -47
- data/assets/stylesheets/bootstrap/mixins/_caret.scss +4 -4
- data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +2 -0
- data/assets/stylesheets/bootstrap/mixins/_container.scss +9 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +23 -85
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +9 -11
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +86 -34
- data/assets/stylesheets/bootstrap/mixins/_image.scss +1 -21
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +2 -1
- data/assets/stylesheets/bootstrap/mixins/_lists.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_pagination.scss +15 -8
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +3 -3
- data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +18 -24
- data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +21 -0
- data/assets/stylesheets/bootstrap/mixins/_transition.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_utilities.scss +49 -0
- data/assets/stylesheets/bootstrap/utilities/_api.scss +47 -0
- data/assets/stylesheets/bootstrap/vendor/_rfs.scss +214 -130
- data/bootstrap.gemspec +3 -1
- data/lib/bootstrap/engine.rb +1 -17
- data/lib/bootstrap/version.rb +2 -2
- data/tasks/updater/js.rb +6 -18
- data/tasks/updater/network.rb +1 -7
- metadata +49 -47
- data/assets/javascripts/bootstrap/util.js +0 -189
- data/assets/stylesheets/bootstrap/_code.scss +0 -48
- data/assets/stylesheets/bootstrap/_custom-forms.scss +0 -526
- data/assets/stylesheets/bootstrap/_input-group.scss +0 -211
- data/assets/stylesheets/bootstrap/_jumbotron.scss +0 -17
- data/assets/stylesheets/bootstrap/_media.scss +0 -8
- data/assets/stylesheets/bootstrap/_print.scss +0 -132
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -23
- 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 -80
- data/assets/stylesheets/bootstrap/mixins/_hover.scss +0 -37
- data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -11
- 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/_interactions.scss +0 -5
- 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/gemfiles/rails_7_0_dartsass.gemfile +0 -8
- data/test/gemfiles/rails_7_0_sassc.gemfile +0 -8
- /data/assets/stylesheets/bootstrap/{utilities → helpers}/_clearfix.scss +0 -0
@@ -1,19 +1,16 @@
|
|
1
1
|
:root {
|
2
2
|
// Custom variable values only support SassScript inside `#{}`.
|
3
3
|
@each $color, $value in $colors {
|
4
|
-
|
4
|
+
--bs-#{$color}: #{$value};
|
5
5
|
}
|
6
6
|
|
7
7
|
@each $color, $value in $theme-colors {
|
8
|
-
|
9
|
-
}
|
10
|
-
|
11
|
-
@each $bp, $value in $grid-breakpoints {
|
12
|
-
--breakpoint-#{$bp}: #{$value};
|
8
|
+
--bs-#{$color}: #{$value};
|
13
9
|
}
|
14
10
|
|
15
11
|
// Use `inspect` for lists so that quoted items keep the quotes.
|
16
12
|
// See https://github.com/sass/sass/issues/2383#issuecomment-336349172
|
17
|
-
--font-
|
18
|
-
--font-
|
13
|
+
--bs-font-sans-serif: #{inspect($font-family-sans-serif)};
|
14
|
+
--bs-font-monospace: #{inspect($font-family-monospace)};
|
15
|
+
--bs-gradient: #{$gradient};
|
19
16
|
}
|
@@ -10,12 +10,12 @@
|
|
10
10
|
display: inline-block;
|
11
11
|
width: $spinner-width;
|
12
12
|
height: $spinner-height;
|
13
|
-
vertical-align:
|
14
|
-
border: $spinner-border-width solid
|
13
|
+
vertical-align: text-bottom;
|
14
|
+
border: $spinner-border-width solid currentColor;
|
15
15
|
border-right-color: transparent;
|
16
|
-
// stylelint-disable-next-line property-
|
16
|
+
// stylelint-disable-next-line property-blacklist
|
17
17
|
border-radius: 50%;
|
18
|
-
animation:
|
18
|
+
animation: spinner-border $spinner-animation-speed linear infinite;
|
19
19
|
}
|
20
20
|
|
21
21
|
.spinner-border-sm {
|
@@ -42,24 +42,15 @@
|
|
42
42
|
display: inline-block;
|
43
43
|
width: $spinner-width;
|
44
44
|
height: $spinner-height;
|
45
|
-
vertical-align:
|
46
|
-
background-color:
|
47
|
-
// stylelint-disable-next-line property-
|
45
|
+
vertical-align: text-bottom;
|
46
|
+
background-color: currentColor;
|
47
|
+
// stylelint-disable-next-line property-blacklist
|
48
48
|
border-radius: 50%;
|
49
49
|
opacity: 0;
|
50
|
-
animation:
|
50
|
+
animation: spinner-grow $spinner-animation-speed linear infinite;
|
51
51
|
}
|
52
52
|
|
53
53
|
.spinner-grow-sm {
|
54
54
|
width: $spinner-width-sm;
|
55
55
|
height: $spinner-height-sm;
|
56
56
|
}
|
57
|
-
|
58
|
-
@if $enable-prefers-reduced-motion-media-query {
|
59
|
-
@media (prefers-reduced-motion: reduce) {
|
60
|
-
.spinner-border,
|
61
|
-
.spinner-grow {
|
62
|
-
animation-duration: 1.5s;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
}
|
@@ -3,37 +3,65 @@
|
|
3
3
|
//
|
4
4
|
|
5
5
|
.table {
|
6
|
+
--bs-table-bg: #{$table-bg};
|
7
|
+
--bs-table-accent-bg: transparent;
|
8
|
+
--bs-table-striped-color: #{$table-striped-color};
|
9
|
+
--bs-table-striped-bg: #{$table-striped-bg};
|
10
|
+
--bs-table-active-color: #{$table-active-color};
|
11
|
+
--bs-table-active-bg: #{$table-active-bg};
|
12
|
+
--bs-table-hover-color: #{$table-hover-color};
|
13
|
+
--bs-table-hover-bg: #{$table-hover-bg};
|
14
|
+
|
6
15
|
width: 100%;
|
7
16
|
margin-bottom: $spacer;
|
8
17
|
color: $table-color;
|
9
|
-
|
18
|
+
vertical-align: $table-cell-vertical-align;
|
19
|
+
border-color: $table-border-color;
|
20
|
+
|
21
|
+
// Target th & td
|
22
|
+
// We need the child combinator to prevent styles leaking to nested tables which doesn't have a `.table` class.
|
23
|
+
// We use the universal selectors here to simplify the selector (else we would need 6 different selectors).
|
24
|
+
// Another advantage is that this generates less code and makes the selector less specific making it easier to override.
|
25
|
+
// stylelint-disable-next-line selector-max-universal
|
26
|
+
> :not(caption) > * > * {
|
27
|
+
padding: $table-cell-padding-y $table-cell-padding-x;
|
28
|
+
background-color: var(--bs-table-bg);
|
29
|
+
background-image: linear-gradient(var(--bs-table-accent-bg), var(--bs-table-accent-bg));
|
30
|
+
border-bottom-width: $table-border-width;
|
31
|
+
}
|
10
32
|
|
11
|
-
|
12
|
-
|
13
|
-
padding: $table-cell-padding;
|
14
|
-
vertical-align: top;
|
15
|
-
border-top: $table-border-width solid $table-border-color;
|
33
|
+
> tbody {
|
34
|
+
vertical-align: inherit;
|
16
35
|
}
|
17
36
|
|
18
|
-
thead
|
37
|
+
> thead {
|
19
38
|
vertical-align: bottom;
|
20
|
-
border-bottom: (2 * $table-border-width) solid $table-border-color;
|
21
39
|
}
|
22
40
|
|
23
|
-
|
24
|
-
|
41
|
+
// Highlight border color between thead, tbody and tfoot.
|
42
|
+
> :not(:last-child) > :last-child > * {
|
43
|
+
border-bottom-color: $table-group-seperator-color;
|
25
44
|
}
|
26
45
|
}
|
27
46
|
|
28
47
|
|
48
|
+
//
|
49
|
+
// Change placement of captions with a class
|
50
|
+
//
|
51
|
+
|
52
|
+
.caption-top {
|
53
|
+
caption-side: top;
|
54
|
+
}
|
55
|
+
|
56
|
+
|
29
57
|
//
|
30
58
|
// Condensed table w/ half padding
|
31
59
|
//
|
32
60
|
|
33
61
|
.table-sm {
|
34
|
-
|
35
|
-
|
36
|
-
padding: $table-cell-padding-sm;
|
62
|
+
// stylelint-disable-next-line selector-max-universal
|
63
|
+
> :not(caption) > * > * {
|
64
|
+
padding: $table-cell-padding-y-sm $table-cell-padding-x-sm;
|
37
65
|
}
|
38
66
|
}
|
39
67
|
|
@@ -41,29 +69,27 @@
|
|
41
69
|
// Border versions
|
42
70
|
//
|
43
71
|
// Add or remove borders all around the table and between all the columns.
|
72
|
+
//
|
73
|
+
// When borders are added on all sides of the cells, the corners can render odd when
|
74
|
+
// these borders do not have the same color or if they are semi-transparent.
|
75
|
+
// Therefor we add top and border bottoms to the `tr`s and left and right borders
|
76
|
+
// to the `td`s or `th`s
|
44
77
|
|
45
78
|
.table-bordered {
|
46
|
-
|
79
|
+
> :not(caption) > * {
|
80
|
+
border-width: $table-border-width 0;
|
47
81
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
}
|
52
|
-
|
53
|
-
thead {
|
54
|
-
th,
|
55
|
-
td {
|
56
|
-
border-bottom-width: 2 * $table-border-width;
|
82
|
+
// stylelint-disable-next-line selector-max-universal
|
83
|
+
> * {
|
84
|
+
border-width: 0 $table-border-width;
|
57
85
|
}
|
58
86
|
}
|
59
87
|
}
|
60
88
|
|
61
89
|
.table-borderless {
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
tbody + tbody {
|
66
|
-
border: 0;
|
90
|
+
// stylelint-disable-next-line selector-max-universal
|
91
|
+
> :not(caption) > * > * {
|
92
|
+
border-bottom-width: 0;
|
67
93
|
}
|
68
94
|
}
|
69
95
|
|
@@ -72,114 +98,54 @@
|
|
72
98
|
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
73
99
|
|
74
100
|
.table-striped {
|
75
|
-
tbody tr:nth-of-type(#{$table-striped-order}) {
|
76
|
-
|
101
|
+
> tbody > tr:nth-of-type(#{$table-striped-order}) {
|
102
|
+
--bs-table-accent-bg: var(--bs-table-striped-bg);
|
103
|
+
color: var(--bs-table-striped-color);
|
77
104
|
}
|
78
105
|
}
|
79
106
|
|
107
|
+
// Active table
|
108
|
+
//
|
109
|
+
// The `.table-active` class can be added to highlight rows or cells
|
110
|
+
|
111
|
+
.table-active {
|
112
|
+
--bs-table-accent-bg: var(--bs-table-active-bg);
|
113
|
+
color: var(--bs-table-active-color);
|
114
|
+
}
|
80
115
|
|
81
116
|
// Hover effect
|
82
117
|
//
|
83
118
|
// Placed here since it has to come after the potential zebra striping
|
84
119
|
|
85
120
|
.table-hover {
|
86
|
-
tbody tr {
|
87
|
-
|
88
|
-
|
89
|
-
background-color: $table-hover-bg;
|
90
|
-
}
|
121
|
+
> tbody > tr:hover {
|
122
|
+
--bs-table-accent-bg: var(--bs-table-hover-bg);
|
123
|
+
color: var(--bs-table-hover-color);
|
91
124
|
}
|
92
125
|
}
|
93
126
|
|
94
127
|
|
95
|
-
// Table
|
96
|
-
//
|
97
|
-
// Exact selectors below required to override `.table-striped` and prevent
|
98
|
-
// inheritance to nested tables.
|
99
|
-
|
100
|
-
@each $color, $value in $theme-colors {
|
101
|
-
@include table-row-variant($color, theme-color-level($color, $table-bg-level), theme-color-level($color, $table-border-level));
|
102
|
-
}
|
103
|
-
|
104
|
-
@include table-row-variant(active, $table-active-bg);
|
105
|
-
|
106
|
-
|
107
|
-
// Dark styles
|
128
|
+
// Table variants
|
108
129
|
//
|
109
|
-
//
|
110
|
-
|
111
|
-
// stylelint-disable-next-line no-duplicate-selectors
|
112
|
-
.table {
|
113
|
-
.thead-dark {
|
114
|
-
th {
|
115
|
-
color: $table-dark-color;
|
116
|
-
background-color: $table-dark-bg;
|
117
|
-
border-color: $table-dark-border-color;
|
118
|
-
}
|
119
|
-
}
|
130
|
+
// Table variants set the table cell backgrounds, border colors
|
131
|
+
// and the colors of the striped, hovered & active tables
|
120
132
|
|
121
|
-
|
122
|
-
|
123
|
-
color: $table-head-color;
|
124
|
-
background-color: $table-head-bg;
|
125
|
-
border-color: $table-border-color;
|
126
|
-
}
|
127
|
-
}
|
133
|
+
@each $color, $value in $table-variants {
|
134
|
+
@include table-variant($color, $value);
|
128
135
|
}
|
129
136
|
|
130
|
-
.table-dark {
|
131
|
-
color: $table-dark-color;
|
132
|
-
background-color: $table-dark-bg;
|
133
|
-
|
134
|
-
th,
|
135
|
-
td,
|
136
|
-
thead th {
|
137
|
-
border-color: $table-dark-border-color;
|
138
|
-
}
|
139
|
-
|
140
|
-
&.table-bordered {
|
141
|
-
border: 0;
|
142
|
-
}
|
143
|
-
|
144
|
-
&.table-striped {
|
145
|
-
tbody tr:nth-of-type(#{$table-striped-order}) {
|
146
|
-
background-color: $table-dark-accent-bg;
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
&.table-hover {
|
151
|
-
tbody tr {
|
152
|
-
@include hover() {
|
153
|
-
color: $table-dark-hover-color;
|
154
|
-
background-color: $table-dark-hover-bg;
|
155
|
-
}
|
156
|
-
}
|
157
|
-
}
|
158
|
-
}
|
159
|
-
|
160
|
-
|
161
137
|
// Responsive tables
|
162
138
|
//
|
163
139
|
// Generate series of `.table-responsive-*` classes for configuring the screen
|
164
140
|
// size of where your table will overflow.
|
165
141
|
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
display: block;
|
174
|
-
width: 100%;
|
175
|
-
overflow-x: auto;
|
176
|
-
-webkit-overflow-scrolling: touch;
|
177
|
-
|
178
|
-
// Prevent double border on horizontal scroll due to use of `display: block;`
|
179
|
-
> .table-bordered {
|
180
|
-
border: 0;
|
181
|
-
}
|
182
|
-
}
|
142
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
143
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
144
|
+
|
145
|
+
@include media-breakpoint-down($breakpoint) {
|
146
|
+
.table-responsive#{$infix} {
|
147
|
+
overflow-x: auto;
|
148
|
+
-webkit-overflow-scrolling: touch;
|
183
149
|
}
|
184
150
|
}
|
185
151
|
}
|
@@ -1,14 +1,13 @@
|
|
1
1
|
.toast {
|
2
|
-
// Prevents from shrinking in IE11, when in a flex container
|
3
|
-
// See https://github.com/twbs/bootstrap/issues/28341
|
4
|
-
flex-basis: $toast-max-width;
|
5
2
|
max-width: $toast-max-width;
|
3
|
+
overflow: hidden; // cheap rounded corners on nested items
|
6
4
|
@include font-size($toast-font-size);
|
7
5
|
color: $toast-color;
|
8
6
|
background-color: $toast-background-color;
|
9
7
|
background-clip: padding-box;
|
10
8
|
border: $toast-border-width solid $toast-border-color;
|
11
9
|
box-shadow: $toast-box-shadow;
|
10
|
+
backdrop-filter: blur(10px);
|
12
11
|
opacity: 0;
|
13
12
|
@include border-radius($toast-border-radius);
|
14
13
|
|
@@ -38,7 +37,6 @@
|
|
38
37
|
background-color: $toast-header-background-color;
|
39
38
|
background-clip: padding-box;
|
40
39
|
border-bottom: $toast-border-width solid $toast-header-border-color;
|
41
|
-
@include border-top-radius(subtract($toast-border-radius, $toast-border-width));
|
42
40
|
}
|
43
41
|
|
44
42
|
.toast-body {
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
&.show { opacity: $tooltip-opacity; }
|
16
16
|
|
17
|
-
.arrow {
|
17
|
+
.tooltip-arrow {
|
18
18
|
position: absolute;
|
19
19
|
display: block;
|
20
20
|
width: $tooltip-arrow-width;
|
@@ -32,12 +32,12 @@
|
|
32
32
|
.bs-tooltip-top {
|
33
33
|
padding: $tooltip-arrow-height 0;
|
34
34
|
|
35
|
-
.arrow {
|
35
|
+
.tooltip-arrow {
|
36
36
|
bottom: 0;
|
37
37
|
|
38
38
|
&::before {
|
39
39
|
top: 0;
|
40
|
-
border-width: $tooltip-arrow-height ($tooltip-arrow-width
|
40
|
+
border-width: $tooltip-arrow-height ($tooltip-arrow-width / 2) 0;
|
41
41
|
border-top-color: $tooltip-arrow-color;
|
42
42
|
}
|
43
43
|
}
|
@@ -46,14 +46,14 @@
|
|
46
46
|
.bs-tooltip-right {
|
47
47
|
padding: 0 $tooltip-arrow-height;
|
48
48
|
|
49
|
-
.arrow {
|
49
|
+
.tooltip-arrow {
|
50
50
|
left: 0;
|
51
51
|
width: $tooltip-arrow-height;
|
52
52
|
height: $tooltip-arrow-width;
|
53
53
|
|
54
54
|
&::before {
|
55
55
|
right: 0;
|
56
|
-
border-width: ($tooltip-arrow-width
|
56
|
+
border-width: ($tooltip-arrow-width / 2) $tooltip-arrow-height ($tooltip-arrow-width / 2) 0;
|
57
57
|
border-right-color: $tooltip-arrow-color;
|
58
58
|
}
|
59
59
|
}
|
@@ -62,12 +62,12 @@
|
|
62
62
|
.bs-tooltip-bottom {
|
63
63
|
padding: $tooltip-arrow-height 0;
|
64
64
|
|
65
|
-
.arrow {
|
65
|
+
.tooltip-arrow {
|
66
66
|
top: 0;
|
67
67
|
|
68
68
|
&::before {
|
69
69
|
bottom: 0;
|
70
|
-
border-width: 0 ($tooltip-arrow-width
|
70
|
+
border-width: 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height;
|
71
71
|
border-bottom-color: $tooltip-arrow-color;
|
72
72
|
}
|
73
73
|
}
|
@@ -76,14 +76,14 @@
|
|
76
76
|
.bs-tooltip-left {
|
77
77
|
padding: 0 $tooltip-arrow-height;
|
78
78
|
|
79
|
-
.arrow {
|
79
|
+
.tooltip-arrow {
|
80
80
|
right: 0;
|
81
81
|
width: $tooltip-arrow-height;
|
82
82
|
height: $tooltip-arrow-width;
|
83
83
|
|
84
84
|
&::before {
|
85
85
|
left: 0;
|
86
|
-
border-width: ($tooltip-arrow-width
|
86
|
+
border-width: ($tooltip-arrow-width / 2) 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height;
|
87
87
|
border-left-color: $tooltip-arrow-color;
|
88
88
|
}
|
89
89
|
}
|
@@ -1,82 +1,56 @@
|
|
1
|
-
// stylelint-disable selector-list-comma-newline-after
|
2
|
-
|
3
1
|
//
|
4
2
|
// Headings
|
5
3
|
//
|
6
|
-
|
7
|
-
h1
|
8
|
-
.h1, .h2, .h3, .h4, .h5, .h6 {
|
9
|
-
margin-bottom: $headings-margin-bottom;
|
10
|
-
font-family: $headings-font-family;
|
11
|
-
font-weight: $headings-font-weight;
|
12
|
-
line-height: $headings-line-height;
|
13
|
-
color: $headings-color;
|
4
|
+
.h1 {
|
5
|
+
@extend h1;
|
14
6
|
}
|
15
7
|
|
16
|
-
|
17
|
-
|
18
|
-
h3, .h3 { @include font-size($h3-font-size); }
|
19
|
-
h4, .h4 { @include font-size($h4-font-size); }
|
20
|
-
h5, .h5 { @include font-size($h5-font-size); }
|
21
|
-
h6, .h6 { @include font-size($h6-font-size); }
|
22
|
-
|
23
|
-
.lead {
|
24
|
-
@include font-size($lead-font-size);
|
25
|
-
font-weight: $lead-font-weight;
|
8
|
+
.h2 {
|
9
|
+
@extend h2;
|
26
10
|
}
|
27
11
|
|
28
|
-
|
29
|
-
|
30
|
-
@include font-size($display1-size);
|
31
|
-
font-weight: $display1-weight;
|
32
|
-
line-height: $display-line-height;
|
12
|
+
.h3 {
|
13
|
+
@extend h3;
|
33
14
|
}
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
line-height: $display-line-height;
|
15
|
+
|
16
|
+
.h4 {
|
17
|
+
@extend h4;
|
38
18
|
}
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
line-height: $display-line-height;
|
19
|
+
|
20
|
+
.h5 {
|
21
|
+
@extend h5;
|
43
22
|
}
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
line-height: $display-line-height;
|
23
|
+
|
24
|
+
.h6 {
|
25
|
+
@extend h6;
|
48
26
|
}
|
49
27
|
|
50
28
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
hr {
|
56
|
-
margin-top: $hr-margin-y;
|
57
|
-
margin-bottom: $hr-margin-y;
|
58
|
-
border: 0;
|
59
|
-
border-top: $hr-border-width solid $hr-border-color;
|
29
|
+
.lead {
|
30
|
+
@include font-size($lead-font-size);
|
31
|
+
font-weight: $lead-font-weight;
|
60
32
|
}
|
61
33
|
|
34
|
+
// Type display classes
|
35
|
+
@each $display, $font-size in $display-font-sizes {
|
36
|
+
.display-#{$display} {
|
37
|
+
@include font-size($font-size);
|
38
|
+
font-weight: $display-font-weight;
|
39
|
+
line-height: $display-line-height;
|
40
|
+
}
|
41
|
+
}
|
62
42
|
|
63
43
|
//
|
64
44
|
// Emphasis
|
65
45
|
//
|
66
|
-
|
67
|
-
small,
|
68
46
|
.small {
|
69
|
-
@
|
70
|
-
font-weight: $font-weight-normal;
|
47
|
+
@extend small;
|
71
48
|
}
|
72
49
|
|
73
|
-
mark,
|
74
50
|
.mark {
|
75
|
-
|
76
|
-
background-color: $mark-bg;
|
51
|
+
@extend mark;
|
77
52
|
}
|
78
53
|
|
79
|
-
|
80
54
|
//
|
81
55
|
// Lists
|
82
56
|
//
|
@@ -104,20 +78,25 @@ mark,
|
|
104
78
|
|
105
79
|
// Builds on `abbr`
|
106
80
|
.initialism {
|
107
|
-
@include font-size(
|
81
|
+
@include font-size($initialism-font-size);
|
108
82
|
text-transform: uppercase;
|
109
83
|
}
|
110
84
|
|
111
85
|
// Blockquotes
|
112
86
|
.blockquote {
|
113
|
-
margin-bottom: $
|
87
|
+
margin-bottom: $blockquote-margin-y;
|
114
88
|
@include font-size($blockquote-font-size);
|
89
|
+
|
90
|
+
> :last-child {
|
91
|
+
margin-bottom: 0;
|
92
|
+
}
|
115
93
|
}
|
116
94
|
|
117
95
|
.blockquote-footer {
|
118
|
-
|
119
|
-
|
120
|
-
|
96
|
+
margin-top: -$blockquote-margin-y;
|
97
|
+
margin-bottom: $blockquote-margin-y;
|
98
|
+
@include font-size($blockquote-footer-font-size);
|
99
|
+
color: $blockquote-footer-color;
|
121
100
|
|
122
101
|
&::before {
|
123
102
|
content: "\2014\00A0"; // em dash, nbsp
|