Skip to content

Commit 7bc05d1

Browse files
committed
Vertically match text in the textarea and pre elements
Also, remove `-webkit-box-sizing` since the latest Safari and Chrome support `box-sizing`.
1 parent 2033623 commit 7bc05d1

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

docs/parse.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ html, body {
77
}
88
body {
99
padding-bottom: 1.7em;
10-
-webkit-box-sizing: border-box;
1110
-moz-box-sizing: border-box;
1211
box-sizing: border-box;
1312
}
@@ -23,6 +22,11 @@ h1 {
2322
font: normal 1em sans-serif;
2423
display: inline;
2524
}
25+
pre {
26+
margin-top: 0;
27+
padding: 2px .5em;
28+
font: 12px/15px monospace;
29+
}
2630
#labels {
2731
color: #FFE992;
2832
width: 66%;
@@ -59,8 +63,11 @@ h1 {
5963
.style-cell textarea {
6064
width: 99%;
6165
height: 100%;
62-
font: 12px monospace;
66+
font: 12px/15px monospace;
6367
white-space: pre-wrap;
68+
padding: 2px;
69+
box-sizing: border-box;
70+
-moz-box-sizing: border-box;
6471
}
6572
.serialized-cell {
6673
border-left: 1px solid #363636;

0 commit comments

Comments
 (0)