зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1723989 - Turn off print preview animations when show animations switched off r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D125598
This commit is contained in:
Родитель
3c893cc4cb
Коммит
08367fc9e2
|
@ -1399,7 +1399,6 @@ toolbarpaletteitem:not([place="palette"]) > #stop-reload-button {
|
|||
}
|
||||
|
||||
.previewRendering {
|
||||
background-image: url("chrome://browser/skin/tabbrowser/pendingpaint.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 60px 60px;
|
||||
background-position: center center;
|
||||
|
@ -1416,7 +1415,6 @@ toolbarpaletteitem:not([place="palette"]) > #stop-reload-button {
|
|||
.printPreviewBrowser {
|
||||
visibility: collapse;
|
||||
opacity: 1;
|
||||
transition: opacity 60ms;
|
||||
}
|
||||
|
||||
.previewStack[previewtype="source"] > .printPreviewBrowser[previewtype="source"],
|
||||
|
@ -1427,7 +1425,6 @@ toolbarpaletteitem:not([place="palette"]) > #stop-reload-button {
|
|||
|
||||
.previewStack[rendering=true] > .printPreviewBrowser {
|
||||
opacity: 0;
|
||||
transition: opacity 1ms 250ms;
|
||||
}
|
||||
|
||||
.print-pending-label {
|
||||
|
@ -1437,12 +1434,10 @@ toolbarpaletteitem:not([place="palette"]) > #stop-reload-button {
|
|||
|
||||
printpreview-pagination {
|
||||
opacity: 0;
|
||||
transition: opacity 100ms 500ms;
|
||||
}
|
||||
printpreview-pagination:focus-within,
|
||||
.previewStack:hover printpreview-pagination {
|
||||
opacity: 1;
|
||||
transition: opacity 100ms;
|
||||
}
|
||||
.previewStack[rendering=true] printpreview-pagination {
|
||||
opacity: 0;
|
||||
|
@ -1455,6 +1450,29 @@ printpreview-pagination:focus-within,
|
|||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.previewRendering {
|
||||
background-image: url("chrome://browser/skin/tabbrowser/pendingpaint.png");
|
||||
}
|
||||
|
||||
.printPreviewBrowser {
|
||||
transition: opacity 60ms;
|
||||
}
|
||||
|
||||
.previewStack[rendering=true] > .printPreviewBrowser {
|
||||
transition: opacity 1ms 250ms;
|
||||
}
|
||||
|
||||
printpreview-pagination {
|
||||
transition: opacity 100ms 500ms;
|
||||
}
|
||||
|
||||
printpreview-pagination:focus-within,
|
||||
.previewStack:hover printpreview-pagination {
|
||||
transition: opacity 100ms;
|
||||
}
|
||||
}
|
||||
|
||||
/* WebExtension Sidebars */
|
||||
#sidebar-box[sidebarcommand$="-sidebar-action"] > #sidebar-header > #sidebar-switcher-target > #sidebar-icon {
|
||||
list-style-image: var(--webextension-menuitem-image, inherit);
|
||||
|
|
Загрузка…
Ссылка в новой задаче