Bug 1506105 - Display the clickable icons using the content property instead of as a background image so that they are visible in high contrast mode, r=felipe.

This commit is contained in:
Florian Quèze 2018-11-20 15:32:01 +01:00
Родитель 00add3602c
Коммит 4289b4da98
1 изменённых файлов: 17 добавлений и 11 удалений

Просмотреть файл

@ -166,7 +166,6 @@
}
/* Ensure both pseudo elements have the same size and position. */
.action-icon::before, .action-icon::after {
content: "";
height: 200%;
position: absolute;
top: -50%;
@ -177,6 +176,7 @@
/* square background */
.action-icon::before {
content: "";
background-color: currentColor;
opacity: 0;
}
@ -194,17 +194,23 @@
background-repeat: no-repeat;
background-position: center;
fill: currentColor;
line-height: 100%;
}
.addon-icon::after {
background-image: url("chrome://global/skin/icons/shortcut.svg");
background-size: 16px;
content: url("chrome://global/skin/icons/shortcut.svg");
top: 2px;
left: -11px;
width: 16px;
}
.addon-icon:dir(rtl)::after {
transform: scaleX(-1);
}
.close-icon::after {
background-image: url("chrome://global/skin/icons/close.svg");
background-size: 24px;
content: url("chrome://global/skin/icons/close.svg");
height: 100%;
top: 0;
left: -13px;
transform: scale(1.2);
}
#dispatch-table > thead > tr > td {
@ -250,14 +256,14 @@
/* Putting the background image in a positioned pseudo element lets us
* use CSS transforms on the background image, which we need for rtl. */
.twisty::before {
content: "";
content: url("chrome://global/skin/icons/twisty-collapsed.svg");
position: absolute;
height: 100%;
display: block;
line-height: 50%;
top: 4px; /* Half the image's height */
width: 100%;
left: 0;
background-repeat: no-repeat;
background-position: center;
background-image: url("chrome://global/skin/icons/twisty-collapsed.svg");
text-align: center;
-moz-context-properties: fill;
fill: currentColor;
}
@ -265,7 +271,7 @@
transform: scaleX(-1);
}
.twisty.open::before {
background-image: url("chrome://global/skin/icons/twisty-expanded.svg");
content: url("chrome://global/skin/icons/twisty-expanded.svg");
}
#dispatch-tbody > tr > td.indent {
padding-inline-start: 88px;