From 535afc08febf42fb984e7115bf7a947985690e41 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 8 Nov 2014 20:24:32 -0800 Subject: Spec: better system for designating definitions of terms. `[foo](@foo)` turns into an anchor with id `foo` that links to itself and has class `definition`. This allows us to remove the manual `` tags in `spec.txt`. A simple regex substitution in the Makefile handles the transformation. I believe this addresses some of the concerns in #141 by giving the definitions a prominent appearance. Note that we want definitions to link to themselves, to allow users to quickly generate a link to the relevant bit of the spec. --- template.html | 1 + 1 file changed, 1 insertion(+) (limited to 'template.html') diff --git a/template.html b/template.html index bc5ba26..9ae92f8 100644 --- a/template.html +++ b/template.html @@ -17,6 +17,7 @@ h1 { font-size: 140%; font-weight: bold; border-top: 1px solid gray; padding-top h2 { font-size: 120%; font-weight: bold; } h3 { font-size: 110%; font-weight: bold; } h4 { font-size: 100%; font-weight: bold; } +a.definition { font-weight: bold; } span.space { position: relative; } span.space:after { content: ""; -- cgit v1.2.3