Skip to content

Commit 35af34a

Browse files
committed
feat: dark mode
1 parent 8ff220d commit 35af34a

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

voxy-shaders.html

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,14 @@
178178
.font-selector{
179179
position: static;
180180
top: 10px;
181-
left: 10ox;
181+
left: 10px;
182182
font-family: 'Open-Dyslexic',serif;
183183
width: auto;
184184
display: inline-block;
185185
}
186186

187187

188-
.dark-mode{
188+
.dark-mode-btn{
189189
position: fixed;
190190
top: 10px;
191191
right: 10px;
@@ -203,7 +203,7 @@
203203
background: #89a2f3;
204204
min-height: 100vh;
205205
display: flex;
206-
align-items: stretch;
206+
/*align-items: stretch;*/
207207
justify-content: space-between;
208208
flex-direction: column;
209209
margin: 0;
@@ -216,17 +216,10 @@
216216
body.dyslexic-mode h1{
217217
font-size: 28px;
218218
}
219-
220-
body.dark-mode{
219+
220+
body.dark-mode {
221221
background: #4d587a;
222222
color: white;
223-
min-height: 100vh;
224-
display: flex;
225-
align-items: stretch;
226-
justify-content: space-between;
227-
flex-direction: column;
228-
margin: 0;
229-
padding: 0;
230223
}
231224

232225
footer {
@@ -252,14 +245,14 @@
252245
<div class="font-selector">
253246
<button id="font-toggle" class="font-selector"> <h4>dyslexic mode</h4> </button>
254247
</div>
255-
<!-- <div class="dark-mode">-->
256-
<!-- <button id="dark-toggle" class="dark-mode"> <svg width="20px" height="20px" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">-->
248+
<div class="dark-mode-btn">
249+
<button id="dark-toggle" class="dark-mode"> <svg width="20px" height="20px" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
257250

258-
<!-- <path d="M14,24A10,10,0,0,0,24,34V14A10,10,0,0,0,14,24Z"/>-->
259-
<!-- <path d="M24,2A22,22,0,1,0,46,24,21.9,21.9,0,0,0,24,2ZM6,24A18.1,18.1,0,0,1,24,6v8a10,10,0,0,1,0,20v8A18.1,18.1,0,0,1,6,24Z"/>-->
251+
<path d="M14,24A10,10,0,0,0,24,34V14A10,10,0,0,0,14,24Z"/>
252+
<path d="M24,2A22,22,0,1,0,46,24,21.9,21.9,0,0,0,24,2ZM6,24A18.1,18.1,0,0,1,24,6v8a10,10,0,0,1,0,20v8A18.1,18.1,0,0,1,6,24Z"/>
260253

261-
<!-- </svg> </button>-->
262-
<!-- </div>-->
254+
</svg> </button>
255+
</div>
263256
<script src="scripts/fontswap.js"></script>
264257
<div class="content">
265258
<h1> Shaders that support Voxy!</h1>

0 commit comments

Comments
 (0)