Skip to content

A platform for community discussion. Free, open, simple.

UX: Horizon > z-index (#36692)

chapoi6b94f8ef2ba1
diff --git a/themes/horizon/scss/experimental-screen.scss b/themes/horizon/scss/experimental-screen.scss
index 22a6cc49324..e84d7c83a09 100644
--- a/themes/horizon/scss/experimental-screen.scss
+++ b/themes/horizon/scss/experimental-screen.scss
@@ -69,7 +69,9 @@
width: var(--d-border-radius-large);
height: var(--d-border-radius-large);
background-color: var(--background-color);
- z-index: 399;
+ z-index: calc(
+ z("base") + 1
+ ); // has to top list-controls, which is sticky in Horizon
mask: radial-gradient(
circle at var(--d-border-radius-large) var(--d-border-radius-large),
transparent var(--d-border-radius-large),
@@ -112,7 +114,9 @@
&__bottom-bar {
position: fixed;
width: 100%;
- z-index: 399;
+ z-index: calc(
+ z("base") + 1
+ ); // has to top list-controls, which is sticky in Horizon
background-color: var(--background-color);
bottom: 0;
left: var(--left-distance);
diff --git a/themes/horizon/scss/misc.scss b/themes/horizon/scss/misc.scss
index f1f9625638b..5a4253b2730 100644
--- a/themes/horizon/scss/misc.scss
+++ b/themes/horizon/scss/misc.scss
@@ -10,7 +10,9 @@
}
.powered-by-discourse {
- z-index: 400;
+ z-index: calc(
+ z("base") + 2
+ ); // has to top experimental framing inset elements of Horizon
}
.boxed.white {
diff --git a/themes/horizon/scss/nav-pills.scss b/themes/horizon/scss/nav-pills.scss
index 7027eaa32bf..6b918a2fd4c 100644
--- a/themes/horizon/scss/nav-pills.scss
+++ b/themes/horizon/scss/nav-pills.scss
@@ -2,7 +2,7 @@
position: sticky;
top: var(--header-offset);
background: var(--d-content-background);
- z-index: calc(z("base") + 1);
+ z-index: z("base");
padding: 1.5rem 0 1rem 0;
max-width: unset;