mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 02:14:13 -05:00
cgit: add line highlighting
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
td.linenos {
|
||||
width: 2em;
|
||||
font-size: 0.9em;
|
||||
padding-top: 1.28em;
|
||||
}
|
||||
|
||||
/* Highlight diff */
|
||||
code span.head {
|
||||
color: var(--highlight);
|
||||
}
|
||||
@@ -16,3 +20,19 @@ code span.add {
|
||||
code span.del {
|
||||
color: var(--negative);
|
||||
}
|
||||
|
||||
/* Light up targeted line (for linking, etc) */
|
||||
pre > code {
|
||||
position: relative;
|
||||
}
|
||||
pre > code a {
|
||||
height: 1.18rem;
|
||||
width: 101.96%;
|
||||
position: absolute;
|
||||
left: -1em;
|
||||
pointer-events: none;
|
||||
}
|
||||
pre > code a:target {
|
||||
background-color: var(--highlight);
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user