From 72d7121f0c1ef16558a100baca0e14260bdbbe9a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 21 Sep 2009 09:32:30 +0000 Subject: Added example stylesheet. --- example.style.css | 40 ++++++++++++++++++++++++++++++++++++++++ html.c | 4 ++-- 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 example.style.css diff --git a/example.style.css b/example.style.css new file mode 100644 index 00000000..ceb5cc74 --- /dev/null +++ b/example.style.css @@ -0,0 +1,40 @@ +div.body { } /* Wraps entire body file. */ + +span.sec-head { font-weight: bold; } /* Sections (Sh). */ +div.sec-head { } +div.sec-body { } +div.sec-block { } + +span.ssec-head { font-weight: bold; } /* Sub-sections (Ss). */ +div.ssec-head { } +div.ssec-body { } +div.ssec-block { } + +span.addr { text-decoration: underline; } /* Address (Ad). */ +span.arg { font-style: italic; } /* Command argument (Ar). */ +span.author { } /* Author name (An). */ +span.config { font-weight: bold; } /* Config statement (Cd). */ +span.define { } /* Defines (Dv). */ +span.desc { } /* Nd. After em-dash. */ +span.diag { font-weight: bold; } /* Diagnostic (Bl -diag). */ +span.emph { font-style: italic; } /* Emphasis (Em). */ +span.env { } /* Environment variables (Ev). */ +span.errno { } /* Error string (Er). */ +span.farg { font-style: underline; } /* Function argument (Fa, Fn). */ +span.file { font-style: italic; } /* File (Pa). */ +span.flag { font-weight: bold; } /* Flag (Fl, Cm). */ +span.macro { } /* Macro-ish thing (Fd). */ +span.name { font-weight: bold; } /* Name of utility (Nm). */ +span.opt { } /* Options (Op, Oo/Oc). */ +span.type { font-weight: italic; } /* Variable types (Vt, Ft, Fn). */ +span.unix { } /* Unices (Ux, Ox, Nx, Fx, Bx, Bsx, Dx). */ +span.utility { font-weight: bold; } /* Name of utility (Ex). */ + +a.link-man { } /* Manual links (Xr). */ +a.link-sec { } /* Section links (Sx). */ + +div.lit-block { font-family: monospace; } /* Literal block (D1, Bd -literal, Dl). */ + +table.header { } /* Document header. */ +table.footer { } /* Document footer. */ + diff --git a/html.c b/html.c index 2be740fd..38dc9aae 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.41 2009/09/21 00:39:02 kristaps Exp $ */ +/* $Id: html.c,v 1.42 2009/09/21 09:32:30 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -415,7 +415,7 @@ html_alloc(void) } /* h->base = xxx; */ - /* h->style = xxx; */ + h->style = "style.css"; /* XXX */ return(h); } -- cgit v1.2.3-56-ge451