bootstrap-italia 2.16.1 → 2.17.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.
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.1';
11
+ const BOOTSTRAP_ITALIA_VERSION = '2.17.0';
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.1'\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.0'\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.1",
3
+ "version": "2.17.0",
4
4
  "keywords": [
5
5
  "css",
6
6
  "sass",
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.1'
11
+ const BOOTSTRAP_ITALIA_VERSION = '2.17.0'
12
12
  export default BOOTSTRAP_ITALIA_VERSION
@@ -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
@@ -151,36 +151,36 @@ $escaped-characters: (('<', '%3c'), ('>', '%3e'), ('#', '%23'), ('(', '%28'), ('
151
151
 
152
152
  // ACCENT COLORS DEFINITIONS
153
153
  // analoghi
154
- $analogue-1-h: 243;
155
- $analogue-1-s: 85;
156
- $analogue-1-b: 100;
154
+ $analogue-1-h: 243 !default;
155
+ $analogue-1-s: 85 !default;
156
+ $analogue-1-b: 100 !default;
157
157
  $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;
158
+ $analogue-2-h: 178 !default;
159
+ $analogue-2-s: 95 !default;
160
+ $analogue-2-b: 85 !default;
161
161
  $analogue-2: hsb($analogue-2-h, $analogue-2-s, $analogue-2-b) !default;
162
162
  // Complementari e triadici
163
- $complementary-1-h: 351;
164
- $complementary-1-s: 75;
165
- $complementary-1-b: 97;
163
+ $complementary-1-h: 351 !default;
164
+ $complementary-1-s: 75 !default;
165
+ $complementary-1-b: 97 !default;
166
166
  $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;
167
+ $complementary-2-h: 36 !default;
168
+ $complementary-2-s: 100 !default;
169
+ $complementary-2-b: 100 !default;
170
170
  $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;
171
+ $complementary-3-h: 159 !default;
172
+ $complementary-3-s: 100 !default;
173
+ $complementary-3-b: 81 !default;
174
174
  $complementary-3: hsb($complementary-3-h, $complementary-3-s, $complementary-3-b) !default;
175
175
 
176
176
  // NEUTRAL COLORS DEFINITIONS
177
- $neutral-1-h: 210;
178
- $neutral-1-s: 70;
179
- $neutral-1-b: 30;
177
+ $neutral-1-h: 210 !default;
178
+ $neutral-1-s: 70 !default;
179
+ $neutral-1-b: 30 !default;
180
180
  $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;
181
+ $neutral-2-h: 210 !default;
182
+ $neutral-2-s: 5 !default;
183
+ $neutral-2-b: 95 !default;
184
184
  $neutral-2: hsb($neutral-2-h, $neutral-2-s, $neutral-2-b) !default;
185
185
 
186
186
  // Light Greys A
@@ -1,3 +1,3 @@
1
1
  :root {
2
- --bootstrap-italia-version: '2.16.1';
2
+ --bootstrap-italia-version: '2.17.0';
3
3
  }
@@ -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
  }
@@ -1,5 +1,3 @@
1
- @use 'sass:math';
2
-
3
1
  // Special list for long groups of cards, bootstrap row/cols grid
4
2
  ul.row.it-card-list {
5
3
  list-style-type: none;
@@ -176,7 +174,7 @@ article.it-card {
176
174
  --#{$prefix}it-card-height: auto;
177
175
  --#{$prefix}it-card-inline-min-height: 240px;
178
176
  --#{$prefix}it-card-inline-mini-min-height: 160px;
179
- --#{$prefix}it-card-inner-border-radius: subtract(var(--#{$prefix}it-card-border-radius), var(--#{$prefix}it-card-border-outside-width));
177
+ --#{$prefix}it-card-inner-border-radius: calc(var(--#{$prefix}it-card-border-radius) - var(--#{$prefix}it-card-border-outside-width));
180
178
  --#{$prefix}it-card-link-color: #{$color-text-secondary};
181
179
  --#{$prefix}it-card-list-group-item-padding-y: 0.75rem;
182
180
  --#{$prefix}it-card-p-color: #{$color-text-secondary};
@@ -220,68 +218,6 @@ article.it-card {
220
218
  }
221
219
  }
222
220
 
223
- // Profile card
224
- &.it-card-profile {
225
- .it-card-profile-header {
226
- display: flex;
227
- flex-direction: row;
228
- flex-wrap: wrap-reverse;
229
- justify-content: space-between;
230
- align-items: center;
231
-
232
- // Gap fallback
233
- > * {
234
- margin: 0.5rem;
235
- }
236
-
237
- @supports (gap: 1rem) {
238
- gap: 1rem;
239
-
240
- > * {
241
- margin: 0;
242
- }
243
- }
244
-
245
- margin-top: calc(2 * var(--#{$prefix}it-card-title-spacer-y));
246
- margin-bottom: var(--#{$prefix}it-card-title-spacer-y);
247
- padding: 0 var(--#{$prefix}it-card-spacer-x);
248
-
249
- .it-card-profile {
250
- flex: 1;
251
- max-width: 100%;
252
-
253
- .it-card-profile-name {
254
- margin-bottom: 0.25rem;
255
- }
256
-
257
- .it-card-profile-role,
258
- .it-card-place-type {
259
- font-weight: 600;
260
- font-size: 1rem;
261
- line-height: 1.5rem;
262
- margin-bottom: 0;
263
- }
264
- }
265
-
266
- .it-card-profile-image {
267
- max-width: 80px;
268
- max-height: 80px;
269
-
270
- figure {
271
- margin-bottom: 0;
272
- }
273
-
274
- .it-card-profile-image-icon-wrapper {
275
- display: flex;
276
- justify-content: center;
277
- align-items: center;
278
-
279
- background-color: $color-background-primary-lighter;
280
- }
281
- }
282
- }
283
- }
284
-
285
221
  // Card title styles
286
222
  .it-card-title {
287
223
  margin-top: calc(2 * var(--#{$prefix}it-card-title-spacer-y));
@@ -292,7 +228,6 @@ article.it-card {
292
228
  display: flex;
293
229
  flex-direction: row;
294
230
  justify-content: space-between;
295
- margin-right: -8px;
296
231
 
297
232
  // Gap fallback
298
233
  > * {
@@ -308,14 +243,12 @@ article.it-card {
308
243
  }
309
244
 
310
245
  .it-card-title-icon-wrapper {
311
- display: flex;
312
- align-items: center;
246
+ margin-left: 0.5rem;
313
247
  }
314
248
 
315
249
  // linked titles with icons goes fullwidth
316
250
  > a {
317
251
  display: flex;
318
- flex-direction: row;
319
252
  justify-content: space-between;
320
253
  width: 100%;
321
254
 
@@ -374,7 +307,7 @@ article.it-card {
374
307
  }
375
308
  }
376
309
 
377
- // Card footer cap
310
+ // Card footer
378
311
  .it-card-footer {
379
312
  margin: 0 var(--#{$prefix}it-card-cap-padding-x);
380
313
  padding: var(--#{$prefix}it-card-cap-padding-y) 0;
@@ -573,20 +506,16 @@ article.it-card {
573
506
  // Card image responsive wrapper and a11y DOM order hack
574
507
  &.it-card-image {
575
508
  width: 100%;
576
- @include border-top-radius(var(--#{$prefix}it-card-inner-border-radius));
577
- @include border-bottom-radius(var(--#{$prefix}it-card-inner-border-radius));
578
509
 
579
510
  .it-card-image-wrapper {
580
511
  order: -1;
581
512
  }
582
513
 
583
514
  &.rounded {
584
- .it-card-image-wrapper {
585
- &:first-child,
586
- &:nth-child(2) {
587
- border-top-left-radius: var(--#{$prefix}it-card-inner-border-radius);
588
- border-top-right-radius: var(--#{$prefix}it-card-inner-border-radius);
589
- }
515
+ @include border-top-radius(var(--#{$prefix}it-card-inner-border-radius));
516
+
517
+ .it-card-image-wrapper img {
518
+ @include border-top-radius(var(--#{$prefix}it-card-inner-border-radius));
590
519
  }
591
520
 
592
521
  &.it-card-border-top {
@@ -642,6 +571,68 @@ article.it-card {
642
571
  }
643
572
  }
644
573
 
574
+ // Card profile
575
+ &.it-card-profile {
576
+ .it-card-profile-header {
577
+ display: flex;
578
+ flex-direction: row;
579
+ flex-wrap: wrap-reverse;
580
+ justify-content: space-between;
581
+ align-items: center;
582
+
583
+ // Gap fallback
584
+ > * {
585
+ margin: 0.5rem;
586
+ }
587
+
588
+ @supports (gap: 1rem) {
589
+ gap: 1rem;
590
+
591
+ > * {
592
+ margin: 0;
593
+ }
594
+ }
595
+
596
+ margin-top: calc(2 * var(--#{$prefix}it-card-title-spacer-y));
597
+ margin-bottom: var(--#{$prefix}it-card-title-spacer-y);
598
+ padding: 0 var(--#{$prefix}it-card-spacer-x);
599
+
600
+ .it-card-profile {
601
+ flex: 1;
602
+ max-width: 100%;
603
+
604
+ .it-card-profile-name {
605
+ margin-bottom: 0.25rem;
606
+ }
607
+
608
+ .it-card-profile-role,
609
+ .it-card-place-type {
610
+ font-weight: 600;
611
+ font-size: 1rem;
612
+ line-height: 1.5rem;
613
+ margin-bottom: 0;
614
+ }
615
+ }
616
+
617
+ .it-card-profile-image {
618
+ max-width: 80px;
619
+ max-height: 80px;
620
+
621
+ figure {
622
+ margin-bottom: 0;
623
+ }
624
+
625
+ .it-card-profile-image-icon-wrapper {
626
+ display: flex;
627
+ justify-content: center;
628
+ align-items: center;
629
+
630
+ background-color: $color-background-primary-lighter;
631
+ }
632
+ }
633
+ }
634
+ }
635
+
645
636
  // Card presentation
646
637
  &.it-card-banner {
647
638
  align-items: center;
@@ -721,24 +712,19 @@ article.it-card {
721
712
  }
722
713
  }
723
714
 
715
+ // Image border radius adjustments
724
716
  &.rounded {
725
- .it-card-image-wrapper {
726
- &:first-child,
727
- &:nth-child(2) {
728
- border-top-right-radius: 0 !important;
729
- border-bottom-left-radius: var(--#{$prefix}it-card-inner-border-radius);
730
- }
717
+ .it-card-image-wrapper img {
718
+ border-top-right-radius: 0;
719
+ border-bottom-left-radius: var(--#{$prefix}it-card-inner-border-radius);
731
720
  }
732
721
 
733
722
  &.it-card-inline-reverse {
734
- .it-card-image-wrapper {
735
- &:first-child,
736
- &:nth-child(2) {
737
- border-top-left-radius: 0 !important;
738
- border-bottom-left-radius: 0 !important;
739
- border-top-right-radius: var(--#{$prefix}it-card-inner-border-radius) !important;
740
- border-bottom-right-radius: var(--#{$prefix}it-card-inner-border-radius) !important;
741
- }
723
+ .it-card-image-wrapper img {
724
+ border-top-right-radius: var(--#{$prefix}it-card-inner-border-radius);
725
+ border-bottom-right-radius: var(--#{$prefix}it-card-inner-border-radius);
726
+ border-top-left-radius: 0;
727
+ border-bottom-left-radius: 0;
742
728
  }
743
729
  }
744
730
  }
@@ -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
- }