Commit 30e85c9c80

Ali Chraghi <63465728+alichraghi@users.noreply.github.com>
2022-09-02 16:41:34
autodoc: highlight target line
1 parent f7784a0
Changed files (1)
src
src/autodoc/render_source.zig
@@ -79,6 +79,16 @@ pub fn genHtml(
         \\        text-align: right;
         \\        color: #999;
         \\      }
+        \\      
+        \\      .line {
+        \\        width: 100%;
+        \\        display: inline-block;
+        \\      }
+        \\      .line:target {
+        \\        border-top: 1px solid #444;
+        \\        border-bottom: 1px solid #444;
+        \\        background: #333;
+        \\      }
         \\
         \\      @media (prefers-color-scheme: dark) {
         \\        body{