bootstrap-italia 2.10.0 → 2.11.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.
@@ -1,41 +1,47 @@
1
1
  //mobile
2
2
  .it-grid-item-wrapper {
3
3
  position: relative;
4
+
4
5
  // img default proportion
5
6
  .img-responsive-wrapper {
6
7
  border-radius: $border-radius;
8
+
7
9
  .img-responsive {
8
10
  padding-bottom: $grid-item-df-proportion;
9
11
  }
10
12
  }
13
+
11
14
  // text
12
15
  .it-griditem-text-wrapper {
13
16
  display: flex;
14
17
  justify-content: space-between;
15
- padding: $v-gap;
16
18
  align-items: center;
19
+
17
20
  .it-griditem-text {
18
- font-size: $grid-item-text-size-mob;
19
- color: $grid-item-text-color;
20
- font-weight: 600;
21
+ font-size: $grid-item-text-size;
22
+ font-weight: $font-weight-semibold;
21
23
  }
24
+
22
25
  .icon {
23
26
  flex-shrink: 0;
24
27
  position: relative;
25
- right: -$v-gap;
26
28
  fill: $primary;
27
- width: $grid-item-icon-mob-size;
28
- height: $grid-item-icon-mob-size;
29
+ width: $grid-item-icon-size;
30
+ height: $grid-item-icon-size;
29
31
  }
30
32
  }
33
+
31
34
  // text overlay
32
35
  &.it-grid-item-overlay {
33
36
  position: relative;
37
+
34
38
  .img-responsive-wrapper {
39
+ position: relative;
40
+
35
41
  &:after {
36
42
  content: '';
37
43
  display: block;
38
- background: rgba(0, 0, 0, 0.5);
44
+ background: $grid-item-overlay;
39
45
  position: absolute;
40
46
  left: 0;
41
47
  top: 0;
@@ -43,6 +49,7 @@
43
49
  height: 100%;
44
50
  }
45
51
  }
52
+
46
53
  .it-griditem-text-wrapper {
47
54
  position: absolute;
48
55
  left: 0;
@@ -59,7 +66,18 @@
59
66
  fill: #fff;
60
67
  }
61
68
  }
69
+
70
+ .figure-img {
71
+ margin-bottom: 0;
72
+ }
73
+
74
+ .figure-caption {
75
+ position: absolute;
76
+ z-index: 10;
77
+ color: #fff;
78
+ }
62
79
  }
80
+
63
81
  a {
64
82
  display: block;
65
83
  text-decoration: none;
@@ -85,24 +103,29 @@
85
103
  .it-grid-list-wrapper {
86
104
  padding-left: $grid-list-default-gap * 2;
87
105
  padding-right: $grid-list-default-gap * 2;
106
+
88
107
  // grid changes
89
108
  div[class^='col-'] {
90
109
  padding: 0 $grid-list-default-gap $grid-list-default-gap * 2 $grid-list-default-gap;
91
110
  }
111
+
92
112
  .grid-row {
93
113
  display: flex;
94
114
  margin-left: -$grid-list-default-gap;
95
115
  margin-right: -$grid-list-default-gap;
96
116
  flex-wrap: wrap;
97
117
  }
118
+
98
119
  // grid with label
99
120
  &.it-image-label-grid {
100
121
  padding-left: $grid-list-text-gap * 2;
101
122
  padding-right: $grid-list-text-gap * 2;
123
+
102
124
  // grid changes
103
125
  div[class^='col-'] {
104
126
  padding: 0 $grid-list-text-gap $grid-list-text-gap * 2 $grid-list-text-gap;
105
127
  }
128
+
106
129
  .grid-row {
107
130
  margin-left: -(($grid-list-text-gap * 2) + ($grid-list-default-gap * 2));
108
131
  margin-right: -(($grid-list-text-gap * 2) + ($grid-list-default-gap * 2));
@@ -117,12 +140,14 @@
117
140
  .img-responsive {
118
141
  padding-bottom: initial;
119
142
  height: auto;
143
+
120
144
  .img-wrapper {
121
145
  position: inherit;
122
146
  left: initial;
123
147
  right: initial;
124
148
  width: initial;
125
149
  height: initial;
150
+
126
151
  img {
127
152
  height: auto;
128
153
  object-fit: initial;
@@ -139,20 +164,11 @@
139
164
  &.it-grid-item-overlay {
140
165
  .it-griditem-text-wrapper {
141
166
  padding: $v-gap * 2 $v-gap * 3;
167
+
142
168
  .it-griditem-text {
143
169
  font-size: $grid-item-text-size;
144
170
  }
145
171
  }
146
172
  }
147
- // text
148
- .it-griditem-text-wrapper {
149
- .it-griditem-text {
150
- font-size: $grid-item-text-size;
151
- }
152
- .icon {
153
- width: $grid-item-icon-size-desk;
154
- height: $grid-item-icon-size-desk;
155
- }
156
- }
157
173
  }
158
174
  }
@@ -4,24 +4,28 @@
4
4
  .it-header-wrapper {
5
5
  position: relative;
6
6
  z-index: 5;
7
+
7
8
  .it-nav-wrapper {
8
9
  position: relative;
9
10
  z-index: auto;
11
+
10
12
  // se ha un menu
11
13
  .it-brand-wrapper {
12
14
  padding-left: $v-gap * 4;
13
15
  }
16
+
14
17
  .it-header-navbar-wrapper {
15
18
  transition: padding-top 0.3s ease;
16
-
17
19
  position: absolute;
18
20
  z-index: 3;
19
21
  left: 0;
20
22
  top: 50%;
21
23
  margin-top: -$header-nav-button-distance;
24
+
22
25
  nav {
23
26
  padding-left: $header-general-padding - ($grid-columns * 0.5);
24
27
  padding-right: $header-general-padding - ($grid-columns * 0.5);
28
+
25
29
  .custom-navbar-toggler {
26
30
  padding: 0;
27
31
  transform: translateX(-2px);
@@ -34,6 +38,7 @@
34
38
  &.it-header-sticky {
35
39
  &.is-sticky {
36
40
  width: 100%;
41
+
37
42
  .it-nav-wrapper {
38
43
  //position: fixed;
39
44
  top: 0;
@@ -72,9 +77,11 @@
72
77
 
73
78
  a {
74
79
  color: $header-center-text-color;
80
+
75
81
  &:hover {
76
82
  text-decoration: none;
77
83
  }
84
+
78
85
  .icon {
79
86
  fill: $header-center-text-color;
80
87
  width: $header-center-icon-size * 0.5;
@@ -93,6 +100,7 @@
93
100
  margin-left: math.div($header-center-search-distance, 3);
94
101
  font-size: $header-center-text-size;
95
102
  color: $header-center-text-color;
103
+
96
104
  a {
97
105
  &.rounded-icon {
98
106
  width: $header-center-search-size;
@@ -104,9 +112,11 @@
104
112
  align-items: center;
105
113
  margin-left: $v-gap * 2;
106
114
  transition: all 0.3s;
115
+
107
116
  &:hover {
108
117
  background: shade-color($header-center-text-color, 5%);
109
118
  }
119
+
110
120
  svg {
111
121
  fill: $header-center-bg-color;
112
122
  width: $header-center-search-icon-size;
@@ -150,18 +160,22 @@
150
160
  .it-brand-wrapper {
151
161
  padding-left: 0;
152
162
  }
163
+
153
164
  position: relative;
165
+
154
166
  .it-header-navbar-wrapper {
155
167
  position: inherit;
156
168
  left: auto;
157
169
  top: inherit;
158
170
  margin-top: 0;
171
+
159
172
  nav {
160
173
  padding-left: $header-general-padding - ($grid-columns * 0.5);
161
174
  padding-right: $header-general-padding - ($grid-columns * 0.5);
162
175
  }
163
176
  }
164
177
  }
178
+
165
179
  .navbar .navbar-collapsable .menu-wrapper .nav-item.megamenu .dropdown-menu {
166
180
  left: 0;
167
181
  right: 0;
@@ -1,7 +1,10 @@
1
1
  //mobile
2
2
  .link-list-wrapper {
3
+ .list-item-title,
3
4
  .link-list-heading {
4
5
  font-size: $link-list-heading-size;
6
+ }
7
+ .link-list-heading {
5
8
  color: $color-text-base;
6
9
  padding: 0 $link-list-h-pad;
7
10
  font-weight: 600;
@@ -4,6 +4,7 @@
4
4
  list-style-type: none;
5
5
  margin: 0;
6
6
  padding: 0;
7
+
7
8
  .list-item {
8
9
  transition: all 0.3s;
9
10
  margin-top: -1px;
@@ -12,103 +13,105 @@
12
13
  text-decoration: none;
13
14
  border-bottom: 1px solid $list-border-color;
14
15
  overflow-wrap: anywhere;
16
+
15
17
  .avatar,
16
18
  .it-rounded-icon,
17
19
  .it-thumb {
18
20
  flex-shrink: 0;
19
21
  margin-right: $v-gap * 2;
20
22
  }
23
+
21
24
  .it-rounded-icon {
22
25
  width: $v-gap * 5;
26
+
23
27
  svg {
24
28
  fill: $primary-a5;
25
29
  }
26
30
  }
31
+
27
32
  .form-check {
28
33
  margin-right: $v-gap;
29
34
  width: $v-gap;
30
35
  height: $v-gap * 4;
31
36
  text-align: left;
37
+
32
38
  & + .it-right-zone {
33
39
  margin-left: $v-gap * 2;
34
40
  }
41
+
35
42
  label {
36
43
  padding-left: 0;
37
44
  margin-bottom: 0;
38
45
  }
39
46
  }
47
+
40
48
  .it-thumb {
41
49
  width: $v-gap * 5;
42
50
  height: $v-gap * 5;
51
+
43
52
  img {
44
53
  object-fit: cover;
45
54
  width: 100%;
46
55
  height: 100%;
47
56
  }
48
57
  }
58
+
49
59
  .it-right-zone {
50
60
  padding: $list-text-padding;
51
61
  flex-grow: 1;
52
62
  display: flex;
53
63
  justify-content: space-between;
54
64
  align-items: center;
55
- a {
56
- text-decoration: none;
57
- }
65
+
58
66
  svg {
59
67
  fill: $primary;
60
68
  width: $v-gap * 3;
61
69
  height: $v-gap * 3;
62
70
  }
63
- span.it-multiple {
71
+
72
+ .it-multiple {
64
73
  display: flex;
65
74
  justify-content: flex-end;
66
75
  flex-wrap: wrap;
67
- span.metadata {
76
+
77
+ .metadata {
68
78
  margin-right: 0;
69
79
  width: 100%;
70
80
  text-align: right;
71
81
  }
82
+
72
83
  svg {
73
84
  margin-left: $v-gap * 2;
74
85
  margin-right: 0;
75
86
  }
76
87
  }
88
+
77
89
  .toggles {
78
90
  height: $v-gap * 4;
79
91
  }
80
- span.metadata {
92
+
93
+ .metadata {
81
94
  color: $list-metadata-color;
82
95
  font-size: $list-metadata-size;
83
96
  letter-spacing: $list-metadata-space;
84
- a {
85
- color: $primary;
86
- }
87
97
  }
88
- }
89
- span.text {
90
- font-size: $list-font-size;
91
- font-weight: 600;
92
- display: block;
93
- @include media-breakpoint-up(lg) {
94
- font-size: 1.125rem;
98
+
99
+ .text {
100
+ font-size: $list-font-size;
101
+ font-weight: $font-weight-semibold;
102
+ @include media-breakpoint-up(lg) {
103
+ font-size: 1.125rem;
104
+ }
95
105
  }
96
- em {
97
- display: block;
106
+
107
+ .text + p {
98
108
  font-size: $list-sub-size;
99
109
  color: $list-sub-color;
100
- font-style: normal;
101
- font-weight: normal;
102
- }
103
- }
104
- // active
105
- &.active {
106
- color: $color-text-base;
107
- .text {
108
- color: $color-text-base;
110
+ font-weight: $font-weight-normal;
109
111
  }
110
112
  }
111
113
  }
114
+
112
115
  li:last-child {
113
116
  .list-item {
114
117
  span.text {
@@ -116,12 +119,15 @@
116
119
  }
117
120
  }
118
121
  }
122
+
123
+ a .text {
124
+ text-decoration: underline;
125
+ }
119
126
  }
120
127
  }
121
128
 
122
- //Desktop
129
+ // Desktop
123
130
  @include media-breakpoint-up(xl) {
124
- //mobile
125
131
  .it-list-wrapper {
126
132
  .it-list {
127
133
  .list-item {
@@ -130,32 +136,30 @@
130
136
  .it-thumb {
131
137
  margin-left: $v-gap;
132
138
  margin-right: 0;
139
+
133
140
  & + .it-right-zone {
134
141
  margin-left: $v-gap * 2;
135
142
  }
136
143
  }
144
+
137
145
  .form-check {
138
146
  margin-right: $v-gap * 2;
139
147
  text-align: center;
140
148
  }
149
+
141
150
  // hover
142
151
  .it-right-zone {
143
152
  margin-left: $v-gap;
144
153
  margin-right: $v-gap;
145
- a {
146
- &:hover {
147
- .text {
148
- color: $primary;
149
- text-decoration: underline;
150
- }
151
- }
152
- }
154
+
153
155
  span.it-multiple {
154
156
  margin-right: $v-gap;
157
+
155
158
  a {
156
159
  svg {
157
- transition: all 0.3s;
160
+ transition: fill 0.3s;
158
161
  }
162
+
159
163
  &:hover {
160
164
  svg {
161
165
  fill: $primary-a10;
@@ -163,33 +167,26 @@
163
167
  }
164
168
  }
165
169
  }
170
+
166
171
  .toggles {
167
172
  margin-right: 0;
168
173
  }
174
+
169
175
  span.metadata {
170
176
  margin-right: $v-gap;
171
- a:hover {
172
- text-decoration: underline;
173
- }
174
177
  }
175
178
  }
176
179
  }
177
- a {
178
- &.list-item {
179
- &:hover {
180
- box-shadow: $card-shadow;
181
- color: $color-text-primary-hover;
182
- text-decoration: none;
183
- background: $white;
184
- position: relative;
185
- z-index: 1;
186
- transition: none;
187
- border-bottom: 1px solid transparent;
188
- span.text {
189
- text-decoration: underline;
190
- }
191
- }
192
- }
180
+
181
+ a.list-item:hover {
182
+ box-shadow: $card-shadow;
183
+ color: $color-text-primary-hover;
184
+ text-decoration: none;
185
+ background: $white;
186
+ position: relative;
187
+ z-index: 1;
188
+ transition: none;
189
+ border-bottom: 1px solid transparent;
193
190
  }
194
191
  }
195
192
  }
@@ -2,6 +2,7 @@
2
2
  .skiplinks {
3
3
  background-color: $skiplinks-bg;
4
4
  text-align: center;
5
+
5
6
  a {
6
7
  padding: $skiplink-padding-y $skiplink-padding-x;
7
8
  display: block;
@@ -9,4 +10,12 @@
9
10
  color: $skiplinks-color;
10
11
  text-decoration: underline;
11
12
  }
13
+
14
+ ul {
15
+ list-style: none;
16
+ padding: 0;
17
+ font-size: 1rem;
18
+ line-height: 1.5rem;
19
+ margin-bottom: 0;
20
+ }
12
21
  }
@@ -62,6 +62,8 @@
62
62
  background: $timeline-pin-background;
63
63
  border-radius: $border-radius;
64
64
  font-family: $font-family-monospace;
65
+ font-size: var(--bs-body-font-size);
66
+ line-height: var(--bs-body-line-height);
65
67
 
66
68
  span {
67
69
  padding: $v-gap * 0.5 $v-gap * 2;
@@ -1,3 +1,3 @@
1
1
  :root {
2
- --bootstrap-italia-version: '2.10.0';
2
+ --bootstrap-italia-version: '2.11.0';
3
3
  }
@@ -1,3 +1,13 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12 22L6.31001 11.63C4.99676 9.25198 5.30085 6.30809 7.07246 4.24872C8.84407 2.18935 11.7095 1.4489 14.257 2.39217C16.8045 3.33544 18.4968 5.76346 18.5 8.48C18.4997 9.57513 18.2209 10.6522 17.69 11.61L12 22ZM12 3C10.0517 2.99538 8.24688 4.02372 7.25751 5.70214C6.26815 7.38057 6.24246 9.45762 7.19 11.16L12 19.94L16.82 11.13C17.2627 10.3166 17.4963 9.40602 17.5 8.48C17.4835 5.45253 15.0275 3.00545 12 3ZM8.5 9V8H15.5V9H8.5Z" />
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
3
+ viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
4
+ <g>
5
+ <path
6
+ d="M17.7,5.3C16,2.2,12,1.1,8.9,2.8s-4.3,5.7-2.5,8.8L12,22l5.7-10.4c0.5-1,0.8-2,0.8-3.1S18.2,6.3,17.7,5.3z M16.8,11.1 L12,19.9l-4.8-8.8c-0.5-0.8-0.7-1.7-0.7-2.7C6.5,5.4,9,3,12,3s5.5,2.5,5.5,5.5C17.5,9.4,17.3,10.3,16.8,11.1z"
7
+ id="path2" />
8
+ </g>
9
+ <path
10
+ style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
11
+ d="m 9.3661034,9.0091423 5.2094906,0.017287"
12
+ id="path859" />
3
13
  </svg>