Merge pull request #15937 from Snuffleupagus/textLayer-highlight-color-vars
Use CSS variables for the textLayer `highlight` colors (PR 15921 follow-up)
This commit is contained in:
commit
1a95890728
@ -35,7 +35,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (forced-colors: active) {
|
@media screen and (forced-colors: active) {
|
||||||
:root {
|
:root {
|
||||||
--focus-outline: solid 3px ButtonText;
|
--focus-outline: solid 3px ButtonText;
|
||||||
--hover-outline: dashed 3px ButtonText;
|
--hover-outline: dashed 3px ButtonText;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
--input-hover-border-color: black;
|
--input-hover-border-color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (forced-colors: active) {
|
@media screen and (forced-colors: active) {
|
||||||
:root {
|
:root {
|
||||||
--input-focus-border-color: CanvasText;
|
--input-focus-border-color: CanvasText;
|
||||||
--input-unfocused-border-color: ActiveText;
|
--input-unfocused-border-color: ActiveText;
|
||||||
|
@ -13,6 +13,18 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--highlight-bg-color: rgba(180, 0, 170, 1);
|
||||||
|
--highlight-selected-bg-color: rgba(0, 100, 0, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (forced-colors: active) {
|
||||||
|
:root {
|
||||||
|
--highlight-bg-color: Highlight;
|
||||||
|
--highlight-selected-bg-color: ButtonText;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.textLayer {
|
.textLayer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
text-align: initial;
|
text-align: initial;
|
||||||
@ -48,7 +60,7 @@
|
|||||||
.textLayer .highlight {
|
.textLayer .highlight {
|
||||||
margin: -1px;
|
margin: -1px;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
background-color: rgba(180, 0, 170, 1);
|
background-color: var(--highlight-bg-color);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,16 +81,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.textLayer .highlight.selected {
|
.textLayer .highlight.selected {
|
||||||
background-color: rgba(0, 100, 0, 1);
|
background-color: var(--highlight-selected-bg-color);
|
||||||
}
|
|
||||||
|
|
||||||
@media (forced-colors: active) {
|
|
||||||
.textLayer .highlight {
|
|
||||||
background-color: Highlight;
|
|
||||||
}
|
|
||||||
.textLayer .highlight.selected {
|
|
||||||
background-color: ButtonText;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.textLayer ::selection {
|
.textLayer ::selection {
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
--xfa-focus-outline: auto;
|
--xfa-focus-outline: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (forced-colors: active) {
|
@media screen and (forced-colors: active) {
|
||||||
:root {
|
:root {
|
||||||
--xfa-focus-outline: 2px solid CanvasText;
|
--xfa-focus-outline: 2px solid CanvasText;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user