Skip to content

Commit 63d8f8c

Browse files
author
Natalia Momotenko
committed
Merge remote-tracking branch 'origin/MAGETWO-37636' into PR
2 parents 3044345 + d2d6c6e commit 63d8f8c

File tree

6 files changed

+40
-8
lines changed

6 files changed

+40
-8
lines changed

app/code/Magento/CurrencySymbol/Block/Adminhtml/System/Currency/Rate/Services.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ protected function _prepareLayout()
5252
$this->_srcCurrencyFactory->create()->toOptionArray()
5353
)->setId(
5454
'rate_services'
55+
)->setClass(
56+
'admin__control-select'
5557
)->setName(
5658
'rate_services'
5759
)->setValue(
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © 2015 Magento. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
9+
<update handle="styles" />
10+
<body/>
11+
</page>

app/code/Magento/CurrencySymbol/view/adminhtml/templates/system/currency/rates.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<form action="<?php echo $block->getImportFormAction() ?>" method="post" class="import-service">
1717
<?php echo $block->getBlockHtml('formkey')?>
18-
<fieldset class="admin__fieldset">
18+
<fieldset class="admin__fieldset admin__fieldset-import-service">
1919
<?php echo $block->getServicesHtml() ?>
2020
<?php echo $block->getImportButtonHtml() ?>
2121
</fieldset>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// /**
2+
// * Copyright © 2015 Magento. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
.admin__fieldset-import-service {
7+
margin: 0 0 @indent__base;
8+
.admin__field {
9+
margin: 0 0 @indent__base;
10+
}
11+
> .action-default {
12+
#mix-grid .return_length(@field-label-grid__column, @field-grid__columns, @mathSymbol: '+');
13+
margin-left: @_length;
14+
}
15+
}

app/design/adminhtml/Magento/backend/web/css/source/forms/_fields.less

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
@field-error-message__border-color: @color-apricot;
3232
@field-error-message__color: @color-very-dark-gray2;
3333

34+
@field-grid__columns: 9;
35+
@field-control-grid__column: 4;
36+
@field-label-grid__column: 3;
37+
3438
//
3539
// Form Fields
3640
// _____________________________________________
@@ -54,11 +58,11 @@
5458
&:extend(.abs-field-rows all);
5559
}
5660
> .admin__field-control {
57-
#mix-grid .column(4,9);
61+
#mix-grid .column(@field-control-grid__column, @field-grid__columns);
5862
}
5963

6064
> .admin__field-label {
61-
#mix-grid .column(3,9);
65+
#mix-grid .column(@field-label-grid__column, @field-grid__columns);
6266
}
6367
}
6468
}
@@ -164,7 +168,7 @@
164168

165169
&[data-config-scope] {
166170
&:before {
167-
#mix-grid .return_length(7,9);
171+
#mix-grid .return_length(7, @field-grid__columns);
168172
color: @field-scope__color;
169173
content: attr(data-config-scope);
170174
display: inline-block;
@@ -175,7 +179,7 @@
175179
position: absolute;
176180

177181
& {
178-
#mix-grid .return_length(2,9);
182+
#mix-grid .return_length(2, @field-grid__columns);
179183
width: @_length;
180184
}
181185
}
@@ -267,7 +271,7 @@
267271
& > .admin__field:first-child {
268272
position: static;
269273
& > .admin__field-label {
270-
#mix-grid .column(3, 9);
274+
#mix-grid .column(@field-label-grid__column, @field-grid__columns);
271275
cursor: pointer;
272276
left: 0;
273277
opacity: 0;

app/design/adminhtml/Magento/backend/web/css/source/forms/_temp.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
.extend__clearer();
2020
margin-left: ~'-@{temp_gutter}';
2121
}
22-
.return_length(@_columns-min, @_total: @temp_columns) {
22+
.return_length(@_columns-min, @_total: @temp_columns, @mathSymbol: '-') {
2323
@_part: @_columns-min/@_total;
24-
@_length: ~'calc( (100%) * @{_part} - @{temp_gutter} )';
24+
@_length: ~'calc( (100%) * @{_part} @{mathSymbol} @{temp_gutter} )';
2525
}
2626
.width(@_columns-min, @_total: @temp_columns) {
2727
#mix-grid .return_length(@_columns-min, @_total);

0 commit comments

Comments
 (0)