Skip to content

Commit 272feba

Browse files
Merge pull request #429 from ossf/labs_fix_website_fonts
Fix pre code fonts on website
2 parents b505445 + 18de642 commit 272feba

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/labs/checker.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
pre, pre code, pre input, pre textarea {
1+
/* Force pre & code to consistently use the same font */
2+
.markdown-body pre, .markdown-body pre code, pre, pre code,
3+
pre input, pre textarea {
24
font-family: "SFMono-Regular", Consolas, "Liberation Mono",
35
Menlo, Courier, monospace;
4-
font-size: 16px;
6+
font-size: medium;
57
}
68
pre input, pre textarea {
79
/* Line up with text surrounding text */

docs/labs/csp1.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,7 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
388388
<form id="lab">
389389
<pre><code>
390390
const express = require("express");
391-
<input id="attempt0" type="text" size="70" spellcheck="false"
392-
value="const">
393-
</textarea>
391+
<input id="attempt0" type="text" size="70" spellcheck="false" value="const">
394392

395393
const app = express();
396394

0 commit comments

Comments
 (0)