bootstrap-italia 2.16.2 → 2.17.2

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.
package/dist/version.js CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  // NOTE:bootstrap italia version variable, useful to check for the current version
10
10
 
11
- const BOOTSTRAP_ITALIA_VERSION = '2.16.2';
11
+ const BOOTSTRAP_ITALIA_VERSION = '2.17.2';
12
12
 
13
13
  export { BOOTSTRAP_ITALIA_VERSION as default };
14
14
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../src/js/version.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap Italia (https://italia.github.io/bootstrap-italia/)\n * Authors: https://github.com/italia/bootstrap-italia/blob/main/AUTHORS\n * Licensed under BSD-3-Clause license (https://github.com/italia/bootstrap-italia/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n// NOTE:bootstrap italia version variable, useful to check for the current version\n\nconst BOOTSTRAP_ITALIA_VERSION = '2.16.2'\nexport default BOOTSTRAP_ITALIA_VERSION\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEK,MAAC,wBAAwB,GAAG;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../src/js/version.js"],"sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap Italia (https://italia.github.io/bootstrap-italia/)\n * Authors: https://github.com/italia/bootstrap-italia/blob/main/AUTHORS\n * Licensed under BSD-3-Clause license (https://github.com/italia/bootstrap-italia/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n// NOTE:bootstrap italia version variable, useful to check for the current version\n\nconst BOOTSTRAP_ITALIA_VERSION = '2.17.2'\nexport default BOOTSTRAP_ITALIA_VERSION\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEK,MAAC,wBAAwB,GAAG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootstrap-italia",
3
- "version": "2.16.2",
3
+ "version": "2.17.2",
4
4
  "keywords": [
5
5
  "css",
6
6
  "sass",
@@ -58,7 +58,7 @@
58
58
  "@babel/preset-react": "^7.16.7",
59
59
  "@eslint/eslintrc": "^3.2.0",
60
60
  "@eslint/js": "^9.15.0",
61
- "@octokit/rest": "^18.12.0",
61
+ "@octokit/rest": "^22.0.1",
62
62
  "@rollup/plugin-babel": "^6.0.4",
63
63
  "@rollup/plugin-legacy": "^3.0.2",
64
64
  "@rollup/plugin-node-resolve": "^15.3.0",
@@ -76,7 +76,7 @@
76
76
  "gh-pages": "^5.0.0",
77
77
  "globals": "^15.12.0",
78
78
  "pa11y": "^8.0.0",
79
- "pa11y-ci": "^3.1.0",
79
+ "pa11y-ci": "^4.0.1",
80
80
  "prettier": "^3.3.3",
81
81
  "replace-in-file": "^6.3.2",
82
82
  "rollup": "^4.26.0",
@@ -98,7 +98,7 @@
98
98
  "@splidejs/splide": "^4.1.4",
99
99
  "@types/bootstrap": "^5.2.6",
100
100
  "animejs": "^3.2.1",
101
- "design-tokens-italia": "^1.1.1",
101
+ "design-tokens-italia": "^1.3.2",
102
102
  "just-validate": "^4.3.0",
103
103
  "minimasonry": "^1.3.2",
104
104
  "progressbar.js": "^1.1.0",
package/src/js/version.js CHANGED
@@ -8,5 +8,5 @@
8
8
 
9
9
  // NOTE:bootstrap italia version variable, useful to check for the current version
10
10
 
11
- const BOOTSTRAP_ITALIA_VERSION = '2.16.2'
11
+ const BOOTSTRAP_ITALIA_VERSION = '2.17.2'
12
12
  export default BOOTSTRAP_ITALIA_VERSION
@@ -2,6 +2,10 @@
2
2
  //
3
3
  // Utility mixins and functions for evaluating source code across our variables, maps, and mixins.
4
4
 
5
+ @use 'sass:meta';
6
+ @use 'sass:color';
7
+ @use 'sass:math';
8
+
5
9
  // Ascending
6
10
  // Used to evaluate Sass maps like our grid breakpoints.
7
11
  @mixin _assert-ascending($map, $map-name) {
@@ -34,7 +38,7 @@
34
38
 
35
39
  // Colors
36
40
  @function to-rgb($value) {
37
- @return red($value), green($value), blue($value);
41
+ @return color.channel($value, 'red', $space: rgb), color.channel($value, 'green', $space: rgb), color.channel($value, 'blue', $space: rgb);
38
42
  }
39
43
 
40
44
  // stylelint-disable scss/dollar-variable-pattern
@@ -209,9 +213,9 @@ $_luminance-list: 0.0008 0.001 0.0011 0.0013 0.0015 0.0017 0.002 0.0022 0.0025 0
209
213
  // See https://www.w3.org/TR/WCAG/#dfn-contrast-ratio
210
214
  @function luminance($color) {
211
215
  $rgb: (
212
- 'r': red($color),
213
- 'g': green($color),
214
- 'b': blue($color),
216
+ 'r': math.round(color.channel($color, 'red', $space: rgb)),
217
+ 'g': math.round(color.channel($color, 'green', $space: rgb)),
218
+ 'b': math.round(color.channel($color, 'blue', $space: rgb)),
215
219
  );
216
220
 
217
221
  @each $name, $value in $rgb {
@@ -230,18 +234,18 @@ $_luminance-list: 0.0008 0.001 0.0011 0.0013 0.0015 0.0017 0.002 0.0022 0.0025 0
230
234
  // Return opaque color
231
235
  // opaque(#fff, rgba(0, 0, 0, .5)) => #808080
232
236
  @function opaque($background, $foreground) {
233
- @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
237
+ @return color.mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
234
238
  }
235
239
 
236
240
  // scss-docs-start color-functions
237
241
  // Tint a color: mix a color with white
238
242
  @function tint-color($color, $weight) {
239
- @return mix(white, $color, $weight);
243
+ @return color.mix(white, $color, $weight);
240
244
  }
241
245
 
242
246
  // Shade a color: mix a color with black
243
247
  @function shade-color($color, $weight) {
244
- @return mix(black, $color, $weight);
248
+ @return color.mix(black, $color, $weight);
245
249
  }
246
250
 
247
251
  // Shade the color if the weight is positive, else tint it
@@ -260,7 +264,7 @@ $_luminance-list: 0.0008 0.001 0.0011 0.0013 0.0015 0.0017 0.002 0.0022 0.0025 0
260
264
  @return $value1;
261
265
  }
262
266
 
263
- @if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) {
267
+ @if meta.type-of($value1) == number and meta.type-of($value2) == number and math.compatible($value1, $value2) {
264
268
  @return $value1 + $value2;
265
269
  }
266
270
 
@@ -280,11 +284,11 @@ $_luminance-list: 0.0008 0.001 0.0011 0.0013 0.0015 0.0017 0.002 0.0022 0.0025 0
280
284
  @return $value1;
281
285
  }
282
286
 
283
- @if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) {
287
+ @if meta.type-of($value1) == number and meta.type-of($value2) == number and math.compatible($value1, $value2) {
284
288
  @return $value1 - $value2;
285
289
  }
286
290
 
287
- @if type-of($value2) != number {
291
+ @if meta.type-of($value2) != number {
288
292
  $value2: unquote('(') + $value2 + unquote(')');
289
293
  }
290
294
 
@@ -612,6 +612,7 @@ $utilities: map-merge(
612
612
  map-merge(
613
613
  $utilities-text-colors,
614
614
  (
615
+ 'secondary': $color-text-secondary,
615
616
  'muted': $text-muted,
616
617
  'black-50': rgba($black, 0.5),
617
618
  // deprecated
@@ -1,6 +1,8 @@
1
1
  // Import Design Tokens Italia
2
2
  // @import '../../node_modules/design-tokens-italia/scss/variables';
3
3
 
4
+ @use 'sass:map';
5
+
4
6
  // Color vars
5
7
  // HSB (https://it.wikipedia.org/wiki/Hue_Saturation_Brightness, coincidente con il modello HSV)
6
8
  // è lo spazio colore scelto per ottenere le varianti colore della tonalità primaria.
@@ -21,7 +23,7 @@ $gray-800: hsl(0, 0%, 15%) !default; // color-gray-15
21
23
  $gray-900: hsl(0, 0%, 10%) !default; // color-gray-10
22
24
 
23
25
  $grays: () !default;
24
- $grays: map-merge(
26
+ $grays: map.merge(
25
27
  (
26
28
  '100': $gray-100,
27
29
  '200': $gray-200,
@@ -89,7 +91,7 @@ $gray-border-disabled: $gray-disabled !default; // color-border-disabled
89
91
  $secondary: $gray-secondary !default;
90
92
 
91
93
  $colors: () !default;
92
- $colors: map-merge(
94
+ $colors: map.merge(
93
95
  (
94
96
  'indigo': $indigo,
95
97
  'purple': $purple,
@@ -121,7 +123,7 @@ $warning: $orange-accessible !default;
121
123
  $danger: $red-accessible !default;
122
124
 
123
125
  $theme-colors: () !default;
124
- $theme-colors: map-merge(
126
+ $theme-colors: map.merge(
125
127
  (
126
128
  'primary': $primary,
127
129
  'secondary': $secondary,
@@ -151,36 +153,36 @@ $escaped-characters: (('<', '%3c'), ('>', '%3e'), ('#', '%23'), ('(', '%28'), ('
151
153
 
152
154
  // ACCENT COLORS DEFINITIONS
153
155
  // analoghi
154
- $analogue-1-h: 243;
155
- $analogue-1-s: 85;
156
- $analogue-1-b: 100;
156
+ $analogue-1-h: 243 !default;
157
+ $analogue-1-s: 85 !default;
158
+ $analogue-1-b: 100 !default;
157
159
  $analogue-1: hsb($analogue-1-h, $analogue-1-s, $analogue-1-b) !default;
158
- $analogue-2-h: 178;
159
- $analogue-2-s: 95;
160
- $analogue-2-b: 85;
160
+ $analogue-2-h: 178 !default;
161
+ $analogue-2-s: 95 !default;
162
+ $analogue-2-b: 85 !default;
161
163
  $analogue-2: hsb($analogue-2-h, $analogue-2-s, $analogue-2-b) !default;
162
164
  // Complementari e triadici
163
- $complementary-1-h: 351;
164
- $complementary-1-s: 75;
165
- $complementary-1-b: 97;
165
+ $complementary-1-h: 351 !default;
166
+ $complementary-1-s: 75 !default;
167
+ $complementary-1-b: 97 !default;
166
168
  $complementary-1: hsb($complementary-1-h, $complementary-1-s, $complementary-1-b) !default;
167
- $complementary-2-h: 36;
168
- $complementary-2-s: 100;
169
- $complementary-2-b: 100;
169
+ $complementary-2-h: 36 !default;
170
+ $complementary-2-s: 100 !default;
171
+ $complementary-2-b: 100 !default;
170
172
  $complementary-2: hsb($complementary-2-h, $complementary-2-s, $complementary-2-b) !default;
171
- $complementary-3-h: 159;
172
- $complementary-3-s: 100;
173
- $complementary-3-b: 81;
173
+ $complementary-3-h: 159 !default;
174
+ $complementary-3-s: 100 !default;
175
+ $complementary-3-b: 81 !default;
174
176
  $complementary-3: hsb($complementary-3-h, $complementary-3-s, $complementary-3-b) !default;
175
177
 
176
178
  // NEUTRAL COLORS DEFINITIONS
177
- $neutral-1-h: 210;
178
- $neutral-1-s: 70;
179
- $neutral-1-b: 30;
179
+ $neutral-1-h: 210 !default;
180
+ $neutral-1-s: 70 !default;
181
+ $neutral-1-b: 30 !default;
180
182
  $neutral-1: hsb($neutral-1-h, $neutral-1-s, $neutral-1-b) !default;
181
- $neutral-2-h: 210;
182
- $neutral-2-s: 5;
183
- $neutral-2-b: 95;
183
+ $neutral-2-h: 210 !default;
184
+ $neutral-2-s: 5 !default;
185
+ $neutral-2-b: 95 !default;
184
186
  $neutral-2: hsb($neutral-2-h, $neutral-2-s, $neutral-2-b) !default;
185
187
 
186
188
  // Light Greys A
@@ -412,7 +414,7 @@ $neutral-2-a7: hsb($neutral-2-h, $neutral-2-s + 4, $neutral-2-b - 85) !default;
412
414
  // Backgrounds
413
415
  $color-background-emphasis: hsl(210, 54%, 20%); // color-slate-20
414
416
  $color-background-primary-lighter: hsl(210, 62%, 97%); // color-blue-97
415
- $color-background-primary-hover: hsl(210, 100, 30); // color-blue-30
417
+ $color-background-primary-hover: hsl(210, 100%, 30%); // color-blue-30
416
418
  $color-background-secondary-hover: hsl(210, 33%, 28%); // color-slate-28
417
419
  $color-background-secondary-lighter: hsl(210, 3%, 85%); // color-slate-85
418
420
  $color-background-muted: $gray-100; // color-gray-96
@@ -1966,7 +1968,7 @@ $grid-list-text-gap: $v-gap;
1966
1968
  $grid-item-sm-col: 50%;
1967
1969
  $grid-item-lg-col: 33.333333%;
1968
1970
  $grid-item-icon-size: 24px;
1969
- $grid-item-overlay: hsla(210%, 54%, 20, 0.85);
1971
+ $grid-item-overlay: hsla(210deg, 54%, 20%, 0.85);
1970
1972
 
1971
1973
  // list
1972
1974
  $list-font-size: 1rem;
@@ -1,3 +1,3 @@
1
1
  :root {
2
- --bootstrap-italia-version: '2.16.2';
2
+ --bootstrap-italia-version: '2.17.2';
3
3
  }
@@ -1,5 +1,7 @@
1
1
  // stylelint-disable property-blacklist, scss/dollar-variable-default
2
2
 
3
+ @use 'sass:meta';
4
+
3
5
  // SCSS RFS mixin
4
6
  //
5
7
  // Automated responsive values for font sizes, paddings, margins and much more
@@ -30,7 +32,7 @@ $rfs-two-dimensional: false !default;
30
32
  // Factor of decrease
31
33
  $rfs-factor: 10 !default;
32
34
 
33
- @if type-of($rfs-factor) != number or $rfs-factor <= 1 {
35
+ @if meta.type-of($rfs-factor) != number or $rfs-factor <= 1 {
34
36
  @error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
35
37
  }
36
38
 
@@ -35,7 +35,6 @@
35
35
  @import 'utilities/focus';
36
36
  @import 'utilities/icons';
37
37
  @import 'utilities/colors';
38
- @import 'utilities/text-colors';
39
38
  // ------------------------------
40
39
 
41
40
  // Nav & Header
@@ -155,6 +155,12 @@
155
155
  @each $color, $value in $theme-colors {
156
156
  .btn-outline-#{$color} {
157
157
  @include button-outline-variant($value);
158
+ box-shadow: inset 0 0 0 2px $value;
159
+ &.disabled,
160
+ &:hover,
161
+ &:active {
162
+ box-shadow: inset 0 0 0 2px color-hover($value);
163
+ }
158
164
  }
159
165
  }
160
166
  // scss-docs-end btn-variant-loops
@@ -348,47 +354,6 @@
348
354
  }
349
355
  }
350
356
 
351
- .btn-outline {
352
- &-primary {
353
- box-shadow: inset 0 0 0 2px $primary;
354
- &.disabled {
355
- box-shadow: inset 0 0 0 2px color-hover($primary);
356
- }
357
- }
358
- &-secondary {
359
- box-shadow: inset 0 0 0 2px $secondary;
360
- &.disabled,
361
- &:hover,
362
- &:active {
363
- box-shadow: inset 0 0 0 2px color-hover($secondary);
364
- }
365
- }
366
- &-success {
367
- box-shadow: inset 0 0 0 2px $success;
368
- &.disabled,
369
- &:hover,
370
- &:active {
371
- box-shadow: inset 0 0 0 2px color-hover($success);
372
- }
373
- }
374
- &-warning {
375
- box-shadow: inset 0 0 0 2px $color-border-warning;
376
- &.disabled,
377
- &:hover,
378
- &:active {
379
- box-shadow: inset 0 0 0 2px color-hover($color-border-warning);
380
- }
381
- }
382
- &-danger {
383
- box-shadow: inset 0 0 0 2px $danger;
384
- &.disabled,
385
- &:hover,
386
- &:active {
387
- box-shadow: inset 0 0 0 2px color-hover($danger);
388
- }
389
- }
390
- }
391
-
392
357
  .bg-dark {
393
358
  .btn-link {
394
359
  color: $white;
@@ -3,31 +3,16 @@
3
3
  overflow: hidden;
4
4
 
5
5
  .callout-inner {
6
- padding: 2rem;
6
+ padding: 1.5rem;
7
7
  border: 2px solid $color-border-secondary;
8
- border-top: 0;
9
- margin: 2.5rem 0;
8
+ margin: 2rem 0;
10
9
  }
11
10
 
12
11
  &.callout-highlight {
13
12
  border: none;
14
13
  border-left: 2px solid $color-border-secondary;
15
14
  border-radius: 0;
16
- padding: 0 2.222rem;
17
-
18
- p:last-child {
19
- margin: 0;
20
- }
21
-
22
- .callout-title {
23
- margin-bottom: 1.556rem;
24
- }
25
-
26
- @each $color-name, $color-value in (success: $success, warning: $color-border-warning, danger: $danger, important: $success, note: $primary) {
27
- &.#{$color-name} {
28
- border-color: $color-value;
29
- }
30
- }
15
+ padding: 0 1.5rem;
31
16
  }
32
17
 
33
18
  &.callout-more {
@@ -131,11 +116,13 @@
131
116
  }
132
117
 
133
118
  .callout-title {
119
+ display: flex;
120
+ align-items: center;
121
+ margin-bottom: 1rem;
134
122
  font-weight: 600;
135
123
  text-transform: uppercase;
136
124
  font-size: 1rem;
137
125
  color: $color-text-secondary;
138
-
139
126
  @include media-breakpoint-up(lg) {
140
127
  font-size: 1.125rem;
141
128
  }
@@ -146,53 +133,18 @@
146
133
  }
147
134
  }
148
135
 
149
- &:not(.callout-highlight):not(.callout-more) {
150
- .callout-title {
151
- position: relative;
152
- padding-left: 1.5rem;
153
- top: -3rem;
154
-
155
- .text {
156
- position: relative;
157
- overflow: hidden;
158
- width: 100%;
159
- font-size: 0.875rem;
160
- padding-right: 1.5rem;
161
-
162
- @include media-breakpoint-up(md) {
163
- font-size: 1.15rem;
164
- }
165
-
166
- &:after {
167
- content: '';
168
- top: 0.875em;
169
- border-top: 2px solid;
170
- position: absolute;
171
- width: calc(100vw - 100% - 20px);
172
- left: 100%;
173
- }
174
- }
175
-
176
- &:before {
177
- content: '';
178
- top: 0.875em;
179
- border-top: 2px solid;
180
- position: absolute;
181
- width: 3rem;
182
- left: -2.5rem;
183
- }
184
- }
185
- }
186
-
187
136
  p {
188
137
  font-family: $font-family-serif;
189
138
  font-size: 1rem;
190
139
  color: $color-text-secondary;
191
-
192
140
  @include media-breakpoint-up(lg) {
193
141
  font-size: 1.125rem;
194
142
  }
195
143
 
144
+ &:last-child {
145
+ margin-bottom: 0;
146
+ }
147
+
196
148
  &.callout-big-text {
197
149
  font-size: 1.125rem;
198
150
  }
@@ -304,13 +256,7 @@
304
256
  }
305
257
 
306
258
  @media (min-width: 768px) {
307
- .callout {
308
- &.callout-highlight {
309
- padding: 0 0 0 2.222rem;
310
- }
311
-
312
- &.callout-more p {
313
- font-size: 0.775rem;
314
- }
259
+ .callout .callout-more p {
260
+ font-size: 0.775rem;
315
261
  }
316
262
  }
@@ -243,14 +243,12 @@ article.it-card {
243
243
  }
244
244
 
245
245
  .it-card-title-icon-wrapper {
246
- display: flex;
247
- align-items: center;
246
+ margin-left: 0.5rem;
248
247
  }
249
248
 
250
249
  // linked titles with icons goes fullwidth
251
250
  > a {
252
251
  display: flex;
253
- flex-direction: row;
254
252
  justify-content: space-between;
255
253
  width: 100%;
256
254
 
@@ -8,7 +8,7 @@
8
8
  border-radius: $v-gap * 1.5;
9
9
  height: $v-gap * 3;
10
10
  min-width: 100px;
11
- padding: 0 $v-gap / 2 2px $v-gap;
11
+ padding: 0 calc($v-gap / 2) 2px $v-gap;
12
12
  transition: all 0.05s;
13
13
  margin-top: $v-gap * 0.5;
14
14
  margin-bottom: $v-gap;
@@ -67,7 +67,7 @@
67
67
  height: $v-gap * 4;
68
68
  min-width: 120px;
69
69
  border-radius: $v-gap * 2;
70
- padding: 2px $v-gap / 2 0 $v-gap * 2;
70
+ padding: 2px calc($v-gap / 2) 0 $v-gap * 2;
71
71
  //label
72
72
  .chip-label {
73
73
  font-size: $chips-label-font-size-l;
@@ -285,9 +285,6 @@
285
285
  }
286
286
  &:after {
287
287
  color: $gray-disabled;
288
- .icon {
289
- fill: $gray-disabled;
290
- }
291
288
  }
292
289
  }
293
290
  // hover
@@ -30,7 +30,7 @@ fieldset {
30
30
  input,
31
31
  optgroup,
32
32
  textarea {
33
- color: $color-text-muted;
33
+ color: $color-text-base;
34
34
  }
35
35
 
36
36
  label {
@@ -46,7 +46,7 @@ fieldset {
46
46
  max-width: 100%;
47
47
  width: auto;
48
48
  padding: 0 $input-spacing-x;
49
- z-index: 5;
49
+ z-index: 2;
50
50
  &.active {
51
51
  transform: translateY(-85%);
52
52
  font-weight: 600;
@@ -1,13 +0,0 @@
1
- // text-color
2
- // excluding `secondary` due to different colors used for background and text, using a direct class instead
3
- @each $color, $value in $theme-colors {
4
- @if $color != 'white' and $color != 'secondary' {
5
- .text-#{$color} {
6
- color: $value;
7
- }
8
- }
9
- }
10
-
11
- .text-secondary {
12
- color: $color-text-secondary;
13
- }