mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 09:52:50 -10:00
When adding support for RTL in date/time input box, we noticed that bidi text was not displayed properly with mixed of inline and block elements. By changing our editabled fields from <input> to <span>, we can rely on bidi algorithm and markups to display the inner fields in the right order. MozReview-Commit-ID: 7r8OVSJXJRU
53 lines
1.2 KiB
CSS
53 lines
1.2 KiB
CSS
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
@namespace url("http://www.w3.org/1999/xhtml");
|
|
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
|
|
|
.datetime-input-box-wrapper {
|
|
-moz-appearance: none;
|
|
display: inline-flex;
|
|
cursor: default;
|
|
background-color: inherit;
|
|
color: inherit;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.datetime-edit-field {
|
|
display: inline;
|
|
cursor: default;
|
|
-moz-user-select: none;
|
|
text-align: center;
|
|
padding: 1px 3px;
|
|
border: 0;
|
|
margin: 0;
|
|
ime-mode: disabled;
|
|
font: inherit;
|
|
outline: none;
|
|
}
|
|
|
|
.datetime-edit-field:not([disabled="true"]):focus {
|
|
background-color: Highlight;
|
|
color: HighlightText;
|
|
outline: none;
|
|
}
|
|
|
|
.datetime-edit-field[disabled="true"],
|
|
.datetime-edit-field[readonly="true"] {
|
|
color: GrayText;
|
|
-moz-user-select: none;
|
|
}
|
|
|
|
.datetime-reset-button {
|
|
background-image: url(chrome://global/skin/icons/input-clear.svg);
|
|
background-color: transparent;
|
|
background-repeat: no-repeat;
|
|
background-size: 12px, 12px;
|
|
border: none;
|
|
height: 12px;
|
|
width: 12px;
|
|
align-self: center;
|
|
justify-content: flex-end;
|
|
}
|