mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 762270 - Align the file name to the right when direction is RTL. r=smontagu
This commit is contained in:
parent
6aff8cae54
commit
82c99905b2
@ -430,6 +430,12 @@ input[type="file"] > xul|label {
|
||||
color: inherit;
|
||||
font-size: inherit;
|
||||
letter-spacing: inherit;
|
||||
|
||||
/*
|
||||
* Force the text to have LTR directionality. Otherwise filenames containing
|
||||
* RTL characters will be reordered with chaotic results.
|
||||
*/
|
||||
direction: ltr !important;
|
||||
}
|
||||
|
||||
/* button part of file selector */
|
||||
@ -440,6 +446,14 @@ input[type="file"] > input[type="button"] {
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
/* Try to make RTL <input type='file'> look nicer. */
|
||||
/* TODO: use text-align: match-parent when bug 645642 is fixed. */
|
||||
input[type="file"]:-moz-dir(rtl) > xul|label {
|
||||
-moz-padding-start: 0px;
|
||||
padding-right: 5px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* radio buttons */
|
||||
input[type="radio"] {
|
||||
-moz-appearance: radio;
|
||||
@ -623,16 +637,6 @@ optgroup:before {
|
||||
text-overflow: inherit;
|
||||
}
|
||||
|
||||
/*
|
||||
* Force the text control child of file input controls to have left-to-right
|
||||
* directionality. Otherwise filenames containing right-to-left characters
|
||||
* will be reordered with chaotic results.
|
||||
*/
|
||||
input[type="file"] > xul|label {
|
||||
direction: ltr !important;
|
||||
text-align: inherit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set default style for invalid elements.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user