Skip to content

Commit b416ff6

Browse files
committed
Reorder CSS to ensure color inheritance works properly
Moved the * selector after html/body rules to ensure proper cascade order. This is a minor cleanup to improve code organization. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 3a8a25e commit b416ff6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

website/src/components/code-preview.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,24 @@ function generateJavaScriptIFrameHTML(
4040
}
4141
</script>
4242
<style>
43-
/* Dark mode (default) - apply colors directly without variables */
43+
/* Ensure colors cascade to all elements */
4444
html, body {
4545
background-color: #0a0e1f;
4646
color: #f5f9ff;
4747
margin: 0;
4848
padding: 0;
4949
}
50-
* {
51-
box-sizing: border-box;
52-
}
5350
5451
/* Light mode overrides */
5552
html.color-scheme-light, html.color-scheme-light body {
5653
background-color: #e7f4f5;
5754
color: #0a0e1f;
5855
}
5956
57+
* {
58+
box-sizing: border-box;
59+
}
60+
6061
/* CSS variables for compatibility with external CSS */
6162
:root {
6263
--bg-color: #0a0e1f;

0 commit comments

Comments
 (0)