jekyll-theme-petridish 3.0 → 3.1.0

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 (107) hide show
  1. checksums.yaml +4 -4
  2. data/_config.yml +5 -4
  3. data/_data/team.yml +3 -1
  4. data/_includes/footer.html +45 -23
  5. data/_includes/head.html +5 -5
  6. data/_includes/header.html +1 -1
  7. data/_includes/navbar.html +2 -2
  8. data/_layouts/home.html +10 -32
  9. data/_layouts/team.html +20 -8
  10. data/_sass/bootstrap/_accordion.scss +73 -33
  11. data/_sass/bootstrap/_alert.scss +25 -14
  12. data/_sass/bootstrap/_badge.scss +14 -5
  13. data/_sass/bootstrap/_breadcrumb.scss +22 -10
  14. data/_sass/bootstrap/_button-group.scss +6 -3
  15. data/_sass/bootstrap/_buttons.scss +133 -28
  16. data/_sass/bootstrap/_card.scss +60 -37
  17. data/_sass/bootstrap/_carousel.scss +22 -15
  18. data/_sass/bootstrap/_close.scss +33 -10
  19. data/_sass/bootstrap/_containers.scss +1 -1
  20. data/_sass/bootstrap/_dropdown.scss +86 -76
  21. data/_sass/bootstrap/_functions.scss +10 -10
  22. data/_sass/bootstrap/_grid.scss +9 -3
  23. data/_sass/bootstrap/_helpers.scss +3 -0
  24. data/_sass/bootstrap/_list-group.scss +60 -37
  25. data/_sass/bootstrap/_maps.scss +174 -0
  26. data/_sass/bootstrap/_mixins.scss +1 -2
  27. data/_sass/bootstrap/_modal.scss +71 -44
  28. data/_sass/bootstrap/_nav.scss +86 -28
  29. data/_sass/bootstrap/_navbar.scss +101 -147
  30. data/_sass/bootstrap/_offcanvas.scss +121 -61
  31. data/_sass/bootstrap/_pagination.scss +66 -21
  32. data/_sass/bootstrap/_placeholders.scss +1 -1
  33. data/_sass/bootstrap/_popover.scss +90 -52
  34. data/_sass/bootstrap/_progress.scss +30 -10
  35. data/_sass/bootstrap/_reboot.scss +31 -45
  36. data/_sass/bootstrap/_root.scss +155 -22
  37. data/_sass/bootstrap/_spinners.scss +38 -22
  38. data/_sass/bootstrap/_tables.scss +40 -24
  39. data/_sass/bootstrap/_toasts.scss +38 -16
  40. data/_sass/bootstrap/_tooltip.scss +60 -56
  41. data/_sass/bootstrap/_type.scss +2 -0
  42. data/_sass/bootstrap/_utilities.scss +209 -33
  43. data/_sass/bootstrap/_variables-dark.scss +87 -0
  44. data/_sass/bootstrap/_variables.scss +404 -294
  45. data/_sass/bootstrap/bootstrap-grid.scss +4 -9
  46. data/_sass/bootstrap/bootstrap-reboot.scss +4 -7
  47. data/_sass/bootstrap/bootstrap-utilities.scss +7 -6
  48. data/_sass/bootstrap/bootstrap.scss +5 -6
  49. data/_sass/bootstrap/forms/_floating-labels.scss +37 -5
  50. data/_sass/bootstrap/forms/_form-check.scss +51 -14
  51. data/_sass/bootstrap/forms/_form-control.scss +36 -41
  52. data/_sass/bootstrap/forms/_form-range.scss +3 -3
  53. data/_sass/bootstrap/forms/_form-select.scss +12 -4
  54. data/_sass/bootstrap/forms/_input-group.scss +20 -9
  55. data/_sass/bootstrap/helpers/_color-bg.scss +7 -0
  56. data/_sass/bootstrap/helpers/_colored-links.scss +20 -2
  57. data/_sass/bootstrap/helpers/_focus-ring.scss +5 -0
  58. data/_sass/bootstrap/helpers/_icon-link.scss +25 -0
  59. data/_sass/bootstrap/helpers/_position.scss +7 -1
  60. data/_sass/bootstrap/helpers/_ratio.scss +2 -2
  61. data/_sass/bootstrap/helpers/_vr.scss +2 -2
  62. data/_sass/bootstrap/mixins/_alert.scss +11 -4
  63. data/_sass/bootstrap/mixins/_banner.scss +7 -0
  64. data/_sass/bootstrap/mixins/_breakpoints.scss +8 -8
  65. data/_sass/bootstrap/mixins/_buttons.scss +32 -95
  66. data/_sass/bootstrap/mixins/_caret.scss +30 -25
  67. data/_sass/bootstrap/mixins/_color-mode.scss +21 -0
  68. data/_sass/bootstrap/mixins/_container.scss +4 -2
  69. data/_sass/bootstrap/mixins/_forms.scss +38 -19
  70. data/_sass/bootstrap/mixins/_gradients.scss +1 -1
  71. data/_sass/bootstrap/mixins/_grid.scss +14 -14
  72. data/_sass/bootstrap/mixins/_list-group.scss +2 -0
  73. data/_sass/bootstrap/mixins/_pagination.scss +4 -25
  74. data/_sass/bootstrap/mixins/_reset-text.scss +1 -1
  75. data/_sass/bootstrap/mixins/_table-variants.scss +12 -9
  76. data/_sass/bootstrap/mixins/_utilities.scss +14 -6
  77. data/_sass/bootstrap/mixins/_visually-hidden.scss +5 -1
  78. data/_sass/bootstrap/vendor/_rfs.scss +23 -29
  79. data/assets/theme/css/fontawesome-all.min.css +6 -2
  80. data/assets/theme/js/bootstrap.min.js +3 -3
  81. data/assets/theme/js/bootstrap.min.js.map +1 -1
  82. data/assets/theme/js/jquery.min.js +2 -2
  83. data/assets/theme/js/popper.min.js +2 -2
  84. data/assets/theme/js/popper.min.js.map +1 -1
  85. data/assets/theme/webfonts/fa-brands-400.ttf +0 -0
  86. data/assets/theme/webfonts/fa-brands-400.woff2 +0 -0
  87. data/assets/theme/webfonts/fa-regular-400.ttf +0 -0
  88. data/assets/theme/webfonts/fa-regular-400.woff2 +0 -0
  89. data/assets/theme/webfonts/fa-solid-900.ttf +0 -0
  90. data/assets/theme/webfonts/fa-solid-900.woff2 +0 -0
  91. data/assets/theme/webfonts/fa-v4compatibility.ttf +0 -0
  92. data/assets/theme/webfonts/fa-v4compatibility.woff2 +0 -0
  93. metadata +12 -17
  94. data/assets/theme/css/academicons.min.css +0 -1
  95. data/assets/theme/fonts/academicons.eot +0 -0
  96. data/assets/theme/fonts/academicons.svg +0 -1663
  97. data/assets/theme/fonts/academicons.ttf +0 -0
  98. data/assets/theme/fonts/academicons.woff +0 -0
  99. data/assets/theme/webfonts/fa-brands-400.eot +0 -0
  100. data/assets/theme/webfonts/fa-brands-400.svg +0 -3717
  101. data/assets/theme/webfonts/fa-brands-400.woff +0 -0
  102. data/assets/theme/webfonts/fa-regular-400.eot +0 -0
  103. data/assets/theme/webfonts/fa-regular-400.svg +0 -801
  104. data/assets/theme/webfonts/fa-regular-400.woff +0 -0
  105. data/assets/theme/webfonts/fa-solid-900.eot +0 -0
  106. data/assets/theme/webfonts/fa-solid-900.svg +0 -5034
  107. data/assets/theme/webfonts/fa-solid-900.woff +0 -0
@@ -1,4 +1,5 @@
1
- :root {
1
+ :root,
2
+ [data-bs-theme="light"] {
2
3
  // Note: Custom variable values only support SassScript inside `#{}`.
3
4
 
4
5
  // Colors
@@ -6,49 +7,181 @@
6
7
  // Generate palettes for full colors, grays, and theme colors.
7
8
 
8
9
  @each $color, $value in $colors {
9
- --#{$variable-prefix}#{$color}: #{$value};
10
+ --#{$prefix}#{$color}: #{$value};
10
11
  }
11
12
 
12
13
  @each $color, $value in $grays {
13
- --#{$variable-prefix}gray-#{$color}: #{$value};
14
+ --#{$prefix}gray-#{$color}: #{$value};
14
15
  }
15
16
 
16
17
  @each $color, $value in $theme-colors {
17
- --#{$variable-prefix}#{$color}: #{$value};
18
+ --#{$prefix}#{$color}: #{$value};
18
19
  }
19
20
 
20
21
  @each $color, $value in $theme-colors-rgb {
21
- --#{$variable-prefix}#{$color}-rgb: #{$value};
22
+ --#{$prefix}#{$color}-rgb: #{$value};
22
23
  }
23
24
 
24
- --#{$variable-prefix}white-rgb: #{to-rgb($white)};
25
- --#{$variable-prefix}black-rgb: #{to-rgb($black)};
26
- --#{$variable-prefix}body-color-rgb: #{to-rgb($body-color)};
27
- --#{$variable-prefix}body-bg-rgb: #{to-rgb($body-bg)};
25
+ @each $color, $value in $theme-colors-text {
26
+ --#{$prefix}#{$color}-text-emphasis: #{$value};
27
+ }
28
+
29
+ @each $color, $value in $theme-colors-bg-subtle {
30
+ --#{$prefix}#{$color}-bg-subtle: #{$value};
31
+ }
32
+
33
+ @each $color, $value in $theme-colors-border-subtle {
34
+ --#{$prefix}#{$color}-border-subtle: #{$value};
35
+ }
36
+
37
+ --#{$prefix}white-rgb: #{to-rgb($white)};
38
+ --#{$prefix}black-rgb: #{to-rgb($black)};
28
39
 
29
40
  // Fonts
30
41
 
31
42
  // Note: Use `inspect` for lists so that quoted items keep the quotes.
32
43
  // See https://github.com/sass/sass/issues/2383#issuecomment-336349172
33
- --#{$variable-prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
34
- --#{$variable-prefix}font-monospace: #{inspect($font-family-monospace)};
35
- --#{$variable-prefix}gradient: #{$gradient};
44
+ --#{$prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
45
+ --#{$prefix}font-monospace: #{inspect($font-family-monospace)};
46
+ --#{$prefix}gradient: #{$gradient};
36
47
 
37
48
  // Root and body
38
- // stylelint-disable custom-property-empty-line-before
39
49
  // scss-docs-start root-body-variables
40
50
  @if $font-size-root != null {
41
- --#{$variable-prefix}root-font-size: #{$font-size-root};
51
+ --#{$prefix}root-font-size: #{$font-size-root};
42
52
  }
43
- --#{$variable-prefix}body-font-family: #{$font-family-base};
44
- --#{$variable-prefix}body-font-size: #{$font-size-base};
45
- --#{$variable-prefix}body-font-weight: #{$font-weight-base};
46
- --#{$variable-prefix}body-line-height: #{$line-height-base};
47
- --#{$variable-prefix}body-color: #{$body-color};
53
+ --#{$prefix}body-font-family: #{inspect($font-family-base)};
54
+ @include rfs($font-size-base, --#{$prefix}body-font-size);
55
+ --#{$prefix}body-font-weight: #{$font-weight-base};
56
+ --#{$prefix}body-line-height: #{$line-height-base};
48
57
  @if $body-text-align != null {
49
- --#{$variable-prefix}body-text-align: #{$body-text-align};
58
+ --#{$prefix}body-text-align: #{$body-text-align};
50
59
  }
51
- --#{$variable-prefix}body-bg: #{$body-bg};
60
+
61
+ --#{$prefix}body-color: #{$body-color};
62
+ --#{$prefix}body-color-rgb: #{to-rgb($body-color)};
63
+ --#{$prefix}body-bg: #{$body-bg};
64
+ --#{$prefix}body-bg-rgb: #{to-rgb($body-bg)};
65
+
66
+ --#{$prefix}emphasis-color: #{$body-emphasis-color};
67
+ --#{$prefix}emphasis-color-rgb: #{to-rgb($body-emphasis-color)};
68
+
69
+ --#{$prefix}secondary-color: #{$body-secondary-color};
70
+ --#{$prefix}secondary-color-rgb: #{to-rgb($body-secondary-color)};
71
+ --#{$prefix}secondary-bg: #{$body-secondary-bg};
72
+ --#{$prefix}secondary-bg-rgb: #{to-rgb($body-secondary-bg)};
73
+
74
+ --#{$prefix}tertiary-color: #{$body-tertiary-color};
75
+ --#{$prefix}tertiary-color-rgb: #{to-rgb($body-tertiary-color)};
76
+ --#{$prefix}tertiary-bg: #{$body-tertiary-bg};
77
+ --#{$prefix}tertiary-bg-rgb: #{to-rgb($body-tertiary-bg)};
52
78
  // scss-docs-end root-body-variables
53
- // stylelint-enable custom-property-empty-line-before
79
+
80
+ --#{$prefix}heading-color: #{$headings-color};
81
+
82
+ --#{$prefix}link-color: #{$link-color};
83
+ --#{$prefix}link-color-rgb: #{to-rgb($link-color)};
84
+ --#{$prefix}link-decoration: #{$link-decoration};
85
+
86
+ --#{$prefix}link-hover-color: #{$link-hover-color};
87
+ --#{$prefix}link-hover-color-rgb: #{to-rgb($link-hover-color)};
88
+
89
+ @if $link-hover-decoration != null {
90
+ --#{$prefix}link-hover-decoration: #{$link-hover-decoration};
91
+ }
92
+
93
+ --#{$prefix}code-color: #{$code-color};
94
+ --#{$prefix}highlight-color: #{$mark-color};
95
+ --#{$prefix}highlight-bg: #{$mark-bg};
96
+
97
+ // scss-docs-start root-border-var
98
+ --#{$prefix}border-width: #{$border-width};
99
+ --#{$prefix}border-style: #{$border-style};
100
+ --#{$prefix}border-color: #{$border-color};
101
+ --#{$prefix}border-color-translucent: #{$border-color-translucent};
102
+
103
+ --#{$prefix}border-radius: #{$border-radius};
104
+ --#{$prefix}border-radius-sm: #{$border-radius-sm};
105
+ --#{$prefix}border-radius-lg: #{$border-radius-lg};
106
+ --#{$prefix}border-radius-xl: #{$border-radius-xl};
107
+ --#{$prefix}border-radius-xxl: #{$border-radius-xxl};
108
+ --#{$prefix}border-radius-2xl: var(--#{$prefix}border-radius-xxl); // Deprecated in v5.3.0 for consistency
109
+ --#{$prefix}border-radius-pill: #{$border-radius-pill};
110
+ // scss-docs-end root-border-var
111
+
112
+ --#{$prefix}box-shadow: #{$box-shadow};
113
+ --#{$prefix}box-shadow-sm: #{$box-shadow-sm};
114
+ --#{$prefix}box-shadow-lg: #{$box-shadow-lg};
115
+ --#{$prefix}box-shadow-inset: #{$box-shadow-inset};
116
+
117
+ // Focus styles
118
+ // scss-docs-start root-focus-variables
119
+ --#{$prefix}focus-ring-width: #{$focus-ring-width};
120
+ --#{$prefix}focus-ring-opacity: #{$focus-ring-opacity};
121
+ --#{$prefix}focus-ring-color: #{$focus-ring-color};
122
+ // scss-docs-end root-focus-variables
123
+
124
+ // scss-docs-start root-form-validation-variables
125
+ --#{$prefix}form-valid-color: #{$form-valid-color};
126
+ --#{$prefix}form-valid-border-color: #{$form-valid-border-color};
127
+ --#{$prefix}form-invalid-color: #{$form-invalid-color};
128
+ --#{$prefix}form-invalid-border-color: #{$form-invalid-border-color};
129
+ // scss-docs-end root-form-validation-variables
130
+ }
131
+
132
+ @if $enable-dark-mode {
133
+ @include color-mode(dark, true) {
134
+ color-scheme: dark;
135
+
136
+ // scss-docs-start root-dark-mode-vars
137
+ --#{$prefix}body-color: #{$body-color-dark};
138
+ --#{$prefix}body-color-rgb: #{to-rgb($body-color-dark)};
139
+ --#{$prefix}body-bg: #{$body-bg-dark};
140
+ --#{$prefix}body-bg-rgb: #{to-rgb($body-bg-dark)};
141
+
142
+ --#{$prefix}emphasis-color: #{$body-emphasis-color-dark};
143
+ --#{$prefix}emphasis-color-rgb: #{to-rgb($body-emphasis-color-dark)};
144
+
145
+ --#{$prefix}secondary-color: #{$body-secondary-color-dark};
146
+ --#{$prefix}secondary-color-rgb: #{to-rgb($body-secondary-color-dark)};
147
+ --#{$prefix}secondary-bg: #{$body-secondary-bg-dark};
148
+ --#{$prefix}secondary-bg-rgb: #{to-rgb($body-secondary-bg-dark)};
149
+
150
+ --#{$prefix}tertiary-color: #{$body-tertiary-color-dark};
151
+ --#{$prefix}tertiary-color-rgb: #{to-rgb($body-tertiary-color-dark)};
152
+ --#{$prefix}tertiary-bg: #{$body-tertiary-bg-dark};
153
+ --#{$prefix}tertiary-bg-rgb: #{to-rgb($body-tertiary-bg-dark)};
154
+
155
+ @each $color, $value in $theme-colors-text-dark {
156
+ --#{$prefix}#{$color}-text-emphasis: #{$value};
157
+ }
158
+
159
+ @each $color, $value in $theme-colors-bg-subtle-dark {
160
+ --#{$prefix}#{$color}-bg-subtle: #{$value};
161
+ }
162
+
163
+ @each $color, $value in $theme-colors-border-subtle-dark {
164
+ --#{$prefix}#{$color}-border-subtle: #{$value};
165
+ }
166
+
167
+ --#{$prefix}heading-color: #{$headings-color-dark};
168
+
169
+ --#{$prefix}link-color: #{$link-color-dark};
170
+ --#{$prefix}link-hover-color: #{$link-hover-color-dark};
171
+ --#{$prefix}link-color-rgb: #{to-rgb($link-color-dark)};
172
+ --#{$prefix}link-hover-color-rgb: #{to-rgb($link-hover-color-dark)};
173
+
174
+ --#{$prefix}code-color: #{$code-color-dark};
175
+ --#{$prefix}highlight-color: #{$mark-color-dark};
176
+ --#{$prefix}highlight-bg: #{$mark-bg-dark};
177
+
178
+ --#{$prefix}border-color: #{$border-color-dark};
179
+ --#{$prefix}border-color-translucent: #{$border-color-translucent-dark};
180
+
181
+ --#{$prefix}form-valid-color: #{$form-valid-color-dark};
182
+ --#{$prefix}form-valid-border-color: #{$form-valid-border-color-dark};
183
+ --#{$prefix}form-invalid-color: #{$form-invalid-color-dark};
184
+ --#{$prefix}form-invalid-border-color: #{$form-invalid-border-color-dark};
185
+ // scss-docs-end root-dark-mode-vars
186
+ }
54
187
  }
@@ -2,6 +2,17 @@
2
2
  // Rotating border
3
3
  //
4
4
 
5
+ .spinner-grow,
6
+ .spinner-border {
7
+ display: inline-block;
8
+ width: var(--#{$prefix}spinner-width);
9
+ height: var(--#{$prefix}spinner-height);
10
+ vertical-align: var(--#{$prefix}spinner-vertical-align);
11
+ // stylelint-disable-next-line property-disallowed-list
12
+ border-radius: 50%;
13
+ animation: var(--#{$prefix}spinner-animation-speed) linear infinite var(--#{$prefix}spinner-animation-name);
14
+ }
15
+
5
16
  // scss-docs-start spinner-border-keyframes
6
17
  @keyframes spinner-border {
7
18
  to { transform: rotate(360deg) #{"/* rtl:ignore */"}; }
@@ -9,21 +20,25 @@
9
20
  // scss-docs-end spinner-border-keyframes
10
21
 
11
22
  .spinner-border {
12
- display: inline-block;
13
- width: $spinner-width;
14
- height: $spinner-height;
15
- vertical-align: $spinner-vertical-align;
16
- border: $spinner-border-width solid currentColor;
23
+ // scss-docs-start spinner-border-css-vars
24
+ --#{$prefix}spinner-width: #{$spinner-width};
25
+ --#{$prefix}spinner-height: #{$spinner-height};
26
+ --#{$prefix}spinner-vertical-align: #{$spinner-vertical-align};
27
+ --#{$prefix}spinner-border-width: #{$spinner-border-width};
28
+ --#{$prefix}spinner-animation-speed: #{$spinner-animation-speed};
29
+ --#{$prefix}spinner-animation-name: spinner-border;
30
+ // scss-docs-end spinner-border-css-vars
31
+
32
+ border: var(--#{$prefix}spinner-border-width) solid currentcolor;
17
33
  border-right-color: transparent;
18
- // stylelint-disable-next-line property-disallowed-list
19
- border-radius: 50%;
20
- animation: $spinner-animation-speed linear infinite spinner-border;
21
34
  }
22
35
 
23
36
  .spinner-border-sm {
24
- width: $spinner-width-sm;
25
- height: $spinner-height-sm;
26
- border-width: $spinner-border-width-sm;
37
+ // scss-docs-start spinner-border-sm-css-vars
38
+ --#{$prefix}spinner-width: #{$spinner-width-sm};
39
+ --#{$prefix}spinner-height: #{$spinner-height-sm};
40
+ --#{$prefix}spinner-border-width: #{$spinner-border-width-sm};
41
+ // scss-docs-end spinner-border-sm-css-vars
27
42
  }
28
43
 
29
44
  //
@@ -43,27 +58,28 @@
43
58
  // scss-docs-end spinner-grow-keyframes
44
59
 
45
60
  .spinner-grow {
46
- display: inline-block;
47
- width: $spinner-width;
48
- height: $spinner-height;
49
- vertical-align: $spinner-vertical-align;
50
- background-color: currentColor;
51
- // stylelint-disable-next-line property-disallowed-list
52
- border-radius: 50%;
61
+ // scss-docs-start spinner-grow-css-vars
62
+ --#{$prefix}spinner-width: #{$spinner-width};
63
+ --#{$prefix}spinner-height: #{$spinner-height};
64
+ --#{$prefix}spinner-vertical-align: #{$spinner-vertical-align};
65
+ --#{$prefix}spinner-animation-speed: #{$spinner-animation-speed};
66
+ --#{$prefix}spinner-animation-name: spinner-grow;
67
+ // scss-docs-end spinner-grow-css-vars
68
+
69
+ background-color: currentcolor;
53
70
  opacity: 0;
54
- animation: $spinner-animation-speed linear infinite spinner-grow;
55
71
  }
56
72
 
57
73
  .spinner-grow-sm {
58
- width: $spinner-width-sm;
59
- height: $spinner-height-sm;
74
+ --#{$prefix}spinner-width: #{$spinner-width-sm};
75
+ --#{$prefix}spinner-height: #{$spinner-height-sm};
60
76
  }
61
77
 
62
78
  @if $enable-reduced-motion {
63
79
  @media (prefers-reduced-motion: reduce) {
64
80
  .spinner-border,
65
81
  .spinner-grow {
66
- animation-duration: $spinner-animation-speed * 2;
82
+ --#{$prefix}spinner-animation-speed: #{$spinner-animation-speed * 2};
67
83
  }
68
84
  }
69
85
  }
@@ -3,20 +3,27 @@
3
3
  //
4
4
 
5
5
  .table {
6
- --#{$variable-prefix}table-bg: #{$table-bg};
7
- --#{$variable-prefix}table-accent-bg: #{$table-accent-bg};
8
- --#{$variable-prefix}table-striped-color: #{$table-striped-color};
9
- --#{$variable-prefix}table-striped-bg: #{$table-striped-bg};
10
- --#{$variable-prefix}table-active-color: #{$table-active-color};
11
- --#{$variable-prefix}table-active-bg: #{$table-active-bg};
12
- --#{$variable-prefix}table-hover-color: #{$table-hover-color};
13
- --#{$variable-prefix}table-hover-bg: #{$table-hover-bg};
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
12
+ --#{$prefix}table-color: #{$table-color};
13
+ --#{$prefix}table-bg: #{$table-bg};
14
+ --#{$prefix}table-border-color: #{$table-border-color};
15
+ --#{$prefix}table-accent-bg: #{$table-accent-bg};
16
+ --#{$prefix}table-striped-color: #{$table-striped-color};
17
+ --#{$prefix}table-striped-bg: #{$table-striped-bg};
18
+ --#{$prefix}table-active-color: #{$table-active-color};
19
+ --#{$prefix}table-active-bg: #{$table-active-bg};
20
+ --#{$prefix}table-hover-color: #{$table-hover-color};
21
+ --#{$prefix}table-hover-bg: #{$table-hover-bg};
14
22
 
15
23
  width: 100%;
16
24
  margin-bottom: $spacer;
17
- color: $table-color;
18
25
  vertical-align: $table-cell-vertical-align;
19
- border-color: $table-border-color;
26
+ border-color: var(--#{$prefix}table-border-color);
20
27
 
21
28
  // Target th & td
22
29
  // We need the child combinator to prevent styles leaking to nested tables which doesn't have a `.table` class.
@@ -25,9 +32,11 @@
25
32
  // stylelint-disable-next-line selector-max-universal
26
33
  > :not(caption) > * > * {
27
34
  padding: $table-cell-padding-y $table-cell-padding-x;
28
- background-color: var(--#{$variable-prefix}table-bg);
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)));
37
+ background-color: var(--#{$prefix}table-bg);
29
38
  border-bottom-width: $table-border-width;
30
- box-shadow: inset 0 0 0 9999px var(--#{$variable-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)));
31
40
  }
32
41
 
33
42
  > tbody {
@@ -37,13 +46,11 @@
37
46
  > thead {
38
47
  vertical-align: bottom;
39
48
  }
40
-
41
- // Highlight border color between thead, tbody and tfoot.
42
- > :not(:first-child) {
43
- border-top: (2 * $table-border-width) solid $table-group-separator-color;
44
- }
45
49
  }
46
50
 
51
+ .table-group-divider {
52
+ border-top: calc(#{$table-border-width} * 2) solid $table-group-separator-color; // stylelint-disable-line function-disallowed-list
53
+ }
47
54
 
48
55
  //
49
56
  // Change placement of captions with a class
@@ -72,7 +79,7 @@
72
79
  //
73
80
  // When borders are added on all sides of the cells, the corners can render odd when
74
81
  // 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
82
+ // Therefore we add top and border bottoms to the `tr`s and left and right borders
76
83
  // to the `td`s or `th`s
77
84
 
78
85
  .table-bordered {
@@ -101,10 +108,19 @@
101
108
  //
102
109
  // Default zebra-stripe styles (alternating gray and transparent backgrounds)
103
110
 
111
+ // For rows
104
112
  .table-striped {
105
113
  > tbody > tr:nth-of-type(#{$table-striped-order}) > * {
106
- --#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-striped-bg);
107
- color: var(--#{$variable-prefix}table-striped-color);
114
+ --#{$prefix}table-color-type: var(--#{$prefix}table-striped-color);
115
+ --#{$prefix}table-bg-type: var(--#{$prefix}table-striped-bg);
116
+ }
117
+ }
118
+
119
+ // For columns
120
+ .table-striped-columns {
121
+ > :not(caption) > tr > :nth-child(#{$table-striped-columns-order}) {
122
+ --#{$prefix}table-color-type: var(--#{$prefix}table-striped-color);
123
+ --#{$prefix}table-bg-type: var(--#{$prefix}table-striped-bg);
108
124
  }
109
125
  }
110
126
 
@@ -113,8 +129,8 @@
113
129
  // The `.table-active` class can be added to highlight rows or cells
114
130
 
115
131
  .table-active {
116
- --#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-active-bg);
117
- color: var(--#{$variable-prefix}table-active-color);
132
+ --#{$prefix}table-color-state: var(--#{$prefix}table-active-color);
133
+ --#{$prefix}table-bg-state: var(--#{$prefix}table-active-bg);
118
134
  }
119
135
 
120
136
  // Hover effect
@@ -123,8 +139,8 @@
123
139
 
124
140
  .table-hover {
125
141
  > tbody > tr:hover > * {
126
- --#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-hover-bg);
127
- color: var(--#{$variable-prefix}table-hover-color);
142
+ --#{$prefix}table-color-state: var(--#{$prefix}table-hover-color);
143
+ --#{$prefix}table-bg-state: var(--#{$prefix}table-hover-bg);
128
144
  }
129
145
  }
130
146
 
@@ -1,14 +1,32 @@
1
1
  .toast {
2
- width: $toast-max-width;
2
+ // scss-docs-start toast-css-vars
3
+ --#{$prefix}toast-zindex: #{$zindex-toast};
4
+ --#{$prefix}toast-padding-x: #{$toast-padding-x};
5
+ --#{$prefix}toast-padding-y: #{$toast-padding-y};
6
+ --#{$prefix}toast-spacing: #{$toast-spacing};
7
+ --#{$prefix}toast-max-width: #{$toast-max-width};
8
+ @include rfs($toast-font-size, --#{$prefix}toast-font-size);
9
+ --#{$prefix}toast-color: #{$toast-color};
10
+ --#{$prefix}toast-bg: #{$toast-background-color};
11
+ --#{$prefix}toast-border-width: #{$toast-border-width};
12
+ --#{$prefix}toast-border-color: #{$toast-border-color};
13
+ --#{$prefix}toast-border-radius: #{$toast-border-radius};
14
+ --#{$prefix}toast-box-shadow: #{$toast-box-shadow};
15
+ --#{$prefix}toast-header-color: #{$toast-header-color};
16
+ --#{$prefix}toast-header-bg: #{$toast-header-background-color};
17
+ --#{$prefix}toast-header-border-color: #{$toast-header-border-color};
18
+ // scss-docs-end toast-css-vars
19
+
20
+ width: var(--#{$prefix}toast-max-width);
3
21
  max-width: 100%;
4
- @include font-size($toast-font-size);
5
- color: $toast-color;
22
+ @include font-size(var(--#{$prefix}toast-font-size));
23
+ color: var(--#{$prefix}toast-color);
6
24
  pointer-events: auto;
7
- background-color: $toast-background-color;
25
+ background-color: var(--#{$prefix}toast-bg);
8
26
  background-clip: padding-box;
9
- border: $toast-border-width solid $toast-border-color;
10
- box-shadow: $toast-box-shadow;
11
- @include border-radius($toast-border-radius);
27
+ border: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-border-color);
28
+ box-shadow: var(--#{$prefix}toast-box-shadow);
29
+ @include border-radius(var(--#{$prefix}toast-border-radius));
12
30
 
13
31
  &.showing {
14
32
  opacity: 0;
@@ -20,32 +38,36 @@
20
38
  }
21
39
 
22
40
  .toast-container {
41
+ --#{$prefix}toast-zindex: #{$zindex-toast};
42
+
43
+ position: absolute;
44
+ z-index: var(--#{$prefix}toast-zindex);
23
45
  width: max-content;
24
46
  max-width: 100%;
25
47
  pointer-events: none;
26
48
 
27
49
  > :not(:last-child) {
28
- margin-bottom: $toast-spacing;
50
+ margin-bottom: var(--#{$prefix}toast-spacing);
29
51
  }
30
52
  }
31
53
 
32
54
  .toast-header {
33
55
  display: flex;
34
56
  align-items: center;
35
- padding: $toast-padding-y $toast-padding-x;
36
- color: $toast-header-color;
37
- background-color: $toast-header-background-color;
57
+ padding: var(--#{$prefix}toast-padding-y) var(--#{$prefix}toast-padding-x);
58
+ color: var(--#{$prefix}toast-header-color);
59
+ background-color: var(--#{$prefix}toast-header-bg);
38
60
  background-clip: padding-box;
39
- border-bottom: $toast-border-width solid $toast-header-border-color;
40
- @include border-top-radius(subtract($toast-border-radius, $toast-border-width));
61
+ border-bottom: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-header-border-color);
62
+ @include border-top-radius(calc(var(--#{$prefix}toast-border-radius) - var(--#{$prefix}toast-border-width)));
41
63
 
42
64
  .btn-close {
43
- margin-right: $toast-padding-x * -.5;
44
- margin-left: $toast-padding-x;
65
+ margin-right: calc(-.5 * var(--#{$prefix}toast-padding-x)); // stylelint-disable-line function-disallowed-list
66
+ margin-left: var(--#{$prefix}toast-padding-x);
45
67
  }
46
68
  }
47
69
 
48
70
  .toast-body {
49
- padding: $toast-padding-x; // apply to both vertical and horizontal
71
+ padding: var(--#{$prefix}toast-padding-x);
50
72
  word-wrap: break-word;
51
73
  }
@@ -1,24 +1,38 @@
1
1
  // Base class
2
2
  .tooltip {
3
- position: absolute;
4
- z-index: $zindex-tooltip;
3
+ // scss-docs-start tooltip-css-vars
4
+ --#{$prefix}tooltip-zindex: #{$zindex-tooltip};
5
+ --#{$prefix}tooltip-max-width: #{$tooltip-max-width};
6
+ --#{$prefix}tooltip-padding-x: #{$tooltip-padding-x};
7
+ --#{$prefix}tooltip-padding-y: #{$tooltip-padding-y};
8
+ --#{$prefix}tooltip-margin: #{$tooltip-margin};
9
+ @include rfs($tooltip-font-size, --#{$prefix}tooltip-font-size);
10
+ --#{$prefix}tooltip-color: #{$tooltip-color};
11
+ --#{$prefix}tooltip-bg: #{$tooltip-bg};
12
+ --#{$prefix}tooltip-border-radius: #{$tooltip-border-radius};
13
+ --#{$prefix}tooltip-opacity: #{$tooltip-opacity};
14
+ --#{$prefix}tooltip-arrow-width: #{$tooltip-arrow-width};
15
+ --#{$prefix}tooltip-arrow-height: #{$tooltip-arrow-height};
16
+ // scss-docs-end tooltip-css-vars
17
+
18
+ z-index: var(--#{$prefix}tooltip-zindex);
5
19
  display: block;
6
- margin: $tooltip-margin;
20
+ margin: var(--#{$prefix}tooltip-margin);
21
+ @include deprecate("`$tooltip-margin`", "v5", "v5.x", true);
7
22
  // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
8
23
  // So reset our font and text properties to avoid inheriting weird values.
9
24
  @include reset-text();
10
- @include font-size($tooltip-font-size);
25
+ @include font-size(var(--#{$prefix}tooltip-font-size));
11
26
  // Allow breaking very long words so they don't overflow the tooltip's bounds
12
27
  word-wrap: break-word;
13
28
  opacity: 0;
14
29
 
15
- &.show { opacity: $tooltip-opacity; }
30
+ &.show { opacity: var(--#{$prefix}tooltip-opacity); }
16
31
 
17
32
  .tooltip-arrow {
18
- position: absolute;
19
33
  display: block;
20
- width: $tooltip-arrow-width;
21
- height: $tooltip-arrow-height;
34
+ width: var(--#{$prefix}tooltip-arrow-width);
35
+ height: var(--#{$prefix}tooltip-arrow-height);
22
36
 
23
37
  &::before {
24
38
  position: absolute;
@@ -29,66 +43,56 @@
29
43
  }
30
44
  }
31
45
 
32
- .bs-tooltip-top {
33
- padding: $tooltip-arrow-height 0;
46
+ .bs-tooltip-top .tooltip-arrow {
47
+ bottom: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
34
48
 
35
- .tooltip-arrow {
36
- bottom: 0;
37
-
38
- &::before {
39
- top: -1px;
40
- border-width: $tooltip-arrow-height ($tooltip-arrow-width * .5) 0;
41
- border-top-color: $tooltip-arrow-color;
42
- }
49
+ &::before {
50
+ top: -1px;
51
+ border-width: var(--#{$prefix}tooltip-arrow-height) calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
52
+ border-top-color: var(--#{$prefix}tooltip-bg);
43
53
  }
44
54
  }
45
55
 
46
- .bs-tooltip-end {
47
- padding: 0 $tooltip-arrow-height;
56
+ /* rtl:begin:ignore */
57
+ .bs-tooltip-end .tooltip-arrow {
58
+ left: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
59
+ width: var(--#{$prefix}tooltip-arrow-height);
60
+ height: var(--#{$prefix}tooltip-arrow-width);
48
61
 
49
- .tooltip-arrow {
50
- left: 0;
51
- width: $tooltip-arrow-height;
52
- height: $tooltip-arrow-width;
53
-
54
- &::before {
55
- right: -1px;
56
- border-width: ($tooltip-arrow-width * .5) $tooltip-arrow-height ($tooltip-arrow-width * .5) 0;
57
- border-right-color: $tooltip-arrow-color;
58
- }
62
+ &::before {
63
+ right: -1px;
64
+ border-width: calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height) calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
65
+ border-right-color: var(--#{$prefix}tooltip-bg);
59
66
  }
60
67
  }
61
68
 
62
- .bs-tooltip-bottom {
63
- padding: $tooltip-arrow-height 0;
69
+ /* rtl:end:ignore */
64
70
 
65
- .tooltip-arrow {
66
- top: 0;
71
+ .bs-tooltip-bottom .tooltip-arrow {
72
+ top: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
67
73
 
68
- &::before {
69
- bottom: -1px;
70
- border-width: 0 ($tooltip-arrow-width * .5) $tooltip-arrow-height;
71
- border-bottom-color: $tooltip-arrow-color;
72
- }
74
+ &::before {
75
+ bottom: -1px;
76
+ border-width: 0 calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
77
+ border-bottom-color: var(--#{$prefix}tooltip-bg);
73
78
  }
74
79
  }
75
80
 
76
- .bs-tooltip-start {
77
- padding: 0 $tooltip-arrow-height;
78
-
79
- .tooltip-arrow {
80
- right: 0;
81
- width: $tooltip-arrow-height;
82
- height: $tooltip-arrow-width;
81
+ /* rtl:begin:ignore */
82
+ .bs-tooltip-start .tooltip-arrow {
83
+ right: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
84
+ width: var(--#{$prefix}tooltip-arrow-height);
85
+ height: var(--#{$prefix}tooltip-arrow-width);
83
86
 
84
- &::before {
85
- left: -1px;
86
- border-width: ($tooltip-arrow-width * .5) 0 ($tooltip-arrow-width * .5) $tooltip-arrow-height;
87
- border-left-color: $tooltip-arrow-color;
88
- }
87
+ &::before {
88
+ left: -1px;
89
+ border-width: calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0 calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
90
+ border-left-color: var(--#{$prefix}tooltip-bg);
89
91
  }
90
92
  }
91
93
 
94
+ /* rtl:end:ignore */
95
+
92
96
  .bs-tooltip-auto {
93
97
  &[data-popper-placement^="top"] {
94
98
  @extend .bs-tooltip-top;
@@ -106,10 +110,10 @@
106
110
 
107
111
  // Wrapper for the tooltip content
108
112
  .tooltip-inner {
109
- max-width: $tooltip-max-width;
110
- padding: $tooltip-padding-y $tooltip-padding-x;
111
- color: $tooltip-color;
113
+ max-width: var(--#{$prefix}tooltip-max-width);
114
+ padding: var(--#{$prefix}tooltip-padding-y) var(--#{$prefix}tooltip-padding-x);
115
+ color: var(--#{$prefix}tooltip-color);
112
116
  text-align: center;
113
- background-color: $tooltip-bg;
114
- @include border-radius($tooltip-border-radius);
117
+ background-color: var(--#{$prefix}tooltip-bg);
118
+ @include border-radius(var(--#{$prefix}tooltip-border-radius));
115
119
  }