@everymatrix/casino-slider 0.0.362 → 0.0.363
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.
|
3
|
+
"version": "0.0.363",
|
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": "
|
39
|
+
"gitHead": "c387eff5f038dffc7fde68f7e15e1ca719f4f209"
|
40
40
|
}
|
package/src/CasinoSlider.svelte
CHANGED
@@ -118,16 +118,24 @@
|
|
118
118
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path>
|
119
119
|
</svg>
|
120
120
|
</div>
|
121
|
-
|
121
|
+
|
122
122
|
<ul class="CarouselItems" part="CarouselItems" bind:this={carousel}>
|
123
123
|
{#if sliderdata.length > 0}
|
124
|
-
{#each sliderdata as
|
125
|
-
<li class="CarouselItem {activeIndex == index || prevIndex == index ? 'active': ''}" part="CarouselItem" on:click={e => handleClick(
|
124
|
+
{#each sliderdata as category, index (category.id)}
|
125
|
+
<li class="CarouselItem {activeIndex == index || prevIndex == index ? 'active': ''}" part="CarouselItem" on:click={e => handleClick(category, index)}
|
126
126
|
>
|
127
127
|
{#if location === 'headerMain'}
|
128
|
-
<a>{
|
128
|
+
<a>{category.label}</a>
|
129
129
|
{:else}
|
130
|
-
{
|
130
|
+
{category.name} {category.id === "FAVORITES" ? "(" + favoritesnumber + ")" : ''}
|
131
|
+
{/if}
|
132
|
+
|
133
|
+
{#if category?.subGroups}
|
134
|
+
<div class="dropdown-content">
|
135
|
+
{#each category?.subGroups?.items as subCategory}
|
136
|
+
<a>{subCategory?.name}</a>
|
137
|
+
{/each}
|
138
|
+
</div>
|
131
139
|
{/if}
|
132
140
|
</li>
|
133
141
|
{/each}
|
@@ -176,11 +184,12 @@
|
|
176
184
|
}
|
177
185
|
|
178
186
|
.CarouselItems {
|
187
|
+
position: relative;
|
179
188
|
display: flex;
|
180
189
|
flex-direction: row;
|
181
190
|
flex-wrap: nowrap;
|
182
191
|
align-items: center;
|
183
|
-
overflow-
|
192
|
+
//overflow-y: scroll;
|
184
193
|
list-style-type: none;
|
185
194
|
-ms-overflow-style: none;
|
186
195
|
scrollbar-width: none;
|
@@ -190,6 +199,7 @@
|
|
190
199
|
}
|
191
200
|
|
192
201
|
.CarouselItem {
|
202
|
+
position: relative;
|
193
203
|
display: flex;
|
194
204
|
height: 100%;
|
195
205
|
align-items: center;
|
@@ -209,6 +219,34 @@
|
|
209
219
|
}
|
210
220
|
}
|
211
221
|
|
222
|
+
.dropdown-content {
|
223
|
+
transition: all 1s ease-in;
|
224
|
+
display: none;
|
225
|
+
position: absolute;
|
226
|
+
min-width: 100px;
|
227
|
+
height: auto;
|
228
|
+
top: 52px;
|
229
|
+
left: 0;
|
230
|
+
padding: 10px 11px;
|
231
|
+
background: var(--emfe-w-color-contrast, #07072A); /* fallback for old browsers */
|
232
|
+
background: -webkit-linear-gradient(var(--emfe-w-color-contrast, #07072A), var(--emfe-w-color-primary, #D0046C)); /* Chrome 10-25, Safari 5.1-6 */
|
233
|
+
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+ */
|
234
|
+
|
235
|
+
& a {
|
236
|
+
display: block;
|
237
|
+
font-weight: 400;
|
238
|
+
line-height: 30px;
|
239
|
+
}
|
240
|
+
}
|
241
|
+
|
242
|
+
|
243
|
+
.dropdown:hover .dropdown-content {
|
244
|
+
transition: all 1s ease-in;
|
245
|
+
display: block;
|
246
|
+
opacity: 1;
|
247
|
+
z-index: 999;
|
248
|
+
}
|
249
|
+
|
212
250
|
.CarouselLeftArrow,
|
213
251
|
.CarouselRightArrow {
|
214
252
|
display: flex;
|
@@ -228,6 +266,7 @@
|
|
228
266
|
}
|
229
267
|
}
|
230
268
|
}
|
269
|
+
|
231
270
|
.CarouselContainerHeaderMain {
|
232
271
|
.CarouselItems .CarouselItem {
|
233
272
|
&:hover, &.active {
|
@@ -260,6 +299,7 @@
|
|
260
299
|
text-decoration: none;
|
261
300
|
}
|
262
301
|
}
|
302
|
+
|
263
303
|
@media only screen and (max-width: 1024px) {
|
264
304
|
.CarouselContainerHeaderMain {
|
265
305
|
.CarouselLeftArrow, .CarouselRightArrow {
|