Skip to content

Commit 60d10ef

Browse files
committed
MC-3575: Slider implementation
- Implemented slider
1 parent ee0abdd commit 60d10ef

File tree

3 files changed

+60
-13
lines changed

3 files changed

+60
-13
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/slider/_default.less

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
// Default appearance styles
88
// _____________________________________________
99

10+
[data-role='slider'],
1011
.pagebuilder-content-type.pagebuilder-slider {
12+
border: none;
1113
-moz-transition: none;
1214
-o-transition: none;
1315
-webkit-transition: none;
14-
border: none;
1516
transition: none;
1617

1718
.slider-container {
@@ -36,10 +37,10 @@
3637
}
3738

3839
&:hover {
40+
box-shadow: none;
3941
-moz-transition: none;
4042
-o-transition: none;
4143
-webkit-transition: none;
42-
box-shadow: none;
4344
transition: none;
4445

4546
.slider-container {
@@ -302,3 +303,58 @@
302303
visibility: visible;
303304
}
304305

306+
[data-role='slider'] {
307+
.slick-track .slick-slide {
308+
display: block;
309+
}
310+
.slick-dots {
311+
bottom: -30px;
312+
display: block;
313+
list-style: none;
314+
margin: 0;
315+
padding: 0;
316+
text-align: center;
317+
width: 100%;
318+
li {
319+
cursor: pointer;
320+
display: inline-block;
321+
height: 14px;
322+
margin: 0 5px;
323+
padding: 0;
324+
position: relative;
325+
vertical-align: middle;
326+
width: 14px;
327+
button {
328+
background: transparent;
329+
border: 1px solid #ccc;
330+
border-radius: 10px;
331+
box-shadow: none;
332+
cursor: pointer;
333+
display: block;
334+
height: 14px;
335+
padding: 0;
336+
text-indent: -99999px;
337+
transition: .3s;
338+
width: 14px;
339+
340+
&:hover {
341+
border: 1px solid #b3b3b3;
342+
}
343+
344+
&:active,
345+
&:focus,
346+
&:not(.primary) {
347+
background: transparent;
348+
box-shadow: none;
349+
}
350+
}
351+
352+
&.slick-active {
353+
button {
354+
background: #1c1918;
355+
border: none;
356+
}
357+
}
358+
}
359+
}
360+
}

app/code/Magento/PageBuilder/view/base/requirejs-config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
var config = {
77
paths: {
8-
'slick': 'Magento_PageBuilder/js/resource/slick/slick.min'
8+
'slick': 'Magento_PageBuilder/js/resource/slick/slick.min',
9+
'jarallax': 'Magento_PageBuilder/js/resource/jarallax/jarallax.min'
910
},
1011
shim: {
1112
'slick': {

app/code/Magento/PageBuilder/view/frontend/requirejs-config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)