From 18f097760599e8b8fdae1c61e5f034b782b429e6 Mon Sep 17 00:00:00 2001 From: mmdolze Date: Sun, 28 Nov 2010 22:15:30 +0000 Subject: [PATCH] Add a little bit of color to the User Guide by supplying a CSS stylesheet, which adds colored borders to notes and screen contents. --- docs/lcdproc-user/Makefile.am | 9 ++++++--- docs/lcdproc-user/lcdproc-user.css | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 docs/lcdproc-user/lcdproc-user.css diff --git a/docs/lcdproc-user/Makefile.am b/docs/lcdproc-user/Makefile.am index 9b09847..e16d6d7 100644 --- a/docs/lcdproc-user/Makefile.am +++ b/docs/lcdproc-user/Makefile.am @@ -9,6 +9,7 @@ EXTRA_DIST = bookinfo.docbook \ how-to-obtain.docbook \ installation.docbook \ introduction.docbook \ + lcdproc-user.css \ lcdproc-user.docbook \ license.docbook \ parameters.ent \ @@ -17,13 +18,15 @@ EXTRA_DIST = bookinfo.docbook \ ## convenience targets -xmlto = /usr/bin/xmlto +xmlto ?= /usr/bin/xmlto userguidedir = $(DESTDIR)$(htmldir)/user-guide/ .PHONY: install-html-userguide -install-html-userguide: $(xmlto) lcdproc-user.docbook +install-html-userguide: $(xmlto) lcdproc-user.docbook lcdproc-user.css $(mkinstalldirs) $(userguidedir) - $(xmlto) html -o $(userguidedir) lcdproc-user.docbook + $(xmlto) html -o $(userguidedir) \ + --stringparam html.stylesheet=lcdproc-user.css lcdproc-user.docbook + cp lcdproc-user.css $(userguidedir) ## EOF diff --git a/docs/lcdproc-user/lcdproc-user.css b/docs/lcdproc-user/lcdproc-user.css new file mode 100644 index 0000000..ce3f2be --- /dev/null +++ b/docs/lcdproc-user/lcdproc-user.css @@ -0,0 +1,18 @@ +pre.screen { + background-color: #FFFF99 ; + border: 1px solid #006600 ; +} + +div.note, div.tip, div.warning { + margin-top: 5px; + margin-bottom: 5px; + padding: 5px; +} + +div.note, div.tip { + border-left: solid palegreen 20px; +} + +div.warning { + border-left: solid red 20px; +}