adjusted active line highlighting
This commit is contained in:
parent
c1a4eccd92
commit
758352c8cd
2 changed files with 6 additions and 3 deletions
|
@ -27,6 +27,9 @@
|
|||
}
|
||||
#file-contents code { background-color: inherit }
|
||||
.line-number { text-align: right }
|
||||
.line:target {
|
||||
background-color: yellow;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
6
main.scm
6
main.scm
|
@ -205,9 +205,9 @@
|
|||
`(table
|
||||
(@ (id "file-contents"))
|
||||
,@(map (lambda (number line)
|
||||
`(tr (@ (class "line"))
|
||||
(td (@ ((class "line-number")
|
||||
(id ,number)))
|
||||
`(tr (@ ((class "line")
|
||||
(id ,number)))
|
||||
(td (@ (class "line-number"))
|
||||
(a (@ (href "#" ,number)) ,number))
|
||||
(td (@ (class "line-contents"))
|
||||
(code ,line))))
|
||||
|
|
Loading…
Reference in a new issue