Skip to content

Commit 87a0910

Browse files
committed
MAGETWO-91923: Jenkins - Static Test Failures
- Replace redundant color variables with core Magento vars - Move PageBuilder defined colors to _vars file
1 parent f1b6e49 commit 87a0910

File tree

15 files changed

+52
-95
lines changed

15 files changed

+52
-95
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/_config.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// * See COPYING.txt for license details.
44
// */
55

6-
@color-black: #000;
7-
86
[data-role='modal'] {
97
.action-pagebuilder-cancel,
108
.action-pagebuilder-cancel:hover {

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/_page-builder.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// */
55

66
@border-size: 2px;
7-
@color-white: #fff;
8-
@color-black: #000;
97

108
.pagebuilder-header {
119
text-align: right;

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/_var.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
@entity-color: #243743;
3030
@text-color: #545454;
3131
@entity-background-color: #7e7e7e;
32+
@color-pagebuilder-dark-gray: #534d49;
33+
@color-pagebuilder-light-gray: #f8f3eb;
34+
@color-pagebuilder-darker-gray: #2b2625;
35+
@color-pagebuilder-darkest-gray: #1c1918;
36+
@color-pagebuilder-light-blue: #bfe2f0;
3237

3338
//
3439
// Fonts

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

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33
// * See COPYING.txt for license details.
44
// */
55

6-
@color-white: #fff;
7-
@f8f8f8: #f8f8f8;
8-
@eee: #eee;
9-
@dark-gray: #534d49;
10-
@light-gray: #f8f3eb;
11-
@darker-gray: #2b2625;
12-
136
.pagebuilder-content-type {
147
[contenteditable=true] {
158
-webkit-user-select: text;
@@ -128,7 +121,7 @@
128121

129122
&.pagebuilder-image {
130123
.pagebuilder-image-placeholder {
131-
background: @f8f8f8;
124+
background: @color-white-fog;
132125
cursor: pointer;
133126
font-size: 12px;
134127
padding: 30px 0 16px;
@@ -416,7 +409,7 @@
416409
text-decoration: none;
417410

418411
&:hover {
419-
background-color: @eee;
412+
background-color: @color-gray-darken0;
420413
}
421414
}
422415

@@ -480,7 +473,7 @@
480473
}
481474

482475
&:hover:not(&.option-title) {
483-
background-color: @eee;
476+
background-color: @color-gray-darken0;
484477
color: @color-very-dark-gray-black;
485478
}
486479
}
@@ -575,11 +568,11 @@
575568
.pagebuilder-live-edit-wrapper {
576569
-moz-border-radius: 3px;
577570
-webkit-border-radius: 3px;
578-
background: @darker-gray;
571+
background: @color-pagebuilder-darker-gray;
579572
border: none;
580573
border-radius: 3px;
581574
box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
582-
color: @light-gray;
575+
color: @color-pagebuilder-light-gray;
583576
display: none;
584577
left: 10px !important;
585578
overflow: hidden;
@@ -621,16 +614,16 @@
621614
padding: 0 14px;
622615

623616
&:hover {
624-
background: @dark-gray;
625-
color: @light-gray;
617+
background: @color-pagebuilder-dark-gray;
618+
color: @color-pagebuilder-light-gray;
626619
text-decoration: none;
627620
}
628621
}
629622

630623
&.active {
631624
a {
632-
background: @dark-gray;
633-
color: @light-gray;
625+
background: @color-pagebuilder-dark-gray;
626+
color: @color-pagebuilder-light-gray;
634627
text-decoration: none;
635628
}
636629
}

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
// * See COPYING.txt for license details.
44
// */
55

6-
@light-gray: #ccc;
7-
86
//
97
// Default appearance styles
108
// _____________________________________________
119

1210
.pagebuilder-accordion {
1311
.accordion-collapsible {
14-
border-bottom: 1px solid @light-gray;
12+
border-bottom: 1px solid @color-gray80;
1513
cursor: pointer;
1614
font-weight: bold;
1715
padding: 14px 8px;

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,14 @@
33
// * See COPYING.txt for license details.
44
// */
55

6-
@light-gray: #fafafa;
7-
@dark-gray: #aaa6a0;
8-
96
//
107
// Default appearance styles
118
// _____________________________________________
129

1310
.pagebuilder-banner {
14-
background-color: @light-gray;
11+
background-color: @color-gray98;
1512
.pagebuilder-empty-banner {
16-
color: @dark-gray;
13+
color: @color-gray65-lighten;
1714
font-size: 20px;
1815
font-weight: lighter;
1916
}

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// * See COPYING.txt for license details.
44
// */
55

6-
@light-blue: #bfe2f0;
7-
86
//
97
// Default appearance styles
108
// _____________________________________________
@@ -87,7 +85,7 @@
8785
}
8886

8987
.resize-ghost {
90-
border-right: 15px solid @light-blue;
88+
border-right: 15px solid @color-pagebuilder-light-blue;
9189
box-sizing: border-box;
9290
height: 100%;
9391
left: 0;

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// * See COPYING.txt for license details.
44
// */
55

6-
@light-blue: #bfe2f0;
7-
86
//
97
// Default appearance styles
108
// _____________________________________________
@@ -26,7 +24,7 @@
2624
}
2725

2826
.pagebuilder-column-resize-handle {
29-
background: @light-blue;
27+
background: @color-pagebuilder-light-blue;
3028
bottom: 0;
3129
cursor: col-resize;
3230
opacity: 0;
@@ -48,7 +46,7 @@
4846
-ms-user-select: none;
4947
-webkit-touch-callout: none;
5048
-webkit-user-select: none;
51-
background: @light-blue;
49+
background: @color-pagebuilder-light-blue;
5250
height: 100%;
5351
left: 0;
5452
opacity: 0;

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// * See COPYING.txt for license details.
44
// */
55

6-
@light-gray: #f8f8f8;
7-
@dark-gray: #aaa;
8-
96
//
107
// Default appearance styles
118
// _____________________________________________
@@ -20,14 +17,14 @@
2017

2118
div.pagebuilder-image-empty-preview {
2219
align-items: center;
23-
background: @light-gray;
20+
background: @color-white-fog;
2421
display: flex;
2522
height: 300px;
2623
justify-content: center;
2724
width: 100%;
2825

2926
span {
30-
color: @dark-gray;
27+
color: @color-gray65-lighten;
3128
}
3229
}
3330

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,20 @@
33
// * See COPYING.txt for license details.
44
// */
55

6-
@light-gray: #fafafa;
7-
@dark-gray: #aaa6a0;
8-
96
//
107
// Default appearance styles
118
// _____________________________________________
129

1310
.pagebuilder-slide {
14-
background-color: @light-gray;
11+
background-color: @color-gray98;
1512

1613
.pagebuilder-options {
1714
left: 100%;
1815
transform: translate(-100%, 0);
1916
}
2017

2118
.pagebuilder-empty-slide {
22-
color: @dark-gray;
19+
color: @color-gray65-lighten;
2320
font-size: 20px;
2421
font-weight: lighter;
2522
}

0 commit comments

Comments
 (0)