From 9285486f797b5843aeef7b9be6f4a8dd759ae59a Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 26 May 2012 16:36:56 +0200 Subject: doc: Improve CSS using nice fonts with `@font-face'. * doc/user/FONTS, doc/user/junction.ttf, doc/user/lobster-1.4.otf: New files. * doc/user/Makefile.am (EXTRA_DIST): Add `FONTS'. (dist_html_DATA): Add `lobster-1.otf', and `junction.ttf'. * doc/user/skribilo.css: Use Lobster and Junction via `@font-face'. Improve other details. * web/skribilo.css: Likewise. --- doc/user/FONTS | 7 ++++++ doc/user/Makefile.am | 4 +++- doc/user/junction.ttf | Bin 0 -> 22104 bytes doc/user/lobster-1.4.otf | Bin 0 -> 37632 bytes doc/user/skribilo.css | 58 +++++++++++++++++++++++++++++++++++++++++------ 5 files changed, 61 insertions(+), 8 deletions(-) create mode 100644 doc/user/FONTS create mode 100644 doc/user/junction.ttf create mode 100644 doc/user/lobster-1.4.otf (limited to 'doc') diff --git a/doc/user/FONTS b/doc/user/FONTS new file mode 100644 index 0000000..6a6d1a4 --- /dev/null +++ b/doc/user/FONTS @@ -0,0 +1,7 @@ +The fonts in this directory are released under the terms of the +SIL Open Font License (OFL). They are used in ‘skribilo.css’. + + • Lobster 1.4 was taken from . + + • Junction was taken from + . diff --git a/doc/user/Makefile.am b/doc/user/Makefile.am index 1637ebb..a2e6eab 100644 --- a/doc/user/Makefile.am +++ b/doc/user/Makefile.am @@ -25,12 +25,14 @@ EXTRA_DIST += src/api1.skb \ src/start3.skb src/start4.skb src/start5.skb \ src/outline.txt src/scheme.scm +EXTRA_DIST += FONTS skrinfodir = $(infodir) skrinfo_DATA = skribilo.info html_DATA = user.html user.sui -dist_html_DATA = skribilo.css +dist_html_DATA = skribilo.css \ + lobster-1.4.otf junction.ttf BUILT_SOURCES = lout/front-page.lout CLEANFILES = $(BUILT_SOURCES) $(html_DATA) skribilo.info diff --git a/doc/user/junction.ttf b/doc/user/junction.ttf new file mode 100644 index 0000000..6ad3a25 Binary files /dev/null and b/doc/user/junction.ttf differ diff --git a/doc/user/lobster-1.4.otf b/doc/user/lobster-1.4.otf new file mode 100644 index 0000000..86effca Binary files /dev/null and b/doc/user/lobster-1.4.otf differ diff --git a/doc/user/skribilo.css b/doc/user/skribilo.css index 956fb72..670a844 100644 --- a/doc/user/skribilo.css +++ b/doc/user/skribilo.css @@ -2,7 +2,7 @@ CSS style sheet for the Skribilo manual. - Copyright 2007, 2008 Ludovic Courtès + Copyright 2007, 2008, 2012 Ludovic Courtès Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright @@ -10,6 +10,22 @@ /* FIXME: This file is messy and contains loads of useless stuff. */ +/* http://www.impallari.com/lobster/ */ +@font-face { + font-family: 'Lobster'; + font-style: normal; + font-weight: normal; + src: local('Lobster'), url('lobster-1.4.otf') format('opentype'); +} + +/* http://www.theleagueofmoveabletype.com/junction */ +@font-face { + font-family: 'Junction'; + src: local('Junction'), url('junction.ttf') format('truetype'); + font-weight: normal; + font-style: normal; +} + pre { font-family: monospace; text-align: left; } tt { font-family: monospace } code { font-family: monospace } @@ -21,24 +37,50 @@ span.sc { font-variant: small-caps } span.sf { font-family: sans-serif } -.skribilo-title { +body.document { + font-family: Lobster, sans-serif; + font-weight: bolder; +} + +body.chapter { /* chapter title when `:file #t' */ + font-family: sans-serif; + font-weight: bolder; +} +body.section { /* section title when `:file #t' */ font-family: sans-serif; font-weight: bolder; +} + + +div.skribilo-title { font-size: large; text-align: right; background: #ee7777; /* #dddde0; */ border-top-color: black; - border-top-style: solid; - border-top-width: 1px; + border-top-style: none; + margin: 10px; + padding: 10px; + border-radius: 10px; +} + +table.author { + font-family: Junction, sans-serif; + font-style: normal; + font-weight: normal; + text-align: right; } .skribilo-body { - font-family: sans-serif; + font-family: Junction, sans-serif; font-weight: normal; font-size: normal; text-align: left; background: #ffffff; - padding: 0 5% 0 5% + padding: 0 5% 0 5%; +} + +table.toc { + border-spacing: 8px; } .small-toc { @@ -79,10 +121,12 @@ span.sf { font-family: sans-serif } .section-title { background: #eeeef0; font-family: sans-serif; + font-weight: bold; + font-size: larger; text-align: right; } -.subsection-title { font-family: sans-serif; } +.subsection-title { font-family: Junction, sans-serif; } .code-excerpt { background: #eeeef0; -- cgit v1.2.3