Skip to content

Commit 37a0787

Browse files
committed
Monospace font improvements
Monospace bold in safari was very bad!
1 parent 1a1209c commit 37a0787

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

html-api-debugger/style.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
}
88

99
.html-api-debugger-container {
10+
--monospace-font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo,
11+
Consolas, Liberation Mono, monospace;
12+
1013
width: 100%;
1114
padding: 20px 20px 0 0;
1215

@@ -36,6 +39,11 @@
3639
outline: 1px dotted hotpink;
3740
}
3841

42+
code,
43+
pre {
44+
font-family: var(--monospace-font-family);
45+
}
46+
3947
pre {
4048
background-color: #fff;
4149
border: inset 1px;
@@ -53,12 +61,12 @@
5361
#input_html {
5462
width: 100%;
5563
min-height: 200px;
56-
font-family: monospace;
64+
font-family: var(--monospace-font-family);
5765
}
5866

5967
.context-html {
6068
width: 100%;
61-
font-family: monospace;
69+
font-family: var(--monospace-font-family);
6270

6371
&:placeholder-shown {
6472
font-style: italic;
@@ -146,7 +154,7 @@
146154
border: inset 1px;
147155
padding: 0.5em 0.5em 0.5em 1em;
148156
color: black;
149-
font-family: monospace;
157+
font-family: var(--monospace-font-family);
150158
background: white;
151159
margin: 0;
152160

@@ -169,7 +177,7 @@
169177

170178
.t2 {
171179
font-style: normal;
172-
font-family: monospace;
180+
font-family: var(--monospace-font-family);
173181
}
174182

175183
.t2 .name {

0 commit comments

Comments
 (0)