-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.html
More file actions
51 lines (46 loc) · 1.92 KB
/
debug.html
File metadata and controls
51 lines (46 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="dist/css/main.css">
<style>
body { padding: 20px; }
.debug { margin: 10px 0; padding: 10px; border: 1px solid #ccc; }
</style>
</head>
<body>
<h1>CSS Debug Test</h1>
<div class="debug">
<h3>Color Variables Test</h3>
<div style="background: var(--color-warning); padding: 10px; color: white;">
Warning Color (should be orange): var(--color-warning)
</div>
<div style="background: var(--color-accent); padding: 10px; color: white;">
Accent Color (should be purple): var(--color-accent)
</div>
<div style="background: var(--color-primary); padding: 10px; color: white;">
Primary Color (should be cyan): var(--color-primary)
</div>
</div>
<div class="debug">
<h3>Card Header Test</h3>
<div class="card-header rust" style="padding: 10px; color: white;">
Rust Card Header (should be orange)
</div>
<div class="card-header scala" style="padding: 10px; color: white;">
Scala Card Header (should be purple)
</div>
</div>
<script>
// Log computed styles
const rustHeader = document.querySelector('.card-header.rust');
const scalaHeader = document.querySelector('.card-header.scala');
console.log('Rust header background:', getComputedStyle(rustHeader).backgroundColor);
console.log('Scala header background:', getComputedStyle(scalaHeader).backgroundColor);
// Log CSS variables
const root = document.documentElement;
console.log('--color-warning:', getComputedStyle(root).getPropertyValue('--color-warning'));
console.log('--color-accent:', getComputedStyle(root).getPropertyValue('--color-accent'));
console.log('--color-primary:', getComputedStyle(root).getPropertyValue('--color-primary'));
</script>
</body>
</html>