зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1589592
- Fix console editor Run button icon in RTL. r=Honza.
Since we want the button to be placed on the right side in RTL languages and we don't have logical properties on background-position yet, we display the icon in a :before pseudo element which will adapt for both LTR and RTL languages. The icon is then mirrored in RTL. Differential Revision: https://phabricator.services.mozilla.com/D49718 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
92088e98e0
Коммит
959807c018
|
@ -255,9 +255,9 @@ body {
|
|||
* - A separator
|
||||
* - The close button
|
||||
*
|
||||
* +------------------------------------------+
|
||||
* | ▶︎ Run ˄ ˅ 🔍 | ✖️ |
|
||||
* +------------------------------------------+
|
||||
* +-------------------------------------------+
|
||||
* | ▶︎ Run ˄ ˅ 🔍 | ✕ |
|
||||
* +-------------------------------------------+
|
||||
*
|
||||
*/
|
||||
grid-template-columns: auto 1fr auto auto auto auto auto;
|
||||
|
@ -265,16 +265,24 @@ body {
|
|||
}
|
||||
|
||||
.jsterm-editor .webconsole-editor-toolbar .webconsole-editor-toolbar-executeButton {
|
||||
background-image: url("chrome://devtools/skin/images/webconsole/run.svg");
|
||||
-moz-context-properties: fill;
|
||||
fill: currentColor;
|
||||
padding-inline-start: 22px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: 4px center;
|
||||
padding-inline-end: 8px;
|
||||
padding-inline: 4px 8px;
|
||||
height: 20px;
|
||||
margin-inline-start: 5px;
|
||||
background-size: 16px 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.jsterm-editor .webconsole-editor-toolbar .webconsole-editor-toolbar-executeButton::before {
|
||||
content: url("chrome://devtools/skin/images/webconsole/run.svg");
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
-moz-context-properties: fill;
|
||||
fill: currentColor;
|
||||
margin-inline-end: 2px;
|
||||
}
|
||||
|
||||
[dir="rtl"] .jsterm-editor .webconsole-editor-toolbar .webconsole-editor-toolbar-executeButton::before {
|
||||
rotate: 180deg;
|
||||
}
|
||||
|
||||
.jsterm-editor .webconsole-editor-toolbar .webconsole-editor-toolbar-history-prevExpressionButton {
|
||||
|
|
Загрузка…
Ссылка в новой задаче