123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350 |
- /* Copyright 2021 Mozilla Foundation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- :root {
- --xfa-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>");
- --xfa-focus-outline: auto;
- }
- @media (forced-colors: active) {
- :root {
- --xfa-focus-outline: 2px solid CanvasText;
- }
- .xfaLayer *:required {
- outline: 1.5px solid selectedItem;
- }
- }
- .xfaLayer {
- background-color: transparent;
- }
- .xfaLayer .highlight {
- margin: -1px;
- padding: 1px;
- background-color: rgba(239, 203, 237, 1);
- border-radius: 4px;
- }
- .xfaLayer .highlight.appended {
- position: initial;
- }
- .xfaLayer .highlight.begin {
- border-radius: 4px 0 0 4px;
- }
- .xfaLayer .highlight.end {
- border-radius: 0 4px 4px 0;
- }
- .xfaLayer .highlight.middle {
- border-radius: 0;
- }
- .xfaLayer .highlight.selected {
- background-color: rgba(203, 223, 203, 1);
- }
- .xfaPage {
- overflow: hidden;
- position: relative;
- }
- .xfaContentarea {
- position: absolute;
- }
- .xfaPrintOnly {
- display: none;
- }
- .xfaLayer {
- position: absolute;
- text-align: initial;
- top: 0;
- left: 0;
- transform-origin: 0 0;
- line-height: 1.2;
- }
- .xfaLayer * {
- color: inherit;
- font: inherit;
- font-style: inherit;
- font-weight: inherit;
- font-kerning: inherit;
- letter-spacing: -0.01px;
- text-align: inherit;
- text-decoration: inherit;
- box-sizing: border-box;
- background-color: transparent;
- padding: 0;
- margin: 0;
- pointer-events: auto;
- line-height: inherit;
- }
- .xfaLayer *:required {
- outline: 1.5px solid red;
- }
- .xfaLayer div {
- pointer-events: none;
- }
- .xfaLayer svg {
- pointer-events: none;
- }
- .xfaLayer svg * {
- pointer-events: none;
- }
- .xfaLayer a {
- color: blue;
- }
- .xfaRich li {
- margin-left: 3em;
- }
- .xfaFont {
- color: black;
- font-weight: normal;
- font-kerning: none;
- font-size: 10px;
- font-style: normal;
- letter-spacing: 0;
- text-decoration: none;
- vertical-align: 0;
- }
- .xfaCaption {
- overflow: hidden;
- flex: 0 0 auto;
- }
- .xfaCaptionForCheckButton {
- overflow: hidden;
- flex: 1 1 auto;
- }
- .xfaLabel {
- height: 100%;
- width: 100%;
- }
- .xfaLeft {
- display: flex;
- flex-direction: row;
- align-items: center;
- }
- .xfaRight {
- display: flex;
- flex-direction: row-reverse;
- align-items: center;
- }
- .xfaLeft > .xfaCaption,
- .xfaLeft > .xfaCaptionForCheckButton,
- .xfaRight > .xfaCaption,
- .xfaRight > .xfaCaptionForCheckButton {
- max-height: 100%;
- }
- .xfaTop {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- }
- .xfaBottom {
- display: flex;
- flex-direction: column-reverse;
- align-items: flex-start;
- }
- .xfaTop > .xfaCaption,
- .xfaTop > .xfaCaptionForCheckButton,
- .xfaBottom > .xfaCaption,
- .xfaBottom > .xfaCaptionForCheckButton {
- width: 100%;
- }
- .xfaBorder {
- background-color: transparent;
- position: absolute;
- pointer-events: none;
- }
- .xfaWrapped {
- width: 100%;
- height: 100%;
- }
- .xfaTextfield:focus,
- .xfaSelect:focus {
- background-image: none;
- background-color: transparent;
- outline: var(--xfa-focus-outline);
- outline-offset: -1px;
- }
- .xfaCheckbox:focus,
- .xfaRadio:focus {
- outline: var(--xfa-focus-outline);
- }
- .xfaTextfield,
- .xfaSelect {
- height: 100%;
- width: 100%;
- flex: 1 1 auto;
- border: none;
- resize: none;
- background-image: var(--xfa-unfocused-field-background);
- }
- .xfaSelect {
- padding-inline: 2px;
- }
- .xfaTop > .xfaTextfield,
- .xfaTop > .xfaSelect,
- .xfaBottom > .xfaTextfield,
- .xfaBottom > .xfaSelect {
- flex: 0 1 auto;
- }
- .xfaButton {
- cursor: pointer;
- width: 100%;
- height: 100%;
- border: none;
- text-align: center;
- }
- .xfaLink {
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- .xfaCheckbox,
- .xfaRadio {
- width: 100%;
- height: 100%;
- flex: 0 0 auto;
- border: none;
- }
- .xfaRich {
- white-space: pre-wrap;
- width: 100%;
- height: 100%;
- }
- .xfaImage {
- object-position: left top;
- object-fit: contain;
- width: 100%;
- height: 100%;
- }
- .xfaLrTb,
- .xfaRlTb,
- .xfaTb {
- display: flex;
- flex-direction: column;
- align-items: stretch;
- }
- .xfaLr {
- display: flex;
- flex-direction: row;
- align-items: stretch;
- }
- .xfaRl {
- display: flex;
- flex-direction: row-reverse;
- align-items: stretch;
- }
- .xfaTb > div {
- justify-content: left;
- }
- .xfaPosition {
- position: relative;
- }
- .xfaArea {
- position: relative;
- }
- .xfaValignMiddle {
- display: flex;
- align-items: center;
- }
- .xfaTable {
- display: flex;
- flex-direction: column;
- align-items: stretch;
- }
- .xfaTable .xfaRow {
- display: flex;
- flex-direction: row;
- align-items: stretch;
- }
- .xfaTable .xfaRlRow {
- display: flex;
- flex-direction: row-reverse;
- align-items: stretch;
- flex: 1;
- }
- .xfaTable .xfaRlRow > div {
- flex: 1;
- }
- .xfaNonInteractive input,
- .xfaNonInteractive textarea,
- .xfaDisabled input,
- .xfaDisabled textarea,
- .xfaReadOnly input,
- .xfaReadOnly textarea {
- background: initial;
- }
- @media print {
- .xfaTextfield,
- .xfaSelect {
- background: transparent;
- }
- .xfaSelect {
- appearance: none;
- text-indent: 1px;
- text-overflow: "";
- }
- }
|