From ce18dec1f572a8f20540f838ea8daf4f90b44d8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Thu, 28 Aug 2008 19:02:55 +0200 Subject: [PATCH 1/1] Added master.css stylesheet for HTML books. Added support for autor_utworu, nazwa_utworu and dzielo_nadrzedne tags. --- bin/book2html.xslt | 18 +++++++ bin/master.css | 118 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 bin/master.css diff --git a/bin/book2html.xslt b/bin/book2html.xslt index f3223d78c..158caebf5 100644 --- a/bin/book2html.xslt +++ b/bin/book2html.xslt @@ -38,10 +38,28 @@ + + +

+ +

+
+ + + + + + + + + + + +

diff --git a/bin/master.css b/bin/master.css new file mode 100644 index 000000000..1922298eb --- /dev/null +++ b/bin/master.css @@ -0,0 +1,118 @@ +body { + font-size: 16px; + font: Georgia, "Times New Roman", serif; + line-height: 1.5em; + margin: 3em; + max-width: 36em; +} + +a { + color: blue; + text-decoration: none; +} + +/* =================================================== */ +/* = Common elements: headings, paragraphs and lines = */ +/* =================================================== */ +h1 { + font-size: 3em; + margin: 1.5em 0 0; + text-align: center; + line-height: 1.5em; + font-weight: bold; +} + +h2 { + font-size: 2em; + margin: 1.5em 0 0; + font-weight: bold; + line-height: 1.5em; +} + +h3 { + font-size: 1.5em; + margin: 1.5em 0 0; + font-weight: normal; + line-height: 1.5em; +} + +h4 { + font-size: 1em; + margin: 1.5em 0 0; + line-height: 1.5em; +} + +p { + margin: 0; +} + +/* ======================== */ +/* = Footnotes and themes = */ +/* ======================== */ +.theme-begin { + border-left: 0.1em solid #DDDDDD; + color: #666; + float: right; + margin: 0 -9.5em 0 0; + padding: 0 0.5em; + width: 7.5em; + font-style: normal; + font-weight: normal; + font-size: 16px; +} + +.annotation { + font-style: normal; + font-weight: normal; + font-size: 16px; +} + +#footnotes .annotation { + display: block; + float: left; + width: 2.5em; + clear: both; +} + +#footnotes div { + margin: 1.5em 0 0 0; +} + +#footnotes p { + margin-left: 2.5em; +} + +/* =================== */ +/* = Custom elements = */ +/* =================== */ +span.author { + font-size: 0.9em; + display: block; + line-height: 1.5em; +} + +span.collection { + font-size: 0.6em; + display: block; + line-height: 1.5em; + margin-bottom: -0.8em; +} + +div.didaskalia { + font-style: italic; + margin: 0.5em 0 0; +} + +div.kwestia { + margin: 0.5em 0 0; +} + +p.paragraph { + text-align: justify; + margin: 1.5em 0 0; +} + +div.fragment { + border-bottom: 0.1em solid #999; + padding-bottom: 1.5em; +} -- 2.20.1