@everymatrix/casino-slider 0.0.395 → 0.0.398

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-slider",
3
- "version": "0.0.395",
3
+ "version": "0.0.398",
4
4
  "main": "dist/casino-slider.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "88318627a6a354e5857181e30e34215e001d375f"
39
+ "gitHead": "a6034652886209b6fcdc64d039abe2fb2760c472"
40
40
  }
@@ -9,7 +9,6 @@
9
9
 
10
10
  export let endpoint:string = '';
11
11
  export let datasource:string = '';
12
-
13
12
  export let onclickeventname:string = 'defaultEvent';
14
13
  export let actionevent:string = 'defaultEvent';
15
14
  export let favoritesnumber:string = '0';
@@ -136,8 +135,13 @@
136
135
  if(carousel.querySelectorAll(".DropDown")) scrollHandler();
137
136
  });
138
137
  }
138
+
139
+ if(location == 'headerMain'){
140
+ window.postMessage({ type: actionevent, item }, window.location.href);
141
+ }
139
142
  }
140
143
 
144
+
141
145
  /* Listen for scroll */
142
146
  const scrollHandler = () => {
143
147
  const dropDown = carousel.querySelectorAll(".DropDown");
@@ -195,7 +199,8 @@
195
199
  <li class="TouchOnly"><a href="#CarouselNav">Close Subs</a></li>
196
200
  {#if sliderdata.length > 0}
197
201
  {#each sliderdata as category, index (category.id)}
198
- <li class="CarouselItem {activeIndex == index || prevIndex == index ? 'active': ''}"
202
+ <li class="CarouselItem {activeIndex == index || prevIndex == index ? 'active': ''}
203
+ {location == 'headerMain' ? '' : 'SecondaryMenu'}"
199
204
  part="CarouselItem"
200
205
  on:click={e => { handleClick(category, index); e.preventDefault()}}>
201
206
  {#if location === 'headerMain'}
@@ -210,7 +215,7 @@
210
215
  {#each subGroupsData?.items as subGroupsData}
211
216
  {#if subGroupsData.games.count}
212
217
  <li on:click={e => { handleClick(subGroupsData, index); e.stopPropagation();}}>
213
- <a href="#">{subGroupsData?.name}</a>
218
+ <a class="SubDropDown" href="#">{subGroupsData?.name}</a>
214
219
  </li>
215
220
  {/if}
216
221
  {/each}
@@ -285,12 +290,14 @@
285
290
  > a {
286
291
  position: relative;
287
292
  }
288
- &:hover,
289
- &.active,
290
- &:focus,
291
- &:focus-within {
292
- background: var(--emfe-w-color-contrast, #07072A);
293
- cursor: pointer;
293
+ &.SecondaryMenu{
294
+ &:hover,
295
+ &.active,
296
+ &:focus,
297
+ &:focus-within {
298
+ background: var(--emfe-w-color-contrast, #07072A);
299
+ cursor: pointer;
300
+ }
294
301
  }
295
302
  }
296
303
  li > a {
@@ -393,11 +400,13 @@
393
400
  white-space: nowrap;
394
401
  position: relative;
395
402
  }
396
- li:hover > a,
397
- a:hover,
398
- li:focus > a,
399
- a:focus {
400
- background: var(--emfe-w-color-contrast, #07072A);
403
+ &.SecondaryMenu {
404
+ li:hover > a,
405
+ a:hover,
406
+ li:focus > a,
407
+ a:focus {
408
+ background: var(--emfe-w-color-contrast, #07072A);
409
+ }
401
410
  }
402
411
  ul {
403
412
  position: absolute;
@@ -428,6 +437,14 @@
428
437
  left: -999em;
429
438
  opacity:0;
430
439
  }
440
+
441
+ .SubDropDown {
442
+ background: var(--emfe-w-color-contrast, #07072A); /* fallback for old browsers */
443
+
444
+ background: -webkit-linear-gradient(var(--emfe-w-color-contrast, #07072A), var(--emfe-w-color-primary, #D0046C)); /* Chrome 10-25, Safari 5.1-6 */
445
+
446
+ background: linear-gradient(var(--emfe-w-color-contrast, #07072A), var(--emfe-w-color-primary, #D0046C)); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
447
+ }
431
448
  }
432
449
 
433
450
  .CarouselContainerHeaderMain {