bootstrap-italia 2.16.1 → 2.16.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.1';
11
+ const BOOTSTRAP_ITALIA_VERSION = '2.16.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.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.16.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.1",
3
+ "version": "2.16.2",
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.16.2'
12
12
  export default BOOTSTRAP_ITALIA_VERSION
@@ -1,3 +1,3 @@
1
1
  :root {
2
- --bootstrap-italia-version: '2.16.1';
2
+ --bootstrap-italia-version: '2.16.2';
3
3
  }
@@ -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
  > * {
@@ -374,7 +309,7 @@ article.it-card {
374
309
  }
375
310
  }
376
311
 
377
- // Card footer cap
312
+ // Card footer
378
313
  .it-card-footer {
379
314
  margin: 0 var(--#{$prefix}it-card-cap-padding-x);
380
315
  padding: var(--#{$prefix}it-card-cap-padding-y) 0;
@@ -573,20 +508,16 @@ article.it-card {
573
508
  // Card image responsive wrapper and a11y DOM order hack
574
509
  &.it-card-image {
575
510
  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
511
 
579
512
  .it-card-image-wrapper {
580
513
  order: -1;
581
514
  }
582
515
 
583
516
  &.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
- }
517
+ @include border-top-radius(var(--#{$prefix}it-card-inner-border-radius));
518
+
519
+ .it-card-image-wrapper img {
520
+ @include border-top-radius(var(--#{$prefix}it-card-inner-border-radius));
590
521
  }
591
522
 
592
523
  &.it-card-border-top {
@@ -642,6 +573,68 @@ article.it-card {
642
573
  }
643
574
  }
644
575
 
576
+ // Card profile
577
+ &.it-card-profile {
578
+ .it-card-profile-header {
579
+ display: flex;
580
+ flex-direction: row;
581
+ flex-wrap: wrap-reverse;
582
+ justify-content: space-between;
583
+ align-items: center;
584
+
585
+ // Gap fallback
586
+ > * {
587
+ margin: 0.5rem;
588
+ }
589
+
590
+ @supports (gap: 1rem) {
591
+ gap: 1rem;
592
+
593
+ > * {
594
+ margin: 0;
595
+ }
596
+ }
597
+
598
+ margin-top: calc(2 * var(--#{$prefix}it-card-title-spacer-y));
599
+ margin-bottom: var(--#{$prefix}it-card-title-spacer-y);
600
+ padding: 0 var(--#{$prefix}it-card-spacer-x);
601
+
602
+ .it-card-profile {
603
+ flex: 1;
604
+ max-width: 100%;
605
+
606
+ .it-card-profile-name {
607
+ margin-bottom: 0.25rem;
608
+ }
609
+
610
+ .it-card-profile-role,
611
+ .it-card-place-type {
612
+ font-weight: 600;
613
+ font-size: 1rem;
614
+ line-height: 1.5rem;
615
+ margin-bottom: 0;
616
+ }
617
+ }
618
+
619
+ .it-card-profile-image {
620
+ max-width: 80px;
621
+ max-height: 80px;
622
+
623
+ figure {
624
+ margin-bottom: 0;
625
+ }
626
+
627
+ .it-card-profile-image-icon-wrapper {
628
+ display: flex;
629
+ justify-content: center;
630
+ align-items: center;
631
+
632
+ background-color: $color-background-primary-lighter;
633
+ }
634
+ }
635
+ }
636
+ }
637
+
645
638
  // Card presentation
646
639
  &.it-card-banner {
647
640
  align-items: center;
@@ -721,24 +714,19 @@ article.it-card {
721
714
  }
722
715
  }
723
716
 
717
+ // Image border radius adjustments
724
718
  &.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
- }
719
+ .it-card-image-wrapper img {
720
+ border-top-right-radius: 0;
721
+ border-bottom-left-radius: var(--#{$prefix}it-card-inner-border-radius);
731
722
  }
732
723
 
733
724
  &.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
- }
725
+ .it-card-image-wrapper img {
726
+ border-top-right-radius: var(--#{$prefix}it-card-inner-border-radius);
727
+ border-bottom-right-radius: var(--#{$prefix}it-card-inner-border-radius);
728
+ border-top-left-radius: 0;
729
+ border-bottom-left-radius: 0;
742
730
  }
743
731
  }
744
732
  }