Skip to content

Commit 1c37c2d

Browse files
committed
MAGETWO-86867: [Tech Debt] Revise LESS/CSS classes and icons
1 parent 0456eef commit 1c37c2d

File tree

28 files changed

+38
-48
lines changed

28 files changed

+38
-48
lines changed

app/code/Magento/PageBuilder/docs/how-to-add-new-content-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Optional: For template knockout bindings, you can use the original data-bind syn
5656
Preview template `app/code/Vendor/ModuleName/view/adminhtml/web/template/content-type/simple/default/preview.html`.
5757

5858
``` HTML
59-
<div class="pagebuilder-content-type pagebuilder-entity-preview" event="{mouseover: onMouseOver, mouseout: onMouseOut}, mouseoverBubble: false">
59+
<div class="pagebuilder-content-type" event="{mouseover: onMouseOver, mouseout: onMouseOut}, mouseoverBubble: false">
6060
<div attr="data.main.attributes" ko-style="data.main.style" css="data.main.css" html="data.main.html"></div>
6161
<render args="getOptions().template" />
6262
</div>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
@import 'row/_import.less';
2525
@import 'slide/_import.less';
2626
@import 'slider/_import.less';
27+
@import 'tab-item/_import.less';
2728
@import 'tabs/_import.less';
2829
@import 'text/_import.less';
2930
@import 'video/_import.less';

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

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -86,32 +86,9 @@
8686

8787
&.pagebuilder-content-type {
8888
display: inline-block;
89-
font-size: 0;
89+
font-size: 14px;
9090
width: 100%;
9191

92-
&.pagebuilder-abstract {
93-
background: @entityColor;
94-
color: @color-white;
95-
text-align: center;
96-
97-
i {
98-
font-size: 24px;
99-
}
100-
101-
h3 {
102-
margin: 6px 0 0;
103-
padding: 0;
104-
}
105-
106-
* {
107-
color: @color-white;
108-
}
109-
}
110-
111-
&.pagebuilder-entity-preview {
112-
font-size: 14px;
113-
}
114-
11592
.pagebuilder-loading {
11693
left: 50%;
11794
position: absolute;
@@ -293,6 +270,7 @@
293270
&.dragging {
294271
.pagebuilder-content-type {
295272
.pagebuilder-column {
273+
font-size: 0;
296274
.pagebuilder-column-resize-handle {
297275
display: none;
298276
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
.pagebuilder-content-type {
1111
.pagebuilder-button-item {
1212
width: auto;
13+
font-size: 0;
1314
[contenteditable=true] {
1415
display: inline-block;
1516
min-height: 18px;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* Copyright © Magento, Inc. All rights reserved.
3+
* See COPYING.txt for license details.
4+
*/
5+
6+
//
7+
// _import imports all appearance {less} files
8+
// _____________________________________________
9+
10+
@import './_default.less';

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/accordion/default/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
-->
77

8-
<div class="pagebuilder-content-type type-nested pagebuilder-entity-preview pagebuilder-accordion" data-bind="event: { mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false">
8+
<div class="pagebuilder-content-type type-nested pagebuilder-accordion" data-bind="event: { mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false">
99
<!-- ko template: getOptions().template --><!-- /ko -->
1010
<!-- ko if: previewData.items().length == 0 -->
1111
<i class="icon-pagebuilder-accordian"></i> <span data-bind="text: $t('Accordion');"></span>

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/anchor/default/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
-->
77

8-
<div class="pagebuilder-content-type pagebuilder-entity-preview pagebuilder-anchor" attr="data.main.attributes" css="data.main.css" ko-style="data.main.style" event="{mouseover: onMouseOver, mouseout: onMouseOut}, mouseoverBubble: false">
8+
<div class="pagebuilder-content-type pagebuilder-anchor" attr="data.main.attributes" css="data.main.css" ko-style="data.main.style" event="{mouseover: onMouseOver, mouseout: onMouseOut}, mouseoverBubble: false">
99
<i class="icon-pagebuilder-anchor"></i>
1010
<span text="data.main.attributes().id ? '#' + data.main.attributes().id \: $t('Anchor')"></span>
1111
<render args="getOptions().template" />

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/banner/collage-centered/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
-->
77

8-
<div class="pagebuilder-content-type pagebuilder-entity-preview pagebuilder-banner" event="{ mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false">
8+
<div class="pagebuilder-content-type pagebuilder-banner" event="{ mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false">
99
<render args="getOptions().template" />
1010
<div attr="data.main.attributes" ko-style="Object.assign({}, data.main.style(), data.overlay.style(), data.desktop_image.style(), {paddingLeft: 'calc(25% + ' + data.desktop_image.style().paddingLeft + ')', paddingRight: 'calc(25% + ' + data.desktop_image.style().paddingRight + ')'})" css="data.main.css" event="{mouseover: onMouseOverWrapper, mouseout: onMouseOutWrapper}">
1111
<div class="pagebuilder-collage-overlay" ko-style="data.overlay.style()">

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/banner/collage-left/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
-->
77

8-
<div class="pagebuilder-content-type pagebuilder-entity-preview pagebuilder-banner" event="{ mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false">
8+
<div class="pagebuilder-content-type pagebuilder-banner" event="{ mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false">
99
<render args="getOptions().template" />
1010
<div css="data.main.css" attr="data.main.attributes" ko-style="Object.assign({}, data.main.style(), data.overlay.style(), data.desktop_image.style(), {paddingRight: 'calc(50% + ' + data.desktop_image.style().paddingRight + ')'})" event="{ mouseover: onMouseOverWrapper, mouseout: onMouseOutWrapper }">
1111
<div class="pagebuilder-collage-overlay" css="data.overlay.css" attr="data.overlay.attributes" ko-style="data.overlay.style">

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/banner/collage-right/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
-->
77

8-
<div class="pagebuilder-content-type pagebuilder-entity-preview pagebuilder-banner" event="{ mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false">
8+
<div class="pagebuilder-content-type pagebuilder-banner" event="{ mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false">
99
<render args="getOptions().template" />
1010
<div attr="data.main.attributes" ko-style="Object.assign({}, data.main.style(), data.overlay.style(), data.desktop_image.style(), {paddingLeft: 'calc(50% + ' + data.desktop_image.style().paddingLeft + ')'})" css="data.main.css" event="{mouseover: onMouseOverWrapper, mouseout: onMouseOutWrapper}">
1111
<div class="pagebuilder-collage-overlay" attr="data.overlay.attributes" ko-style="data.overlay.style" css="data.overlay.css">

0 commit comments

Comments
 (0)