Skip to content

Commit cceed9b

Browse files
committed
dark mode style for view toggle
1 parent a1e9881 commit cceed9b

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en" class="dark">
33
<head>
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

src/Repl.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ provide('clear-console', toRef(props, 'clearConsole'))
4545
--bg: #fff;
4646
--bg-soft: #f8f8f8;
4747
--border: #ddd;
48-
--text-light: #999;
48+
--text-light: #888;
4949
--font-code: Menlo, Monaco, Consolas, 'Courier New', monospace;
5050
--color-branding: #42b883;
5151
--color-branding-dark: #416f9c;
@@ -54,7 +54,6 @@ provide('clear-console', toRef(props, 'clearConsole'))
5454
font-size: 13px;
5555
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
5656
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
57-
color: var(--base);
5857
margin: 0;
5958
overflow: hidden;
6059
background-color: var(--bg-soft);

src/SplitPane.vue

+7-3
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,19 @@ function dragEnd() {
9696
display: none;
9797
z-index: 3;
9898
font-family: var(--font-code);
99-
color: #444;
99+
color: var(--text-light);
100100
position: absolute;
101101
left: 50%;
102102
bottom: 20px;
103-
background-color: #fff;
103+
background-color: var(--bg);
104104
padding: 8px 12px;
105105
border-radius: 8px;
106106
transform: translateX(-50%);
107-
box-shadow: 0 3px 8px rgba(0,0,0,0.25);
107+
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
108+
}
109+
110+
.dark .toggler {
111+
background-color: var(--bg);
108112
}
109113
@media (max-width: 720px) {
110114
.toggler {

0 commit comments

Comments
 (0)