Skip to content

Commit 02a8193

Browse files
committed
MAGETWO-91258: Revise html/phtml/typescripts files in pagebuilder repository
-remove highlight library
1 parent f2e0dec commit 02a8193

File tree

4 files changed

+53
-48
lines changed

4 files changed

+53
-48
lines changed

app/code/Magento/PageBuilder/view/frontend/web/css/source/content-type/slide/_default.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
}
3333
}
3434
.pagebuilder-slide-button {
35-
margin-top: @margin;
35+
margin-top: 20px;
3636
-webkit-transition: opacity 500ms ease;
3737
-moz-transition: opacity 500ms ease;
3838
-o-transition: opacity 500ms ease;

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

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

10-
a.button {
11-
-webkit-appearance: button;
12-
-moz-appearance: button;
13-
appearance: button;
14-
color: initial;
15-
padding: 10px;
16-
text-decoration: none;
17-
}
18-
1910
div[data-role='slider'] {
2011
display: none;
2112

@@ -25,13 +16,22 @@ div[data-role='slider'] {
2516
}
2617

2718
.slick-list,
19+
.slick-track,
2820
.slick-slide {
2921
min-height: inherit;
3022

3123
> div {
3224
overflow: hidden;
3325
width: 100%;
3426
}
35-
},
36-
.slick-track
27+
}
28+
}
29+
30+
a.button {
31+
-webkit-appearance: button;
32+
-moz-appearance: button;
33+
appearance: button;
34+
color: initial;
35+
padding: 10px;
36+
text-decoration: none;
3737
}

app/code/Magento/PageBuilder/view/frontend/web/css/source/content-type/tabs/_default.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
div[data-role='tabs'] {
1111
.tabs-content {
12-
border: @entityBorderWidth solid #ccc;
12+
border: 1px solid #ccc;
1313
overflow: hidden;
1414
position: relative;
1515
z-index: 9;
@@ -36,7 +36,7 @@ div[data-role='tabs'] {
3636

3737
li.tab-header {
3838
background: #f6f6f6;
39-
border: @entityBorderWidth solid #ccc;
39+
border: 1px solid #ccc;
4040
border-bottom: 0 !important;
4141
border-bottom-left-radius: 0 !important;
4242
border-bottom-right-radius: 0 !important;
@@ -72,7 +72,7 @@ div[data-role='tabs'] {
7272
}
7373

7474
&:last-child {
75-
border-right: @entityBorderWidth solid #ccc;
75+
border-right: 1px solid #ccc;
7676
}
7777

7878
&.ui-state-active {

app/code/Magento/PageBuilder/view/frontend/web/css/source/slick/_slick.less

Lines changed: 38 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
width: 14px;
2525
button {
2626
background: transparent;
27-
border: @entityBorderWidth solid #ccc;
27+
border: 1px solid #ccc;
2828
border-radius: 10px;
2929
box-shadow: none;
3030
cursor: pointer;
@@ -36,7 +36,7 @@
3636
width: 14px;
3737

3838
&:hover {
39-
border: @entityBorderWidth solid #b3b3b3;
39+
border: 1px solid #b3b3b3;
4040
}
4141

4242
&:active,
@@ -72,7 +72,17 @@
7272
cursor: hand;
7373
}
7474
}
75+
7576
.slick-next {
77+
right: 2rem;
78+
&:before {
79+
content: @icon-pagebuilder-caret-next__content;
80+
padding-left: 5px;
81+
}
82+
}
83+
84+
.slick-next,
85+
.slick-prev {
7686
background: rgba(252, 252, 252, .6);
7787
border: none;
7888
border-radius: 0;
@@ -85,7 +95,6 @@
8595
outline: none;
8696
padding: 0;
8797
position: absolute;
88-
right: 2rem;
8998
top: 50%;
9099
-webkit-transform: translate(0, -50%);
91100
-ms-transform: translate(0, -50%);
@@ -97,7 +106,6 @@
97106
opacity: .2;
98107
}
99108

100-
101109
&:hover {
102110
background: rgba(252, 252, 252, 1);
103111
border: none;
@@ -109,10 +117,7 @@
109117
}
110118
}
111119

112-
&:before {
113-
content: @icon-pagebuilder-caret-next__content;
114-
padding-left: 5px;
115-
}
120+
&:before,
116121
&:after {
117122
&:extend(.pagebuilder-icon all);
118123
color: @color-gray-darken3;
@@ -134,6 +139,29 @@
134139
}
135140
}
136141

142+
.slick-prev {
143+
left: 2rem;
144+
&:before {
145+
content: @icon-pagebuilder-caret-prev__content;
146+
padding-right: 5px;
147+
}
148+
}
149+
150+
.slick-slider {
151+
box-sizing: border-box;
152+
display: block;
153+
position: relative;
154+
-webkit-tap-highlight-color: transparent;
155+
-ms-touch-action: pan-y;
156+
touch-action: pan-y;
157+
-webkit-touch-callout: none;
158+
-webkit-user-select: none;
159+
-khtml-user-select: none;
160+
-moz-user-select: none;
161+
-ms-user-select: none;
162+
user-select: none;
163+
}
164+
137165
.slick-slide {
138166
display: none;
139167
float: left;
@@ -162,25 +190,12 @@
162190
}
163191

164192
.slick-vertical & {
165-
border: @entityBorderWidth solid transparent;
193+
border: 1px solid transparent;
166194
display: block;
167195
height: auto;
168196
}
169197
}
170-
.slick-slider {
171-
box-sizing: border-box;
172-
display: block;
173-
position: relative;
174-
-webkit-tap-highlight-color: transparent;
175-
-ms-touch-action: pan-y;
176-
touch-action: pan-y;
177-
-webkit-touch-callout: none;
178-
-webkit-user-select: none;
179-
-khtml-user-select: none;
180-
-moz-user-select: none;
181-
-ms-user-select: none;
182-
user-select: none;
183-
}
198+
184199
.slick-slider .slick-track,
185200
.slick-slider .slick-list {
186201
-webkit-transform: translate3d(0, 0, 0);
@@ -212,13 +227,3 @@
212227
visibility: hidden;
213228
}
214229
}
215-
216-
.slick-prev {
217-
left: 2rem;
218-
&:before {
219-
content: @icon-pagebuilder-caret-prev__content;
220-
padding-right: 5px;
221-
}
222-
}
223-
224-
.slick-prev

0 commit comments

Comments
 (0)