@eeacms/volto-tabs-block 5.0.0 → 5.0.2
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/CHANGELOG.md +60 -1
- package/package.json +2 -2
- package/src/components/Edit.jsx +16 -18
- package/src/components/schema.js +0 -1
- package/src/components/templates/accordion/Edit.jsx +374 -10
- package/src/components/templates/accordion/View.jsx +17 -10
- package/src/components/templates/carousel/HorizontalView.jsx +1 -1
- package/src/components/templates/default/View.jsx +12 -4
- package/src/components/templates/horizontal-responsive/Edit.jsx +446 -0
- package/src/components/templates/horizontal-responsive/View.jsx +12 -3
- package/src/components/templates/horizontal-responsive/index.js +6 -2
- package/src/index.js +2 -1
- package/src/less/menu.less +91 -4
- package/src/less/tabs.less +48 -3
- package/src/utils/dimensions.js +0 -1
- package/src/utils/index.js +1 -1
package/src/less/menu.less
CHANGED
|
@@ -11,6 +11,18 @@
|
|
|
11
11
|
display: none !important;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
.remove-menu {
|
|
15
|
+
padding-right: 0px !important;
|
|
16
|
+
padding-bottom: 0px !important;
|
|
17
|
+
overflow-y: hidden;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.remove-menu :not(.RRT__tab--collapsed) {
|
|
21
|
+
padding-top: 0px !important;
|
|
22
|
+
padding-left: 0px !important;
|
|
23
|
+
border-bottom: none !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
14
26
|
.ui.menu {
|
|
15
27
|
margin-bottom: @menuMarginButton;
|
|
16
28
|
}
|
|
@@ -108,7 +120,7 @@
|
|
|
108
120
|
> .styled > .side.tabs {
|
|
109
121
|
> .ui.menu {
|
|
110
122
|
display: flex;
|
|
111
|
-
|
|
123
|
+
|
|
112
124
|
flex-direction: column;
|
|
113
125
|
}
|
|
114
126
|
|
|
@@ -132,6 +144,12 @@
|
|
|
132
144
|
}
|
|
133
145
|
|
|
134
146
|
.RRT__container {
|
|
147
|
+
.inverted {
|
|
148
|
+
.RRT__tab.active {
|
|
149
|
+
background-color: rgba(0, 0, 0, 0.1) !important;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
135
153
|
> .ui.tab .rah-animating {
|
|
136
154
|
transition: height 0ms ease 0ms !important;
|
|
137
155
|
|
|
@@ -139,12 +157,25 @@
|
|
|
139
157
|
transition: opacity 0ms ease 0ms !important;
|
|
140
158
|
}
|
|
141
159
|
}
|
|
160
|
+
|
|
161
|
+
.RRT__tabs.inverted.ui.secondary.pointing.menu:not(.RRT__accordion) {
|
|
162
|
+
background-color: @green !important;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.inverted .RRT__tab--collapsed {
|
|
166
|
+
background-color: @green !important;
|
|
167
|
+
}
|
|
142
168
|
}
|
|
143
169
|
|
|
144
170
|
.ui.menu.RRT__accordion.tabs-accordion-icon-right {
|
|
145
|
-
.
|
|
146
|
-
|
|
147
|
-
|
|
171
|
+
.tabs-icon {
|
|
172
|
+
position: absolute;
|
|
173
|
+
right: 0%;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.item {
|
|
177
|
+
padding-top: 0.6875rem !important;
|
|
178
|
+
padding-bottom: 0.6875rem !important;
|
|
148
179
|
}
|
|
149
180
|
}
|
|
150
181
|
|
|
@@ -194,6 +225,10 @@
|
|
|
194
225
|
background-color: @primaryColor !important;
|
|
195
226
|
color: #fff !important;
|
|
196
227
|
}
|
|
228
|
+
|
|
229
|
+
.active .menu-item-text {
|
|
230
|
+
color: #fff !important;
|
|
231
|
+
}
|
|
197
232
|
}
|
|
198
233
|
|
|
199
234
|
&.theme-secondary {
|
|
@@ -209,6 +244,10 @@
|
|
|
209
244
|
background-color: @secondaryColor !important;
|
|
210
245
|
color: #fff !important;
|
|
211
246
|
}
|
|
247
|
+
|
|
248
|
+
.active .menu-item-text {
|
|
249
|
+
color: #fff !important;
|
|
250
|
+
}
|
|
212
251
|
}
|
|
213
252
|
|
|
214
253
|
&.theme-tertiary {
|
|
@@ -224,6 +263,10 @@
|
|
|
224
263
|
background-color: @tertiaryColor !important;
|
|
225
264
|
color: #fff !important;
|
|
226
265
|
}
|
|
266
|
+
|
|
267
|
+
.active .menu-item-text {
|
|
268
|
+
color: #fff !important;
|
|
269
|
+
}
|
|
227
270
|
}
|
|
228
271
|
|
|
229
272
|
&.red {
|
|
@@ -233,6 +276,10 @@
|
|
|
233
276
|
background-color: @red !important;
|
|
234
277
|
color: #fff !important;
|
|
235
278
|
}
|
|
279
|
+
|
|
280
|
+
.active .menu-item-text {
|
|
281
|
+
color: #fff !important;
|
|
282
|
+
}
|
|
236
283
|
}
|
|
237
284
|
|
|
238
285
|
&.orange {
|
|
@@ -244,6 +291,10 @@
|
|
|
244
291
|
background-color: @orange !important;
|
|
245
292
|
color: #fff !important;
|
|
246
293
|
}
|
|
294
|
+
|
|
295
|
+
.active .menu-item-text {
|
|
296
|
+
color: #fff !important;
|
|
297
|
+
}
|
|
247
298
|
}
|
|
248
299
|
|
|
249
300
|
&.yellow {
|
|
@@ -255,6 +306,10 @@
|
|
|
255
306
|
background-color: @yellow !important;
|
|
256
307
|
color: #fff !important;
|
|
257
308
|
}
|
|
309
|
+
|
|
310
|
+
.active .menu-item-text {
|
|
311
|
+
color: #fff !important;
|
|
312
|
+
}
|
|
258
313
|
}
|
|
259
314
|
|
|
260
315
|
&.olive {
|
|
@@ -266,6 +321,10 @@
|
|
|
266
321
|
background-color: @olive !important;
|
|
267
322
|
color: #fff !important;
|
|
268
323
|
}
|
|
324
|
+
|
|
325
|
+
.active .menu-item-text {
|
|
326
|
+
color: #fff !important;
|
|
327
|
+
}
|
|
269
328
|
}
|
|
270
329
|
|
|
271
330
|
&.green {
|
|
@@ -277,6 +336,10 @@
|
|
|
277
336
|
background-color: @green !important;
|
|
278
337
|
color: #fff !important;
|
|
279
338
|
}
|
|
339
|
+
|
|
340
|
+
.active .menu-item-text {
|
|
341
|
+
color: #fff !important;
|
|
342
|
+
}
|
|
280
343
|
}
|
|
281
344
|
|
|
282
345
|
&.teal {
|
|
@@ -288,6 +351,10 @@
|
|
|
288
351
|
background-color: @teal !important;
|
|
289
352
|
color: #fff !important;
|
|
290
353
|
}
|
|
354
|
+
|
|
355
|
+
.active .menu-item-text {
|
|
356
|
+
color: #fff !important;
|
|
357
|
+
}
|
|
291
358
|
}
|
|
292
359
|
|
|
293
360
|
&.blue {
|
|
@@ -299,6 +366,10 @@
|
|
|
299
366
|
background-color: @blue !important;
|
|
300
367
|
color: #fff !important;
|
|
301
368
|
}
|
|
369
|
+
|
|
370
|
+
.active .menu-item-text {
|
|
371
|
+
color: #fff !important;
|
|
372
|
+
}
|
|
302
373
|
}
|
|
303
374
|
|
|
304
375
|
&.violet {
|
|
@@ -310,6 +381,10 @@
|
|
|
310
381
|
background-color: @violet !important;
|
|
311
382
|
color: #fff !important;
|
|
312
383
|
}
|
|
384
|
+
|
|
385
|
+
.active .menu-item-text {
|
|
386
|
+
color: #fff !important;
|
|
387
|
+
}
|
|
313
388
|
}
|
|
314
389
|
|
|
315
390
|
&.purple {
|
|
@@ -321,6 +396,10 @@
|
|
|
321
396
|
background-color: @purple !important;
|
|
322
397
|
color: #fff !important;
|
|
323
398
|
}
|
|
399
|
+
|
|
400
|
+
.active .menu-item-text {
|
|
401
|
+
color: #fff !important;
|
|
402
|
+
}
|
|
324
403
|
}
|
|
325
404
|
|
|
326
405
|
&.brown {
|
|
@@ -343,6 +422,10 @@
|
|
|
343
422
|
background-color: @grey !important;
|
|
344
423
|
color: #fff !important;
|
|
345
424
|
}
|
|
425
|
+
|
|
426
|
+
.active .menu-item-text {
|
|
427
|
+
color: #fff !important;
|
|
428
|
+
}
|
|
346
429
|
}
|
|
347
430
|
|
|
348
431
|
&.black {
|
|
@@ -354,6 +437,10 @@
|
|
|
354
437
|
background-color: @black !important;
|
|
355
438
|
color: #fff !important;
|
|
356
439
|
}
|
|
440
|
+
|
|
441
|
+
.active .menu-item-text {
|
|
442
|
+
color: #fff !important;
|
|
443
|
+
}
|
|
357
444
|
}
|
|
358
445
|
|
|
359
446
|
.ui.tab {
|
package/src/less/tabs.less
CHANGED
|
@@ -87,10 +87,55 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
@media print {
|
|
91
|
+
.ui.tab {
|
|
92
|
+
display: block !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.tab-name > div {
|
|
96
|
+
border-top: 0.1875rem solid #007b6c !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.tab-name::before {
|
|
100
|
+
color: var(--text-color, #007b6c);
|
|
101
|
+
content: attr(id);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.secondary.menu {
|
|
105
|
+
display: none !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.RRT__container .ui.RRT__tabs {
|
|
109
|
+
margin-bottom: 0;
|
|
110
|
+
}
|
|
91
111
|
|
|
92
|
-
.
|
|
93
|
-
|
|
112
|
+
.slick-track {
|
|
113
|
+
flex-direction: column !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.slick-list {
|
|
117
|
+
overflow: visible !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.slick-slider .slick-track,
|
|
121
|
+
.slick-slider .slick-list {
|
|
122
|
+
overflow: visible !important;
|
|
123
|
+
width: auto !important;
|
|
124
|
+
height: auto !important;
|
|
125
|
+
transform: none !important;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.slick-track .slick-slide {
|
|
129
|
+
display: block !important;
|
|
130
|
+
overflow: visible !important;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.slick-arrow,
|
|
134
|
+
.slick-dots,
|
|
135
|
+
.slick-track .slick-cloned {
|
|
136
|
+
display: none !important;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
94
139
|
}
|
|
95
140
|
|
|
96
141
|
.loadAddonOverrides();
|
package/src/utils/dimensions.js
CHANGED
package/src/utils/index.js
CHANGED
|
@@ -29,9 +29,9 @@ const toggleItem = (container, item, hidden) => {
|
|
|
29
29
|
// Set visibility to hidden, instead of .hidden attribute
|
|
30
30
|
// so we can still calculate distance accurately
|
|
31
31
|
item.style.visibility = hidden ? 'hidden' : '';
|
|
32
|
-
// item.style.display = hidden ? 'none' : 'flex';
|
|
33
32
|
// Get tab-item name, if present, so we can match it up with the dropdown menu
|
|
34
33
|
const itemData = item.getAttribute('item-data');
|
|
34
|
+
|
|
35
35
|
if (itemData) {
|
|
36
36
|
const itemToHide = container.querySelector(
|
|
37
37
|
`[underline-item-data="${itemData}"]`,
|