Skip to content

Commit bb848fd

Browse files
authored
fix console styling (#800)
* fix some of the more egregious styling issues in the console * fix more stuff
1 parent 7ef0173 commit bb848fd

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

packages/repl/src/lib/Output/console/Console.svelte

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@
3737
--warning-border: rgb(242, 232, 163);
3838
--json-tree-string-color: var(--shiki-token-string);
3939
--json-tree-font-family: var(--sk-font-family-mono);
40+
--json-tree-font-size: 1.2rem;
41+
--json-tree-li-line-height: 1.5;
4042
41-
:global(.dark) & {
43+
:root.dark & {
4244
--error-fg: rgb(235, 78, 109);
4345
--error-bg: rgb(71, 48, 54);
4446
--error-border: rgb(109, 65, 76);
@@ -59,5 +61,15 @@
5961
--json-tree-operator-color: #e8eaed;
6062
--json-tree-regex-color: #6cd1c7;
6163
}
64+
65+
:global {
66+
p,
67+
ol,
68+
ul {
69+
font: var(--json-tree-font-family);
70+
font-size: var(--json-tree-font-size);
71+
line-height: 1.5;
72+
}
73+
}
6274
}
6375
</style>

packages/repl/src/lib/Output/console/ConsoleLine.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
gap: 1rem;
203203
width: 100%;
204204
font-size: 1.2rem;
205-
align-items: center;
205+
align-items: start;
206206
}
207207
208208
.log.expandable {
@@ -221,6 +221,7 @@
221221
font-size: 1.2rem;
222222
margin: 0 1rem 0.4rem calc(1em + var(--indent));
223223
overflow: hidden;
224+
line-height: 1.5;
224225
225226
.location {
226227
position: relative;
@@ -271,11 +272,11 @@
271272
font-size: 0.9rem;
272273
transition: 150ms;
273274
transform-origin: 50% 50%;
274-
transform: translateY(-1px);
275+
transform: translateY(2px);
275276
}
276277
277278
.arrow.expand {
278-
transform: translateY(0px) rotateZ(90deg);
279+
transform: translateY(2px) rotateZ(90deg);
279280
}
280281
281282
.styled {

0 commit comments

Comments
 (0)