aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--site/css/styles.css13
1 files changed, 13 insertions, 0 deletions
diff --git a/site/css/styles.css b/site/css/styles.css
index 240c61b..6bafcbc 100644
--- a/site/css/styles.css
+++ b/site/css/styles.css
@@ -134,6 +134,19 @@ h2 {
pre {
font-family: "Inconsolata",monospace;
white-space: pre-wrap;
+ border-left: 3ex solid #eee;
+ position: relative;
+ counter-reset: linenumbers;
+}
+
+pre a:before {
+ color: #aaa;
+ content: counter(linenumbers);
+ counter-increment: linenumbers;
+ left: -3ex;
+ position: absolute;
+ text-align: right;
+ width: 2.5ex;
}
code {