bootstrap-italia 2.3.7 → 2.4.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.
Files changed (41) hide show
  1. package/dist/bootstrap-italia.esm.js +2 -0
  2. package/dist/bootstrap-italia.esm.js.map +1 -1
  3. package/dist/css/bootstrap-italia-comuni.min.css +1 -1
  4. package/dist/css/bootstrap-italia.min.css +1 -1
  5. package/dist/css/bootstrap-italia.min.css.map +1 -1
  6. package/dist/js/bootstrap-italia.bundle.min.js +198 -72
  7. package/dist/js/bootstrap-italia.min.js +54 -47
  8. package/dist/plugins/accept-overlay.js +118 -0
  9. package/dist/plugins/accept-overlay.js.map +1 -0
  10. package/dist/plugins/carousel-bi.js +1 -1
  11. package/dist/plugins/carousel-bi.js.map +1 -1
  12. package/dist/plugins/dimmer.js +0 -16
  13. package/dist/plugins/dimmer.js.map +1 -1
  14. package/dist/plugins/util/cookies.js +29 -0
  15. package/dist/plugins/util/cookies.js.map +1 -0
  16. package/dist/plugins/videoplayer.js +151 -0
  17. package/dist/plugins/videoplayer.js.map +1 -0
  18. package/dist/version.js +1 -1
  19. package/dist/version.js.map +1 -1
  20. package/package.json +6 -5
  21. package/src/js/bootstrap-italia.entry.js +6 -0
  22. package/src/js/bootstrap-italia.esm.js +2 -0
  23. package/src/js/plugins/accept-overlay.js +118 -0
  24. package/src/js/plugins/carousel-bi.js +1 -1
  25. package/src/js/plugins/dimmer.js +0 -15
  26. package/src/js/plugins/util/cookies.js +28 -0
  27. package/src/js/plugins/videoplayer.js +151 -0
  28. package/src/js/version.js +1 -1
  29. package/src/scss/_variables.scss +1 -1
  30. package/src/scss/bootstrap-italia.scss +2 -0
  31. package/src/scss/custom/_accept-overlay.scss +128 -0
  32. package/src/scss/custom/_alert.scss +1 -1
  33. package/src/scss/custom/_buttons.scss +10 -3
  34. package/src/scss/custom/_callout.scss +53 -10
  35. package/src/scss/custom/_carousel.scss +1 -1
  36. package/src/scss/custom/_timeline.scss +3 -0
  37. package/src/scss/custom/_type.scss +1 -0
  38. package/src/scss/custom/_version.scss +1 -1
  39. package/src/scss/custom/_videoplayer.scss +40 -0
  40. package/types/index.d.ts +2 -0
  41. package/types/plugins/fonts-loader.d.ts +5 -0
@@ -26,6 +26,9 @@
26
26
  .timeline-element {
27
27
  padding: $timeline-content-padding;
28
28
  position: relative;
29
+ .card {
30
+ background: none;
31
+ }
29
32
  }
30
33
  .it-pin-wrapper {
31
34
  display: flex;
@@ -147,6 +147,7 @@ blockquote,
147
147
  caption {
148
148
  font-size: 0.777rem;
149
149
  line-height: 1.4285;
150
+ color: $color-text-muted;
150
151
  }
151
152
 
152
153
  b,
@@ -1,3 +1,3 @@
1
1
  :root {
2
- --bootstrap-italia-version: '2.3.7';
2
+ --bootstrap-italia-version: '2.4.0';
3
3
  }
@@ -0,0 +1,40 @@
1
+ /* stylelint-disable */
2
+ @import 'video.js/src/css/video-js';
3
+ /* stylelint-enable */
4
+
5
+ .vjs-theme-bootstrap-italia {
6
+ .vjs-big-play-button {
7
+ background-color: $primary;
8
+ }
9
+ &:hover .vjs-big-play-button,
10
+ &.vjs-big-play-button:focus {
11
+ background-color: $primary;
12
+ }
13
+ .vjs-control-bar {
14
+ background-color: $primary;
15
+ font-size: 1.1em;
16
+ @include media-breakpoint-up(lg) {
17
+ min-height: 48px;
18
+ font-size: 1rem;
19
+ }
20
+ }
21
+ }
22
+
23
+ .acceptoverlay + .vjs-fluid {
24
+ min-height: 400px;
25
+ }
26
+
27
+ .vjs-transcription {
28
+ display: flex;
29
+ justify-content: center;
30
+ border: none;
31
+ .accordion-button {
32
+ border: none;
33
+ }
34
+ .accordion-item {
35
+ width: 100%;
36
+ @include media-breakpoint-up(lg) {
37
+ width: 75ch;
38
+ }
39
+ }
40
+ }
package/types/index.d.ts CHANGED
@@ -36,6 +36,7 @@ import { Tooltip } from './plugins/tooltip'
36
36
  import { TrackFocus } from './plugins/track-focus'
37
37
  import { Transfer } from './plugins/transfer'
38
38
  import { UploadDragDrop } from './plugins/upload-dragdrop'
39
+ import { loadFonts } from './plugins/fonts-loader'
39
40
 
40
41
  export {
41
42
  Alert,
@@ -77,4 +78,5 @@ export {
77
78
  TrackFocus,
78
79
  Transfer,
79
80
  UploadDragDrop,
81
+ loadFonts
80
82
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Load Bootstrap Italia fonts
3
+ * @param {string} path - the path where fonts live
4
+ */
5
+ export function loadFonts(path: string = '/node_modules/bootstrap-italia/dist/fonts')