bootstrap-italia 2.16.2 → 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.2';
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.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.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.2",
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.2'
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.2';
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
  }
@@ -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
 
@@ -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
- }