Skip to content

Commit 8d79f49

Browse files
author
Martin Muda
committed
Add check firefox has() support
1 parent ebdc5aa commit 8d79f49

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/utilities/_reset.scss

+24
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,27 @@
55
margin: 0
66
}
77

8+
/* Check Firefox has() support */
9+
@supports not selector(:has(a)) {
10+
11+
.o-container .o-orbit {
12+
display: none;
13+
14+
}
15+
16+
.o-container::before {
17+
background-color: yellow;
18+
content: '°ⓩ Orbit is not yet supported by 🦊 Firefox (until v.120)';
19+
text-shadow: 0 0 2px red;
20+
font-size: 18px;
21+
22+
}
23+
24+
.o-container::after {
25+
content: "To experience Orbit, enable 'layout.css.has-selector.enabled' in your Firefox settings. Just head to about:config!";
26+
text-shadow: 0 0 2px rgba(253, 2, 2, 0.384);
27+
font-size: 18px;
28+
29+
}
30+
}
31+

0 commit comments

Comments
 (0)