Fix #167 rev: add missing .gutline CSS so gutter numbers align with wrapped lines
QA of PR #179 found paste-lines.js creates .gutline spans but no CSS rule existed, so all gutter numbers rendered inline on one visual row. Stack them one per row under .code .gutter; blank fill spans inherit it.
This commit is contained in:
@@ -299,6 +299,8 @@ html[data-wrap] .float { overflow-x: hidden; }
|
|||||||
.codebody { padding: 0 18px; white-space: pre; }
|
.codebody { padding: 0 18px; white-space: pre; }
|
||||||
/* #167: each logical line is its own block so offsetTop identifies its first visual row */
|
/* #167: each logical line is its own block so offsetTop identifies its first visual row */
|
||||||
.codeline { display: block; }
|
.codeline { display: block; }
|
||||||
|
/* #167 rev: gutter number spans must stack one per visual row (wrap on) */
|
||||||
|
.code .gutter .gutline { display: block; }
|
||||||
/* syntax highlight tokens (#1) */
|
/* syntax highlight tokens (#1) */
|
||||||
.tok-kw { color: #c792ea; }
|
.tok-kw { color: #c792ea; }
|
||||||
.tok-str { color: #a5e075; }
|
.tok-str { color: #a5e075; }
|
||||||
|
|||||||
Reference in New Issue
Block a user