We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d4ada4 commit 15f1624Copy full SHA for 15f1624
2 files changed
html/css/ejs.css
@@ -53,7 +53,6 @@ pre {
53
padding: 5px 0 5px 15px;
54
line-height: 1.35;
55
margin: 1rem 0;
56
- position: relative;
57
}
58
59
pre[data-language=javascript] {
@@ -322,8 +321,7 @@ blockquote footer:before {
322
321
323
.sandboxhint {
324
position: absolute;
325
- top: 5px;
326
- right: 0px;
+ right: -15px;
327
font-family: tahoma, arial, sans-serif;
328
font-size: 70%;
329
padding: 4px 8px;
html/js/ejs.js
@@ -19,7 +19,7 @@ window.addEventListener("load", function() {
19
chapNum == 1 && !/console\.log/.test(pre.textContent)) continue;
20
sandboxHint = elt("div", {"class": "sandboxhint"},
21
"edit & run code by clicking it");
22
- pre.appendChild(sandboxHint);
+ pre.insertBefore(sandboxHint, pre.firstChild);
23
break;
24
25
0 commit comments