summaryrefslogtreecommitdiffstats
path: root/browser/components/screenshots/overlay
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /browser/components/screenshots/overlay
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/screenshots/overlay')
-rw-r--r--browser/components/screenshots/overlay/overlay.css41
1 files changed, 27 insertions, 14 deletions
diff --git a/browser/components/screenshots/overlay/overlay.css b/browser/components/screenshots/overlay/overlay.css
index 6eeda8b44c..b042f0b0c2 100644
--- a/browser/components/screenshots/overlay/overlay.css
+++ b/browser/components/screenshots/overlay/overlay.css
@@ -6,6 +6,12 @@
:host {
display: contents;
+
+ /* These z-indexes are used to correctly layer elements in the screenshots overlay */
+ --screenshots-lowest-layer: 1;
+ --screenshots-low-layer: 2;
+ --screenshots-high-layer: 3;
+ --screenshots-highest-layer: 4;
}
[hidden] {
@@ -57,6 +63,7 @@
position: absolute;
margin: 10px 0;
cursor: auto;
+ z-index: var(--screenshots-highest-layer);
}
#selection-size,
@@ -77,11 +84,13 @@
.screenshots-button {
display: inline-flex;
align-items: center;
+ justify-content: center;
+ gap: var(--space-xsmall);
cursor: pointer;
text-align: center;
user-select: none;
white-space: nowrap;
- z-index: 6;
+ z-index: var(--screenshots-highest-layer);
min-width: 32px;
margin-inline: 4px;
}
@@ -90,6 +99,7 @@
width: 100%;
height: 100%;
pointer-events: none;
+ z-index: var(--screenshots-lowest-layer);
}
#screenshots-cancel-button {
@@ -123,6 +133,10 @@
pointer-events: none;
}
+.screenshots-button > label {
+ pointer-events: none;
+}
+
#cancel > img {
content: url("chrome://global/skin/icons/close.svg");
}
@@ -135,15 +149,14 @@
content: url("chrome://browser/skin/downloads/downloads.svg");
}
-#download > img,
-#copy > img {
- margin-inline-end: 5px;
-}
-
.face-container {
position: relative;
width: 64px;
height: 64px;
+
+ @media (prefers-contrast) {
+ display: none;
+ }
}
.face {
@@ -172,7 +185,7 @@
border-radius: 50%;
inset-inline-start: 2px;
top: 4px;
- z-index: 10;
+ z-index: var(--screenshots-high-layer);
}
.left {
@@ -209,7 +222,7 @@
box-sizing: border-box;
pointer-events: none;
position: absolute;
- z-index: 11;
+ z-index: var(--screenshots-high-layer);
}
#top-background {
@@ -242,7 +255,7 @@
cursor: move;
position: absolute;
pointer-events: auto;
- z-index: 2;
+ z-index: var(--screenshots-lowest-layer);
outline-offset: 8px;
}
@@ -251,7 +264,7 @@
align-items: center;
justify-content: center;
position: absolute;
- z-index: 5;
+ z-index: var(--screenshots-high-layer);
pointer-events: auto;
outline-offset: -15px;
}
@@ -270,7 +283,7 @@
inset-inline-start: 0;
top: -30px;
width: 100%;
- z-index: 4;
+ z-index: var(--screenshots-low-layer);
}
.mover-target.direction-topRight {
@@ -287,7 +300,7 @@
left: -30px;
top: 0;
width: 60px;
- z-index: 4;
+ z-index: var(--screenshots-low-layer);
}
.mover-target.direction-right {
@@ -296,7 +309,7 @@
right: -30px;
top: 0;
width: 60px;
- z-index: 4;
+ z-index: var(--screenshots-low-layer);
}
.mover-target.direction-bottomLeft {
@@ -313,7 +326,7 @@
height: 60px;
inset-inline-start: 0;
width: 100%;
- z-index: 4;
+ z-index: var(--screenshots-low-layer);
}
.mover-target.direction-bottomRight {