feat: line nrs

This commit is contained in:
Barrett Ruth 2025-10-04 23:20:54 -04:00
parent 244d261374
commit 7fd5c307e0
6 changed files with 88 additions and 72 deletions

View file

@ -50,11 +50,10 @@ li {
font-family: "Courier New", monospace;
}
/* Code styling */
:not(pre) > code {
font-family: "Courier New", Courier, monospace;
margin: 0 5px;
font-size: 0.8em; /* Match the font size in barrettruth.com */
font-size: 0.8em;
white-space: nowrap;
border: 1px solid #e1e1e1;
background-color: #f4f4f4;
@ -64,3 +63,19 @@ li {
max-width: 100%;
user-select: all;
}
pre code {
font-family: "Snowflake", "Courier New", monospace;
font-size: 0.95rem;
line-height: 1.5;
background: transparent;
white-space: pre;
overflow-x: auto;
}
.hljs-ln-numbers {
text-align: right;
color: #999;
border-right: 10px solid #ffffff;
user-select: none;
}