bootstrap-italia 2.8.8 → 2.9.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/css/bootstrap-italia.min.css +1 -1
- package/dist/css/bootstrap-italia.min.css.map +1 -1
- package/dist/js/bootstrap-italia.bundle.min.js +1 -1
- package/dist/js/bootstrap-italia.min.js +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
- package/src/js/version.js +1 -1
- package/src/scss/custom/_forms.scss +24 -26
- package/src/scss/custom/_version.scss +1 -1
- package/src/scss/utilities/colors_vars.scss +2 -2
- package/src/scss/utilities/text-colors.scss +7 -2
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
const DATA_MOUSE_FOCUS="data-focus-mouse";class TrackFocus{constructor(){this._usingMouse=!1,this._bindEvents();}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach((t=>{document.addEventListener(t,(t=>{this._usingMouse="mousedown"===t.type;}));})),document.addEventListener("focusin",(t=>{this._usingMouse&&t.target&&(t.target.classList.add("focus--mouse"),t.target.setAttribute(DATA_MOUSE_FOCUS,!0));})),document.addEventListener("focusout",(t=>{t.target&&(t.target.classList.remove("focus--mouse"),t.target.setAttribute(DATA_MOUSE_FOCUS,!1));}));}}new TrackFocus;const TrackFocus$1 = TrackFocus;
|
|
22
22
|
|
|
23
|
-
const BOOTSTRAP_ITALIA_VERSION = "2.
|
|
23
|
+
const BOOTSTRAP_ITALIA_VERSION = "2.9.0";
|
|
24
24
|
|
|
25
25
|
const init=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new TrackFocus$1,window.BOOTSTRAP_ITALIA_VERSION=BOOTSTRAP_ITALIA_VERSION);};const init$1 = init;init();
|
|
26
26
|
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
const DATA_MOUSE_FOCUS="data-focus-mouse";class TrackFocus{constructor(){this._usingMouse=!1,this._bindEvents();}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach((t=>{document.addEventListener(t,(t=>{this._usingMouse="mousedown"===t.type;}));})),document.addEventListener("focusin",(t=>{this._usingMouse&&t.target&&(t.target.classList.add("focus--mouse"),t.target.setAttribute(DATA_MOUSE_FOCUS,!0));})),document.addEventListener("focusout",(t=>{t.target&&(t.target.classList.remove("focus--mouse"),t.target.setAttribute(DATA_MOUSE_FOCUS,!1));}));}}new TrackFocus;const TrackFocus$1 = TrackFocus;
|
|
49
49
|
|
|
50
|
-
const BOOTSTRAP_ITALIA_VERSION = "2.
|
|
50
|
+
const BOOTSTRAP_ITALIA_VERSION = "2.9.0";
|
|
51
51
|
|
|
52
52
|
const init=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new TrackFocus$1,window.BOOTSTRAP_ITALIA_VERSION=BOOTSTRAP_ITALIA_VERSION);};const init$1 = init;init();
|
|
53
53
|
|
package/dist/version.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// bootstrap italia version variable
|
|
2
2
|
// useful to check for the current version
|
|
3
3
|
// eslint-disable-next-line no-unused-vars
|
|
4
|
-
const BOOTSTRAP_ITALIA_VERSION = '2.
|
|
4
|
+
const BOOTSTRAP_ITALIA_VERSION = '2.9.0';
|
|
5
5
|
|
|
6
6
|
export { BOOTSTRAP_ITALIA_VERSION as default };
|
|
7
7
|
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../src/js/version.js"],"sourcesContent":["// bootstrap italia version variable\n// useful to check for the current version\n// eslint-disable-next-line no-unused-vars\nconst BOOTSTRAP_ITALIA_VERSION = '2.
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../src/js/version.js"],"sourcesContent":["// bootstrap italia version variable\n// useful to check for the current version\n// eslint-disable-next-line no-unused-vars\nconst BOOTSTRAP_ITALIA_VERSION = '2.9.0'\nexport default BOOTSTRAP_ITALIA_VERSION\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACK,MAAC,wBAAwB,GAAG;;;;"}
|
package/package.json
CHANGED
package/src/js/version.js
CHANGED
|
@@ -11,9 +11,6 @@ fieldset {
|
|
|
11
11
|
display: block;
|
|
12
12
|
max-width: 100%;
|
|
13
13
|
width: auto;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
text-overflow: ellipsis;
|
|
16
|
-
white-space: nowrap;
|
|
17
14
|
padding: 0 $input-spacing-x;
|
|
18
15
|
z-index: 1;
|
|
19
16
|
font-size: $small-font-size;
|
|
@@ -48,9 +45,6 @@ fieldset {
|
|
|
48
45
|
display: block;
|
|
49
46
|
max-width: 100%;
|
|
50
47
|
width: auto;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
text-overflow: ellipsis;
|
|
53
|
-
white-space: nowrap;
|
|
54
48
|
padding: 0 $input-spacing-x;
|
|
55
49
|
z-index: 1;
|
|
56
50
|
&.active {
|
|
@@ -245,8 +239,14 @@ textarea {
|
|
|
245
239
|
|
|
246
240
|
.form-check {
|
|
247
241
|
padding-left: 0;
|
|
248
|
-
margin-top: 0.5rem;
|
|
249
242
|
position: relative;
|
|
243
|
+
margin-bottom: 0.5rem;
|
|
244
|
+
|
|
245
|
+
// add vertical spacing for consequential elements
|
|
246
|
+
& + & {
|
|
247
|
+
margin-top: 0.5rem;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
250
|
[type='checkbox'],
|
|
251
251
|
[type='radio'] {
|
|
252
252
|
position: absolute;
|
|
@@ -258,14 +258,12 @@ textarea {
|
|
|
258
258
|
|
|
259
259
|
+ label {
|
|
260
260
|
position: relative;
|
|
261
|
-
padding-left:
|
|
261
|
+
padding-left: 2rem;
|
|
262
262
|
cursor: pointer;
|
|
263
263
|
display: inline-block;
|
|
264
|
-
height: 32px;
|
|
265
|
-
line-height: 32px;
|
|
266
264
|
font-size: 1rem;
|
|
265
|
+
font-weight: $font-weight-semibold;
|
|
267
266
|
user-select: none;
|
|
268
|
-
margin-bottom: 0.5rem;
|
|
269
267
|
@include media-breakpoint-up(sm) {
|
|
270
268
|
font-size: 1.125rem;
|
|
271
269
|
}
|
|
@@ -299,7 +297,7 @@ textarea {
|
|
|
299
297
|
height: 17px;
|
|
300
298
|
border: 1px solid #e6e9f2;
|
|
301
299
|
border-radius: 1px;
|
|
302
|
-
margin: 2px
|
|
300
|
+
margin: 2px 4px;
|
|
303
301
|
transform: rotateZ(37deg);
|
|
304
302
|
transform-origin: 100% 100%;
|
|
305
303
|
}
|
|
@@ -308,12 +306,12 @@ textarea {
|
|
|
308
306
|
border-radius: 4px;
|
|
309
307
|
height: 20px;
|
|
310
308
|
width: 20px;
|
|
311
|
-
margin:
|
|
309
|
+
margin: 4px;
|
|
312
310
|
top: 0;
|
|
313
311
|
}
|
|
314
312
|
|
|
315
313
|
&:checked + label::before {
|
|
316
|
-
top:
|
|
314
|
+
top: 4px;
|
|
317
315
|
left: 1px;
|
|
318
316
|
width: 8px;
|
|
319
317
|
height: 13px;
|
|
@@ -373,8 +371,8 @@ textarea {
|
|
|
373
371
|
left: 0;
|
|
374
372
|
top: 0;
|
|
375
373
|
margin: 5px;
|
|
376
|
-
width:
|
|
377
|
-
height:
|
|
374
|
+
width: 20px;
|
|
375
|
+
height: 20px;
|
|
378
376
|
z-index: 0;
|
|
379
377
|
border-radius: 50%;
|
|
380
378
|
border-style: solid;
|
|
@@ -435,15 +433,15 @@ textarea {
|
|
|
435
433
|
|
|
436
434
|
// gruppi
|
|
437
435
|
&.form-check-group {
|
|
438
|
-
padding: 0 0
|
|
439
|
-
margin-bottom:
|
|
436
|
+
padding: 0 0 1rem 0;
|
|
437
|
+
margin-bottom: 1rem;
|
|
440
438
|
box-shadow: inset 0 -1px 0 0 rgba(1, 1, 1, 0.1);
|
|
441
439
|
|
|
442
440
|
[type='checkbox'] + label,
|
|
443
441
|
[type='radio'] + label {
|
|
444
442
|
position: static;
|
|
445
443
|
padding-left: 0;
|
|
446
|
-
padding-right:
|
|
444
|
+
padding-right: 3.25rem;
|
|
447
445
|
|
|
448
446
|
&::after,
|
|
449
447
|
&::before {
|
|
@@ -461,22 +459,22 @@ textarea {
|
|
|
461
459
|
}
|
|
462
460
|
|
|
463
461
|
.form-text {
|
|
464
|
-
margin: 0;
|
|
465
|
-
padding-right: 52px;
|
|
466
462
|
display: block;
|
|
467
|
-
|
|
463
|
+
padding-right: 3.25rem;
|
|
464
|
+
margin-bottom: 0.5rem;
|
|
468
465
|
}
|
|
469
466
|
|
|
470
|
-
label {
|
|
471
|
-
|
|
472
|
-
}
|
|
467
|
+
// label {
|
|
468
|
+
// font-weight: 600;
|
|
469
|
+
// }
|
|
470
|
+
|
|
473
471
|
input.semi-checked:not(:checked) + label::before {
|
|
474
472
|
right: 19px;
|
|
475
473
|
left: auto;
|
|
476
474
|
}
|
|
477
475
|
}
|
|
478
476
|
input.semi-checked:not(:checked) + label::before {
|
|
479
|
-
top:
|
|
477
|
+
top: 11px;
|
|
480
478
|
left: 4px;
|
|
481
479
|
width: 12px;
|
|
482
480
|
height: 2px;
|
|
@@ -416,8 +416,8 @@ $color-text-warning: hsl(36, 100%, 30%); // color-orange-30
|
|
|
416
416
|
// SPECIFIC TOKENS =========================================================
|
|
417
417
|
//
|
|
418
418
|
// Footer
|
|
419
|
-
$footer-top-background: $primary-a8; // color-blue-30
|
|
420
|
-
$footer-bottom-background: $primary-a10; // color-blue-20
|
|
419
|
+
$footer-top-background: $primary-a8 !default; // color-blue-30
|
|
420
|
+
$footer-bottom-background: $primary-a10 !default; // color-blue-20
|
|
421
421
|
|
|
422
422
|
// Icons
|
|
423
423
|
$icon-primary: $primary;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
//text-color
|
|
1
|
+
// text-color
|
|
2
|
+
// excluding `secondary` due to different colors used for background and text, using a direct class instead
|
|
2
3
|
@each $color, $value in $theme-colors {
|
|
3
|
-
@if $color != 'white' {
|
|
4
|
+
@if $color != 'white' and $color != 'secondary' {
|
|
4
5
|
.text-#{$color} {
|
|
5
6
|
color: $value;
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
9
|
}
|
|
10
|
+
|
|
11
|
+
.text-secondary {
|
|
12
|
+
color: $color-text-secondary;
|
|
13
|
+
}
|