mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
XFA - Add a transparent blue background on all text fields for consistency
This commit is contained in:
parent
76d882b560
commit
92f4cc52a6
2 changed files with 25 additions and 10 deletions
|
@ -13,6 +13,10 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
:root {
|
||||
--unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
|
||||
}
|
||||
|
||||
.xfaPage {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
@ -45,7 +49,7 @@
|
|||
text-align: inherit;
|
||||
text-decoration: inherit;
|
||||
box-sizing: border-box;
|
||||
background: transparent;
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
pointer-events: auto;
|
||||
|
@ -136,7 +140,7 @@
|
|||
}
|
||||
|
||||
.xfaBorder {
|
||||
background: transparent;
|
||||
background-color: transparent;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
@ -148,7 +152,8 @@
|
|||
|
||||
.xfaTextfield:focus,
|
||||
.xfaSelect:focus {
|
||||
background: transparent;
|
||||
background-image: none;
|
||||
background-color: transparent;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
@ -159,7 +164,7 @@
|
|||
flex: 1 1 auto;
|
||||
border: none;
|
||||
resize: none;
|
||||
background: rgba(0, 54, 255, 0.13);
|
||||
background-image: var(--unfocused-field-background);
|
||||
}
|
||||
|
||||
.xfaTop > .xfaTextfield,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue