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.
@@ -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.4.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.4.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.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
@@ -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.4.2'\nexport default BOOTSTRAP_ITALIA_VERSION\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACK,MAAC,wBAAwB,GAAG;;;;"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootstrap-italia",
3
- "version": "2.4.2",
3
+ "version": "2.5.0",
4
4
  "keywords": [
5
5
  "css",
6
6
  "sass",
package/src/js/version.js CHANGED
@@ -1,5 +1,5 @@
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.2'
4
+ const BOOTSTRAP_ITALIA_VERSION = '2.5.0'
5
5
  export default BOOTSTRAP_ITALIA_VERSION
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  @function color-hover($color) {
29
- @return desaturate(shade-color($color, 10%), 10%);
29
+ @return desaturate(shade-color($color, 10%), 20%);
30
30
  }
31
31
 
32
32
  @function url-friendly-color($color) {
@@ -3,9 +3,7 @@
3
3
  font-size: $btn-font-size;
4
4
  white-space: initial;
5
5
  text-decoration: none;
6
- &:not(.btn-outline-primary, .btn-outline-secondary) {
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-secondary {
174
- box-shadow: inset 0 0 0 2px $secondary;
175
- &.disabled,
176
- &:hover,
177
- &:active {
178
- box-shadow: inset 0 0 0 2px color-hover($secondary);
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
- .btn-outline-primary {
183
- &.disabled {
184
- box-shadow: inset 0 0 0 2px color-hover($primary);
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
 
@@ -1,3 +1,3 @@
1
1
  :root {
2
- --bootstrap-italia-version: '2.4.2';
2
+ --bootstrap-italia-version: '2.5.0';
3
3
  }
@@ -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 1px $active-border;
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: hsl(210, 100%, 30%); // color-blue-30
420
- $footer-bottom-background: hsl(210, 100%, 20%); // color-blue-20
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;
@@ -2,4 +2,4 @@
2
2
  * Load Bootstrap Italia fonts
3
3
  * @param {string} path - the path where fonts live
4
4
  */
5
- export function loadFonts(path: string)
5
+ export function loadFonts(path: string): void