Skip to content

Commit 79fa1ec

Browse files
author
Oleksii Korshenko
committed
Merge remote-tracking branch 'webdev/MAGETWO-44969' into magento2
2 parents 3fe90d1 + 1ab1b13 commit 79fa1ec

File tree

3 files changed

+109
-2
lines changed

3 files changed

+109
-2
lines changed

app/code/Magento/CatalogWidget/view/adminhtml/templates/product/widget/conditions.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
<?php
1111
$element = $block->getElement();
1212
$fieldId = ($element->getHtmlContainerId()) ? ' id="' . $element->getHtmlContainerId() . '"' : '';
13-
$fieldClass = "field field-{$element->getId()} {$element->getCssClass()}";
13+
$fieldClass = "field admin__field field-{$element->getId()} {$element->getCssClass()}";
1414
$fieldClass .= ($element->getRequired()) ? ' required' : '';
1515
$fieldAttributes = $fieldId . ' class="' . $fieldClass . '" ' . $block->getUiId('form-field', $element->getId());
1616
?>
1717

1818
<div<?php /* @escapeNotVerified */ echo $fieldAttributes ?>>
1919
<?php echo $element->getLabelHtml() ?>
20-
<div class="control">
20+
<div class="control admin__field-control">
2121
<div class="rule-tree">
2222
<div class="rule-tree-wrapper">
2323
<?php echo $block->getInputHtml() ?>
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
// /**
2+
// * Copyright © 2015 Magento. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
//
7+
// Rule tree component
8+
// _____________________________________________
9+
10+
.rule-tree-wrapper {
11+
line-height: 28px;
12+
}
13+
14+
.rule-tree {
15+
.admin__field-control & {
16+
padding-top: .3rem;
17+
}
18+
ul {
19+
list-style: none;
20+
padding-left: 16px;
21+
border-left: dotted 1px #888;
22+
}
23+
li {
24+
margin: 0 0 10px;
25+
}
26+
.x-tree ul {
27+
padding-left: 0 !important;
28+
border-left: none !important;
29+
}
30+
}
31+
32+
.rule-tree .fieldset {
33+
min-width: 0; // Fixed Chrome fieldset issue
34+
}
35+
36+
@-moz-document url-prefix() { // Fixed Firefox fieldset issue
37+
.rule-tree .fieldset {
38+
display: table-cell;
39+
}
40+
}
41+
42+
.rule-param .label {
43+
color: #000;
44+
float: none;
45+
text-align: left;
46+
padding: 0;
47+
vertical-align: baseline;
48+
width: auto;
49+
}
50+
51+
.rule-param .label-disabled {
52+
color: #eee;
53+
cursor: default;
54+
text-decoration: none;
55+
}
56+
57+
.rule-chooser,
58+
.rule-param .element,
59+
.rule-param-edit .label {
60+
display: none;
61+
}
62+
63+
.rule-chooser .field-row {
64+
.lib-clearfix();
65+
display: block;
66+
margin-bottom: 17px;
67+
.input-text {
68+
margin-top: 5px;
69+
}
70+
.ui-datepicker-trigger {
71+
margin-left: 5px;
72+
margin-top:-2px;
73+
}
74+
}
75+
76+
.rule-param input,
77+
.rule-param select {
78+
width: auto !important;
79+
margin: 0;
80+
min-width: 170px;
81+
}
82+
83+
.rule-param-edit .element {
84+
display: inline;
85+
}
86+
87+
.rule-param-edit .element .addafter {
88+
padding-left: 5px;
89+
}
90+
91+
[class^="rule-param-"] img,
92+
.rule-chooser-trigger img {
93+
vertical-align: middle;
94+
}
95+
96+
.rule-chooser {
97+
border: solid 1px #CCC;
98+
margin: 20px;
99+
padding: 15px 10px 5px;
100+
overflow: auto;
101+
}
102+
103+
.rule-param-wait {
104+
background: url(../mui/images/ajax-loader-small.gif) no-repeat left center;
105+
padding-left: 20px;
106+
}

app/design/adminhtml/Magento/backend/web/css/styles.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050

5151
// ToDo UI: Temporary. Should be changed
5252
@import 'source/components/_calendar-temp.less';
53+
@import 'source/components/_rules-temp.less';
5354

5455
//
5556
// Media queries collector

0 commit comments

Comments
 (0)