Skip to content

Commit fd0f910

Browse files
committed
Theme based logo
1 parent 246fe01 commit fd0f910

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

src/css/style.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@
3434
}
3535
}
3636

37+
/* logo based on color theme */
38+
@media not (prefers-color-scheme: dark) {
39+
.logo.dark {
40+
display: none;
41+
}
42+
}
43+
@media (prefers-color-scheme: dark) {
44+
.logo.light {
45+
display: none;
46+
}
47+
}
48+
3749
html {
3850
scroll-behavior: smooth;
3951
background-color: var(--bg-color);

src/docs.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
name="description"
1616
content="3D game framework on top of Three.js and Ammo.js (bullet3) which integrates perfectly with Phaser 3."
1717
/>
18-
<link rel="stylesheet" href="/css/style.css?ver=1.2.3" />
18+
<link rel="stylesheet" href="/css/style.css?ver=1.3.0" />
1919
<link rel="stylesheet" href="/css/floating-action-button.css?ver=1.0.1" />
2020

2121
<script SSROnly src="//cdn.jsdelivr.net/npm/marked@3/lib/marked.min.js"></script>
@@ -55,7 +55,8 @@
5555
<header>
5656
<div class="container navbar">
5757
<a href="/">
58-
<div id="logo"><img src="/img/enable3d-logo.png" /></div>
58+
<div id="logo" class="logo light"><img src="/img/enable3d-logo.png" /></div>
59+
<div id="logo" class="logo dark"><img src="/img/enable3d-logo-dark.png" /></div>
5960
</a>
6061
<ul class="navbar-items">
6162
<a href="/examples.html">

src/examples.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
name="description"
1616
content="3D game framework on top of Three.js and Ammo.js (bullet3) which integrates perfectly with Phaser 3."
1717
/>
18-
<link rel="stylesheet" href="/css/style.css?ver=1.2.3" />
18+
<link rel="stylesheet" href="/css/style.css?ver=1.3.0" />
1919
</head>
2020

2121
<body>
@@ -30,7 +30,8 @@
3030
<header>
3131
<div class="container navbar">
3232
<a href="/">
33-
<div id="logo"><img src="/img/enable3d-logo.png" /></div>
33+
<div id="logo" class="logo light"><img src="/img/enable3d-logo.png" /></div>
34+
<div id="logo" class="logo dark"><img src="/img/enable3d-logo-dark.png" /></div>
3435
</a>
3536
<ul class="navbar-items">
3637
<a href="/examples.html">

src/img/enable3d-logo-dark.png

12.9 KB
Loading

src/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
name="description"
1616
content="Cross-Platform 3D Game Framework using HTML5 and WebGL wrapping Three.js and ammo.js (bullet3). Includes Headless Physics mode for your Node.js Server and a Phaser 3D Extension."
1717
/>
18-
<link rel="stylesheet" href="/css/style.css?ver=1.2.3" />
18+
<link rel="stylesheet" href="/css/style.css?ver=1.3.0" />
1919
</head>
2020

2121
<body>
@@ -30,7 +30,8 @@
3030
<header>
3131
<div class="container navbar">
3232
<a href="/">
33-
<div id="logo"><img src="/img/enable3d-logo.png" /></div>
33+
<div id="logo" class="logo light"><img src="/img/enable3d-logo.png" /></div>
34+
<div id="logo" class="logo dark"><img src="/img/enable3d-logo-dark.png" /></div>
3435
</a>
3536
<ul class="navbar-items">
3637
<a href="/examples.html">

0 commit comments

Comments
 (0)