bootstrap-italia 2.4.2 → 2.5.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/README.EN.md +1 -1
- package/README.md +1 -1
- package/dist/css/bootstrap-italia-comuni.min.css +1 -1
- 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/_functions.scss +1 -1
- package/src/scss/custom/_buttons.scss +38 -21
- package/src/scss/custom/_version.scss +1 -1
- package/src/scss/custom/mixins/_buttons.scss +1 -1
- package/src/scss/utilities/colors_vars.scss +2 -2
- package/types/plugins/fonts-loader.d.ts +1 -1
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
const DATA_MOUSE_FOCUS="data-focus-mouse";class TrackFocus{constructor(){this._usingMouse=!1,this._bindEvents();}_bindEvents(){["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.5.0";
|
|
24
24
|
|
|
25
25
|
const init=()=>{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(){["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.5.0";
|
|
51
51
|
|
|
52
52
|
const init=()=>{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.5.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.5.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
package/src/scss/_functions.scss
CHANGED
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
font-size: $btn-font-size;
|
|
4
4
|
white-space: initial;
|
|
5
5
|
text-decoration: none;
|
|
6
|
-
|
|
7
|
-
box-shadow: none;
|
|
8
|
-
}
|
|
6
|
+
box-shadow: none;
|
|
9
7
|
}
|
|
10
8
|
|
|
11
9
|
.btn-me {
|
|
@@ -70,7 +68,6 @@
|
|
|
70
68
|
display: flex;
|
|
71
69
|
justify-content: center;
|
|
72
70
|
align-items: center;
|
|
73
|
-
|
|
74
71
|
background-color: $white;
|
|
75
72
|
|
|
76
73
|
@each $color, $value in $theme-colors {
|
|
@@ -101,20 +98,15 @@
|
|
|
101
98
|
box-shadow: none;
|
|
102
99
|
line-height: 1.555;
|
|
103
100
|
@include border-radius(0);
|
|
104
|
-
|
|
105
101
|
// allow height 100%
|
|
106
102
|
align-self: stretch;
|
|
107
103
|
// height: 100%;
|
|
108
|
-
|
|
109
104
|
width: inherit;
|
|
110
|
-
|
|
111
105
|
margin-top: -$header-slim-button-v-padding;
|
|
112
106
|
margin-bottom: -$header-slim-button-v-padding;
|
|
113
107
|
margin-right: -$header-slim-button-v-padding;
|
|
114
|
-
|
|
115
108
|
padding-left: 8px;
|
|
116
109
|
padding-right: 8px;
|
|
117
|
-
|
|
118
110
|
&:hover {
|
|
119
111
|
text-decoration: none !important;
|
|
120
112
|
}
|
|
@@ -128,7 +120,6 @@
|
|
|
128
120
|
@include media-breakpoint-up(lg) {
|
|
129
121
|
padding: 12px 24px !important;
|
|
130
122
|
margin: 0;
|
|
131
|
-
|
|
132
123
|
flex: 1;
|
|
133
124
|
display: flex;
|
|
134
125
|
flex-direction: row;
|
|
@@ -170,18 +161,44 @@
|
|
|
170
161
|
}
|
|
171
162
|
}
|
|
172
163
|
|
|
173
|
-
.btn-outline
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
164
|
+
.btn-outline {
|
|
165
|
+
&-primary {
|
|
166
|
+
box-shadow: inset 0 0 0 2px $primary;
|
|
167
|
+
&.disabled {
|
|
168
|
+
box-shadow: inset 0 0 0 2px color-hover($primary);
|
|
169
|
+
}
|
|
179
170
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
171
|
+
&-secondary {
|
|
172
|
+
box-shadow: inset 0 0 0 2px $secondary;
|
|
173
|
+
&.disabled,
|
|
174
|
+
&:hover,
|
|
175
|
+
&:active {
|
|
176
|
+
box-shadow: inset 0 0 0 2px color-hover($secondary);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
&-success {
|
|
180
|
+
box-shadow: inset 0 0 0 2px $success;
|
|
181
|
+
&.disabled,
|
|
182
|
+
&:hover,
|
|
183
|
+
&:active {
|
|
184
|
+
box-shadow: inset 0 0 0 2px color-hover($success);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
&-warning {
|
|
188
|
+
box-shadow: inset 0 0 0 2px $color-border-warning;
|
|
189
|
+
&.disabled,
|
|
190
|
+
&:hover,
|
|
191
|
+
&:active {
|
|
192
|
+
box-shadow: inset 0 0 0 2px color-hover($color-border-warning);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
&-danger {
|
|
196
|
+
box-shadow: inset 0 0 0 2px $danger;
|
|
197
|
+
&.disabled,
|
|
198
|
+
&:hover,
|
|
199
|
+
&:active {
|
|
200
|
+
box-shadow: inset 0 0 0 2px color-hover($danger);
|
|
201
|
+
}
|
|
185
202
|
}
|
|
186
203
|
}
|
|
187
204
|
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
color: $active-border;
|
|
85
85
|
background-color: transparent;
|
|
86
86
|
background-image: none;
|
|
87
|
-
box-shadow: inset 0 0 0
|
|
87
|
+
box-shadow: inset 0 0 0 2px $active-border;
|
|
88
88
|
|
|
89
89
|
&:focus {
|
|
90
90
|
// Avoid using mixin so we can pass custom focus shadow properly
|
|
@@ -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:
|
|
420
|
-
$footer-bottom-background:
|
|
419
|
+
$footer-top-background: $primary-a8; // color-blue-30
|
|
420
|
+
$footer-bottom-background: $primary-a10; // color-blue-20
|
|
421
421
|
|
|
422
422
|
// Icons
|
|
423
423
|
$icon-primary: $primary;
|