Skip to content

Commit ba076c4

Browse files
committed
- create a new stacking context for ld-over and ld-over-inverse elements.
1 parent e6bb117 commit ba076c4

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

dist/index.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,10 @@
180180
.ld-over-full-inverse:before {
181181
background: rgba(0,0,0,0.6);
182182
}
183+
/* we want to prevent the mask from stacking above elements other than its direct parent,
184+
* without relying on the parent's z-index, position or any other styles.
185+
* This can be achieved simply by applying `isolation: isloate` to create a new stack context. */
186+
.ld-over,
187+
.ld-over-inverse {
188+
isolation: isolate;
189+
}

dist/index.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.styl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,9 @@
9999
.ld-over-full-inverse
100100
& > .ld { color: rgba(255,255,255,0.8) }
101101
&:before { background: rgba(0,0,0,0.6) }
102+
103+
/* we want to prevent the mask from stacking above elements other than its direct parent,
104+
* without relying on the parent's z-index, position or any other styles.
105+
* This can be achieved simply by applying `isolation: isloate` to create a new stack context. */
106+
.ld-over, .ld-over-inverse
107+
isolation: isolate

0 commit comments

Comments
 (0)