bootstrap 5.3.0.alpha3 → 5.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/assets/javascripts/bootstrap/alert.js +2 -1
  4. data/assets/javascripts/bootstrap/base-component.js +3 -2
  5. data/assets/javascripts/bootstrap/button.js +2 -1
  6. data/assets/javascripts/bootstrap/carousel.js +2 -1
  7. data/assets/javascripts/bootstrap/collapse.js +2 -1
  8. data/assets/javascripts/bootstrap/dom/data.js +1 -1
  9. data/assets/javascripts/bootstrap/dom/event-handler.js +2 -1
  10. data/assets/javascripts/bootstrap/dom/manipulator.js +1 -1
  11. data/assets/javascripts/bootstrap/dom/selector-engine.js +2 -1
  12. data/assets/javascripts/bootstrap/dropdown.js +2 -1
  13. data/assets/javascripts/bootstrap/modal.js +2 -1
  14. data/assets/javascripts/bootstrap/offcanvas.js +2 -1
  15. data/assets/javascripts/bootstrap/popover.js +2 -1
  16. data/assets/javascripts/bootstrap/scrollspy.js +4 -3
  17. data/assets/javascripts/bootstrap/tab.js +2 -1
  18. data/assets/javascripts/bootstrap/toast.js +2 -1
  19. data/assets/javascripts/bootstrap/tooltip.js +2 -1
  20. data/assets/javascripts/bootstrap/util/backdrop.js +2 -1
  21. data/assets/javascripts/bootstrap/util/component-functions.js +2 -1
  22. data/assets/javascripts/bootstrap/util/config.js +2 -1
  23. data/assets/javascripts/bootstrap/util/focustrap.js +2 -1
  24. data/assets/javascripts/bootstrap/util/index.js +1 -1
  25. data/assets/javascripts/bootstrap/util/sanitizer.js +23 -29
  26. data/assets/javascripts/bootstrap/util/scrollbar.js +2 -1
  27. data/assets/javascripts/bootstrap/util/swipe.js +2 -1
  28. data/assets/javascripts/bootstrap/util/template-factory.js +2 -1
  29. data/assets/javascripts/bootstrap-sprockets.js +11 -11
  30. data/assets/javascripts/bootstrap.js +49 -32
  31. data/assets/javascripts/bootstrap.min.js +2 -2
  32. data/assets/stylesheets/bootstrap/_navbar.scss +2 -1
  33. data/assets/stylesheets/bootstrap/_reboot.scss +1 -1
  34. data/assets/stylesheets/bootstrap/_root.scss +2 -6
  35. data/assets/stylesheets/bootstrap/_tables.scss +17 -10
  36. data/assets/stylesheets/bootstrap/_variables-dark.scss +1 -1
  37. data/assets/stylesheets/bootstrap/_variables.scss +2 -2
  38. data/assets/stylesheets/bootstrap/forms/_floating-labels.scss +1 -0
  39. data/assets/stylesheets/bootstrap/helpers/_color-bg.scss +0 -2
  40. data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +8 -10
  41. data/assets/stylesheets/bootstrap/mixins/_banner.scss +1 -1
  42. data/lib/bootstrap/version.rb +2 -2
  43. metadata +8 -8
@@ -3,6 +3,12 @@
3
3
  //
4
4
 
5
5
  .table {
6
+ // Reset needed for nesting tables
7
+ --#{$prefix}table-color-type: initial;
8
+ --#{$prefix}table-bg-type: initial;
9
+ --#{$prefix}table-color-state: initial;
10
+ --#{$prefix}table-bg-state: initial;
11
+ // End of reset
6
12
  --#{$prefix}table-color: #{$table-color};
7
13
  --#{$prefix}table-bg: #{$table-bg};
8
14
  --#{$prefix}table-border-color: #{$table-border-color};
@@ -16,7 +22,6 @@
16
22
 
17
23
  width: 100%;
18
24
  margin-bottom: $spacer;
19
- color: var(--#{$prefix}table-color);
20
25
  vertical-align: $table-cell-vertical-align;
21
26
  border-color: var(--#{$prefix}table-border-color);
22
27
 
@@ -27,9 +32,11 @@
27
32
  // stylelint-disable-next-line selector-max-universal
28
33
  > :not(caption) > * > * {
29
34
  padding: $table-cell-padding-y $table-cell-padding-x;
35
+ // Following the precept of cascades: https://codepen.io/miriamsuzanne/full/vYNgodb
36
+ color: var(--#{$prefix}table-color-state, var(--#{$prefix}table-color-type, var(--#{$prefix}table-color)));
30
37
  background-color: var(--#{$prefix}table-bg);
31
38
  border-bottom-width: $table-border-width;
32
- box-shadow: inset 0 0 0 9999px var(--#{$prefix}table-accent-bg);
39
+ box-shadow: inset 0 0 0 9999px var(--#{$prefix}table-bg-state, var(--#{$prefix}table-bg-type, var(--#{$prefix}table-accent-bg)));
33
40
  }
34
41
 
35
42
  > tbody {
@@ -104,16 +111,16 @@
104
111
  // For rows
105
112
  .table-striped {
106
113
  > tbody > tr:nth-of-type(#{$table-striped-order}) > * {
107
- --#{$prefix}table-accent-bg: var(--#{$prefix}table-striped-bg);
108
- color: var(--#{$prefix}table-striped-color);
114
+ --#{$prefix}table-color-type: var(--#{$prefix}table-striped-color);
115
+ --#{$prefix}table-bg-type: var(--#{$prefix}table-striped-bg);
109
116
  }
110
117
  }
111
118
 
112
119
  // For columns
113
120
  .table-striped-columns {
114
121
  > :not(caption) > tr > :nth-child(#{$table-striped-columns-order}) {
115
- --#{$prefix}table-accent-bg: var(--#{$prefix}table-striped-bg);
116
- color: var(--#{$prefix}table-striped-color);
122
+ --#{$prefix}table-color-type: var(--#{$prefix}table-striped-color);
123
+ --#{$prefix}table-bg-type: var(--#{$prefix}table-striped-bg);
117
124
  }
118
125
  }
119
126
 
@@ -122,8 +129,8 @@
122
129
  // The `.table-active` class can be added to highlight rows or cells
123
130
 
124
131
  .table-active {
125
- --#{$prefix}table-accent-bg: var(--#{$prefix}table-active-bg);
126
- color: var(--#{$prefix}table-active-color);
132
+ --#{$prefix}table-color-state: var(--#{$prefix}table-active-color);
133
+ --#{$prefix}table-bg-state: var(--#{$prefix}table-active-bg);
127
134
  }
128
135
 
129
136
  // Hover effect
@@ -132,8 +139,8 @@
132
139
 
133
140
  .table-hover {
134
141
  > tbody > tr:hover > * {
135
- --#{$prefix}table-accent-bg: var(--#{$prefix}table-hover-bg);
136
- color: var(--#{$prefix}table-hover-color);
142
+ --#{$prefix}table-color-state: var(--#{$prefix}table-hover-color);
143
+ --#{$prefix}table-bg-state: var(--#{$prefix}table-hover-bg);
137
144
  }
138
145
  }
139
146
 
@@ -49,7 +49,7 @@ $body-tertiary-bg-dark: mix($gray-800, $gray-900, 50%) !default;
49
49
  $body-emphasis-color-dark: $white !default;
50
50
  $border-color-dark: $gray-700 !default;
51
51
  $border-color-translucent-dark: rgba($white, .15) !default;
52
- $headings-color-dark: null !default;
52
+ $headings-color-dark: inherit !default;
53
53
  $link-color-dark: tint-color($primary, 40%) !default;
54
54
  $link-hover-color-dark: shift-color($link-color-dark, -$link-shade-percentage) !default;
55
55
  $code-color-dark: tint-color($code-color, 40%) !default;
@@ -655,7 +655,7 @@ $headings-font-family: null !default;
655
655
  $headings-font-style: null !default;
656
656
  $headings-font-weight: 500 !default;
657
657
  $headings-line-height: 1.2 !default;
658
- $headings-color: null !default;
658
+ $headings-color: inherit !default;
659
659
  // scss-docs-end headings-variables
660
660
 
661
661
  // scss-docs-start display-headings
@@ -731,7 +731,7 @@ $table-cell-padding-x-sm: .25rem !default;
731
731
  $table-cell-vertical-align: top !default;
732
732
 
733
733
  $table-color: var(--#{$prefix}body-color) !default;
734
- $table-bg: transparent !default;
734
+ $table-bg: var(--#{$prefix}body-bg) !default;
735
735
  $table-accent-bg: transparent !default;
736
736
 
737
737
  $table-th-font-weight: null !default;
@@ -5,6 +5,7 @@
5
5
  > .form-control-plaintext,
6
6
  > .form-select {
7
7
  height: $form-floating-height;
8
+ min-height: $form-floating-height;
8
9
  line-height: $form-floating-line-height;
9
10
  }
10
11
 
@@ -1,5 +1,3 @@
1
- // stylelint-disable function-name-case
2
-
3
1
  // All-caps `RGBA()` function used because of this Sass bug: https://github.com/sass/node-sass/issues/2251
4
2
  @each $color, $value in $theme-colors {
5
3
  $color-rgb: to-rgb($value);
@@ -1,17 +1,15 @@
1
- // stylelint-disable function-name-case
2
-
3
1
  // All-caps `RGBA()` function used because of this Sass bug: https://github.com/sass/node-sass/issues/2251
4
2
  @each $color, $value in $theme-colors {
5
3
  .link-#{$color} {
6
- color: RGBA(var(--#{$prefix}#{$color}-rgb, var(--#{$prefix}link-opacity, 1)));
7
- text-decoration-color: RGBA(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}link-underline-opacity, 1));
4
+ color: RGBA(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}link-opacity, 1)) if($enable-important-utilities, !important, null);
5
+ text-decoration-color: RGBA(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}link-underline-opacity, 1)) if($enable-important-utilities, !important, null);
8
6
 
9
7
  @if $link-shade-percentage != 0 {
10
8
  &:hover,
11
9
  &:focus {
12
10
  $hover-color: if(color-contrast($value) == $color-contrast-light, shade-color($value, $link-shade-percentage), tint-color($value, $link-shade-percentage));
13
- color: RGBA(#{to-rgb($hover-color)}, var(--#{$prefix}link-opacity, 1));
14
- text-decoration-color: RGBA(to-rgb($hover-color), var(--#{$prefix}link-underline-opacity, 1));
11
+ color: RGBA(#{to-rgb($hover-color)}, var(--#{$prefix}link-opacity, 1)) if($enable-important-utilities, !important, null);
12
+ text-decoration-color: RGBA(to-rgb($hover-color), var(--#{$prefix}link-underline-opacity, 1)) if($enable-important-utilities, !important, null);
15
13
  }
16
14
  }
17
15
  }
@@ -19,14 +17,14 @@
19
17
 
20
18
  // One-off special link helper as a bridge until v6
21
19
  .link-body-emphasis {
22
- color: RGBA(var(--#{$prefix}emphasis-color-rgb), var(--#{$prefix}link-opacity, 1));
23
- text-decoration-color: RGBA(var(--#{$prefix}emphasis-color-rgb), var(--#{$prefix}link-underline-opacity, 1));
20
+ color: RGBA(var(--#{$prefix}emphasis-color-rgb), var(--#{$prefix}link-opacity, 1)) if($enable-important-utilities, !important, null);
21
+ text-decoration-color: RGBA(var(--#{$prefix}emphasis-color-rgb), var(--#{$prefix}link-underline-opacity, 1)) if($enable-important-utilities, !important, null);
24
22
 
25
23
  @if $link-shade-percentage != 0 {
26
24
  &:hover,
27
25
  &:focus {
28
- color: RGBA(var(--#{$prefix}emphasis-color-rgb), var(--#{$prefix}link-opacity, .75));
29
- text-decoration-color: RGBA(var(--#{$prefix}emphasis-color-rgb), var(--#{$prefix}link-underline-opacity, .75));
26
+ color: RGBA(var(--#{$prefix}emphasis-color-rgb), var(--#{$prefix}link-opacity, .75)) if($enable-important-utilities, !important, null);
27
+ text-decoration-color: RGBA(var(--#{$prefix}emphasis-color-rgb), var(--#{$prefix}link-underline-opacity, .75)) if($enable-important-utilities, !important, null);
30
28
  }
31
29
  }
32
30
  }
@@ -1,6 +1,6 @@
1
1
  @mixin bsBanner($file) {
2
2
  /*!
3
- * Bootstrap #{$file} v5.3.0-alpha3 (https://getbootstrap.com/)
3
+ * Bootstrap #{$file} v5.3.0 (https://getbootstrap.com/)
4
4
  * Copyright 2011-2023 The Bootstrap Authors
5
5
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
6
6
  */
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bootstrap
4
- VERSION = '5.3.0.alpha3'
5
- BOOTSTRAP_SHA = 'ac576614a5515e429f27e756fad81d5aa05e95a6'
4
+ VERSION = '5.3.0'
5
+ BOOTSTRAP_SHA = '60098ac499d30aa50575b0b7137391c06ef25429'
6
6
  end
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.3.0.alpha3
4
+ version: 5.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twitter, Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-12 00:00:00.000000000 Z
11
+ date: 2023-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: popper_js
@@ -198,7 +198,7 @@ dependencies:
198
198
  - - ">="
199
199
  - !ruby/object:Gem::Version
200
200
  version: '0'
201
- description:
201
+ description:
202
202
  email: glex.spb@gmail.com
203
203
  executables: []
204
204
  extensions: []
@@ -390,7 +390,7 @@ homepage: https://github.com/twbs/bootstrap-rubygem
390
390
  licenses:
391
391
  - MIT
392
392
  metadata: {}
393
- post_install_message:
393
+ post_install_message:
394
394
  rdoc_options: []
395
395
  require_paths:
396
396
  - lib
@@ -401,12 +401,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
401
401
  version: 2.3.3
402
402
  required_rubygems_version: !ruby/object:Gem::Requirement
403
403
  requirements:
404
- - - ">"
404
+ - - ">="
405
405
  - !ruby/object:Gem::Version
406
- version: 1.3.1
406
+ version: '0'
407
407
  requirements: []
408
408
  rubygems_version: 3.1.2
409
- signing_key:
409
+ signing_key:
410
410
  specification_version: 4
411
411
  summary: The most popular HTML, CSS, and JavaScript framework for developing responsive,
412
412
  mobile first projects on the web. http://getbootstrap.com