Skip to content

Commit ffa90c3

Browse files
committed
update style to work on light and dark mode
1 parent 8b5b3b6 commit ffa90c3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

webxrlayers-1.bs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,18 @@ spec: compositing-1; urlPrefix: https://www.w3.org/TR/compositing-1/
158158
border-radius: .5em;
159159
padding: .5em;
160160
margin: .5em calc(-0.5em - 1px);
161-
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='290'><text transform='rotate(-45)' text-anchor='middle' font-family='sans-serif' font-weight='bold' font-size='70' y='210' opacity='.1'>Unstable</text></svg>");
161+
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='290'><text transform='rotate(-45)' text-anchor='middle' font-family='sans-serif' font-weight='bold' font-size='70' y='210' opacity='.1' fill='white'>Unstable</text></svg>");
162162
background-repeat: repeat;
163163
background-color: #282828;
164164
}
165+
166+
@media (prefers-color-scheme: light) {
167+
.unstable {
168+
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='290'><text transform='rotate(-45)' text-anchor='middle' font-family='sans-serif' font-weight='bold' font-size='70' y='210' opacity='.1'>Unstable</text></svg>");
169+
background-color: #FFF4F4;
170+
}
171+
}
172+
165173
.unstable h3:first-of-type {
166174
margin-top: 0.5rem;
167175
}

0 commit comments

Comments
 (0)