Skip to content

Commit 97e5aee

Browse files
Labs: Make input and textarea fonts and margins match surroundings
Signed-off-by: David A. Wheeler <[email protected]>
1 parent fd8cfdc commit 97e5aee

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

docs/labs/checker.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
pre, pre code, pre input, pre textarea {
2+
font-family: "SFMono-Regular", Consolas, "Liberation Mono",
3+
Menlo, Courier, monospace;
4+
font-size: 16px;
5+
}
6+
pre input, pre textarea {
7+
/* Line up with text surrounding text */
8+
margin-left: -5px;
9+
}

docs/labs/csp1.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
44
<meta name="viewport" content="width=device-width, initial-scale=1">
55
<link rel="stylesheet" href="/assets/css/style.css">
6+
<link rel="stylesheet" href="checker.css">
67
<script src="js-yaml.min.js"></script>
78
<script src="checker.js"></script>
9+
<link rel="license" href="https://creativecommons.org/licenses/by/4.0/">
810

911
<!-- See create_labs.md for how to create your own lab! -->
1012

@@ -387,7 +389,8 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
387389
<pre><code>
388390
const express = require("express");
389391
<input id="attempt0" type="text" size="70" spellcheck="false"
390-
value="const">
392+
value="const">
393+
</textarea>
391394

392395
const app = express();
393396

docs/labs/hello.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
44
<meta name="viewport" content="width=device-width, initial-scale=1">
55
<link rel="stylesheet" href="/assets/css/style.css">
6+
<link rel="stylesheet" href="checker.css">
67
<script src="js-yaml.min.js"></script>
78
<script src="checker.js"></script>
9+
<link rel="license" href="https://creativecommons.org/licenses/by/4.0/">
810

911
<!-- See create_labs.md for how to create your own lab! -->
1012

docs/labs/input1.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
44
<meta name="viewport" content="width=device-width, initial-scale=1">
55
<link rel="stylesheet" href="/assets/css/style.css">
6+
<link rel="stylesheet" href="checker.css">
67
<script src="js-yaml.min.js"></script>
78
<script src="checker.js"></script>
9+
<link rel="license" href="https://creativecommons.org/licenses/by/4.0/">
810

911
<!-- See create_labs.md for how to create your own lab! -->
1012

docs/labs/input2.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
44
<meta name="viewport" content="width=device-width, initial-scale=1">
55
<link rel="stylesheet" href="/assets/css/style.css">
6+
<link rel="stylesheet" href="checker.css">
67
<script src="js-yaml.min.js"></script>
78
<script src="checker.js"></script>
9+
<link rel="license" href="https://creativecommons.org/licenses/by/4.0/">
810

911
<!-- Sample expected answer -->
1012
<script id="expected0" type="plain/text">

0 commit comments

Comments
 (0)