Skip to content

Commit f21f496

Browse files
author
Natalia Momotenko
committed
Merge remote-tracking branch 'origin/MAGETWO-41995' into bugs
2 parents 8d0a8d5 + 090c47e commit f21f496

File tree

4 files changed

+104
-27
lines changed

4 files changed

+104
-27
lines changed

app/code/Magento/Translation/view/adminhtml/templates/translate_inline.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<script id="translate-form-template" type="text/x-magento-template">
1818
<form id="<%- data.id %>">
1919
<% _.each(data.items, function(item, i) { %>
20-
<div class="magento_table_container">
20+
<div class="translate-table-container">
2121
<table class="table">
2222
<% _.each(item, function(value, index) { %>
2323
<tr>

app/code/Magento/Translation/view/frontend/templates/translate_inline.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<script id="translate-form-template" type="text/x-magento-template">
1919
<form id="<%- data.id %>">
2020
<% _.each(data.items, function(item, i) { %>
21-
<div class="magento_table_container">
21+
<div class="translate-table-container">
2222
<table cellspacing="0" class="table">
2323
<% _.each(item, function(value, index) { %>
2424
<tr>
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
// /**
2+
// * Copyright © 2016 Magento. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
//
7+
// Inline translations
8+
// _____________________________________________
9+
10+
//
11+
// Variables
12+
// ---------------------------------------------
13+
14+
@translate-inline-title__z-index: @menu__z-index + 1;
15+
16+
//
17+
// Form
18+
// ---------------------------------------------
19+
20+
.translate-table-container {
21+
table {
22+
width: 100%;
23+
}
24+
25+
td {
26+
background: none;
27+
padding: @indent__xs;
28+
text-align: left;
29+
30+
&.value {
31+
.input-text {
32+
width: 100%;
33+
}
34+
}
35+
}
36+
37+
th {
38+
&.label {
39+
border: none;
40+
font-weight: @font-weight__bold;
41+
padding: @indent__xs;
42+
text-align: left;
43+
width: 150px;
44+
}
45+
}
46+
}
47+
48+
//
49+
// Special tags
50+
// ---------------------------------------------
51+
52+
.translate-inline-title {
53+
display: block;
54+
left: 0;
55+
position: absolute;
56+
top: 0;
57+
z-index: @translate-inline-title__z-index;
58+
}
59+
60+
// Script tag that placed between menu and page wrapper
61+
.translate-inline-script {
62+
.menu-wrapper ~ & {
63+
display: block;
64+
left: @menu__width;
65+
position: absolute;
66+
top: 0;
67+
z-index: @translate-inline-title__z-index;
68+
}
69+
}

lib/web/mage/translate-inline.css

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,53 @@
55

66
.trnslate-inline-area [data-translate],
77
.trnslate-inline-area .translate-inline {
8-
outline: dotted 1px red!important;
8+
outline: dotted 1px red !important;
99
}
10+
1011
* html .translate-inline,
11-
*+html .translate-inline{
12-
border: dotted 1px red !important;
12+
* + html .translate-inline {
13+
border: dotted 1px red !important;
1314
}
14-
.translate-inline-script, .translate-inline-title {
15-
background: yellow;
16-
color: black;
17-
font-weight: bold;
15+
16+
.translate-inline-script,
17+
.translate-inline-title {
18+
background: yellow;
19+
color: black;
20+
font-weight: bold;
1821
}
22+
1923
#translate-inline-trig {
20-
position: absolute;
21-
left: -1000px;
22-
opacity: .8;
23-
filter: alpha(opacity=80);
24-
cursor: pointer;
25-
margin-top: 10px;
26-
z-index: 2000;
24+
cursor: pointer;
25+
filter: alpha(opacity=80);
26+
left: -1000px;
27+
margin-top: 10px;
28+
opacity: .8;
29+
position: absolute;
30+
z-index: 2000;
2731
}
2832

2933
.data.table.translate table {
30-
width: 100%;
34+
width: 100%;
3135
}
36+
3237
.data.table.translate td {
33-
background: none;
34-
padding: 5px 5px 5px 0;
35-
text-align: left;
38+
background: none;
39+
padding: 5px 5px 5px 0;
40+
text-align: left;
3641
}
42+
3743
.data.table.translate th.label {
38-
border: none;
39-
font-weight: bold;
40-
text-align: left;
41-
padding: 5px 5px 5px 0;
42-
width: 150px;
44+
border: none;
45+
font-weight: bold;
46+
padding: 5px 5px 5px 0;
47+
text-align: left;
48+
width: 150px;
4349
}
50+
4451
.data.table.translate td.value .input-text {
45-
width: 98%;
52+
width: 98%;
4653
}
54+
4755
p.accent {
48-
color: #d12c01;
56+
color: #d12c01;
4957
}

0 commit comments

Comments
 (0)